Add climate strike widget (#4071)
This commit is contained in:
parent
b1b408e61c
commit
fd017a0ba2
1 changed files with 13 additions and 0 deletions
|
|
@ -24,6 +24,19 @@
|
|||
<%= auto_discovery_link_tag(:rss, "https://dev.to/feed", title: "#{ApplicationConfig['COMMUNITY_NAME']} RSS Feed") %>
|
||||
<% end %>
|
||||
<%= javascript_pack_tag "homePage", defer: true %>
|
||||
<script defer>
|
||||
|
||||
var DIGITAL_CLIMATE_STRIKE_OPTIONS = {
|
||||
forceFullPageWidget: false,
|
||||
showCloseButtonOnFullPageWidget: true,
|
||||
alwaysShowWidget: false,
|
||||
disableGoogleAnalytics: true,
|
||||
websiteName: 'DEV',
|
||||
language: 'en'
|
||||
};
|
||||
</script>
|
||||
<script src="https://assets.digitalclimatestrike.net/widget.js" defer></script>
|
||||
|
||||
<% params.delete(:i) %>
|
||||
<% cache("main-stories-index-#{params}-#{user_signed_in?}", expires_in: 3.minutes) do %>
|
||||
<div class="home" id="index-container"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue