Skip to content

Commit

Permalink
Merge pull request #4 from voxmedia/community-groups-meta
Browse files Browse the repository at this point in the history
feat: add community group slugs as meta tag for access in zephr script
  • Loading branch information
lsirivong authored Nov 20, 2024
2 parents 4fcb95b + 8414c6b commit 82587ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 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

0 comments on commit 82587ab

Please sign in to comment.