Skip to content

Commit

Permalink
feat: add community group slugs as meta tag for access in zephr script
Browse files Browse the repository at this point in the history
  • Loading branch information
tkstang committed Nov 20, 2024
1 parent a547d07 commit 8414c6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template/source/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<meta property="og:type" content="article">
<meta property="og:url" content="<%= data.content.entry.url %>">

<%# Community group slugs are added to access via CSK paywall script %>
<meta name="community-group-slugs" content="<%= data.content.entry.communityGroups.map { |group| group.slug }.join(',') %>">

<%# Uncomment following tag to restrict search engine indexing and link following %>
<%# <meta name="robots" content="noindex, nofollow"> %>

Expand Down Expand Up @@ -84,4 +87,4 @@
<%= partial('layouts/_concert') %>
<%= yield %>
</body>
</html>
</html>

0 comments on commit 8414c6b

Please sign in to comment.