_includes/seo.html in hardpool-flat-0.1.0 vs _includes/seo.html in hardpool-flat-1.0.0

- old
+ new

@@ -1,11 +1,16 @@ -{% assign title_separator = site.title_separator | default: '-' | replace: '|', '&#124;' %} +<!-- Google Tag Manager --> +<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); + })(window,document,'script','dataLayer','{{site.seo.gtmid}}');</script> +<!-- End Google Tag Manager --> +{% assign title_separator = site.title_separator | default: '-' | replace: '|', '&#124;' %} {%- if page.title -%} {%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%} {%- endif -%} - {%- if seo_title -%} {%- assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once -%} {%- endif -%} - <title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title> \ No newline at end of file