-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integrity and defer to assets (#14)
* Add integrity and defer to assets * Remove defer attributes * Fix empty line Co-authored-by: moustachu <[email protected]>
- Loading branch information
1 parent
037fe02
commit 855706e
Showing
2 changed files
with
41 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<%= csrf_meta_tags %> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<% available_locales.each do |locale| %> | ||
<link rel="alternate" href="<%= url_for(request.parameters.merge(locale: locale)) %>" hreflang="<%= locale %>"> | ||
<% end %> | ||
|
||
<meta name="twitter:card" content="summary_large_image"> | ||
<meta name="twitter:site" content="@<%= decidim_meta_twitter_handler %>"> | ||
<meta name="twitter:title" content="<%= decidim_page_title %>"> | ||
<meta name="twitter:description" content="<%= decidim_meta_description %>"> | ||
<meta name="twitter:image" content="<%= decidim_meta_image_url %>"> | ||
|
||
<meta property="og:url" content="<%= decidim_meta_url %>"> | ||
<meta property="og:type" content="article"> | ||
<meta property="og:title" content="<%= decidim_page_title %>"> | ||
<meta property="og:description" content="<%= decidim_meta_description %>"> | ||
<meta property="og:image" content="<%= decidim_meta_image_url %>"> | ||
|
||
<%= favicon %> | ||
<%= stylesheet_link_tag "application", media: "all", integrity: true %> | ||
<%= invisible_captcha_styles %> | ||
<%= organization_colors %> | ||
<%= javascript_include_tag "decidim/confirm", integrity: true %> | ||
<%= javascript_include_tag "application", integrity: true %> | ||
<%= foundation_datepicker_locale_tag %> | ||
|
||
<%= render partial: "layouts/decidim/head_extra" %> | ||
<%== current_organization.header_snippets if Decidim.enable_html_header_snippets %> | ||
<%= snippets.display(:head) %> | ||
<%= content_for :header_snippets %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters