softinio.com/templates/partials/custom_header.html

49 lines
2 KiB
HTML
Raw Permalink Normal View History

2024-10-27 20:26:16 -07:00
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "//wisdom.softinio.com/";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '1']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Matomo Code -->
2024-02-10 18:04:44 -08:00
{% if config.extra.favicon180 %}
2024-10-27 20:26:16 -07:00
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="{{ get_url(path=config.extra.favicon180) }}" />
2024-02-10 18:04:44 -08:00
{% endif %}
{% if config.extra.favicon32 %}
2024-10-27 20:26:16 -07:00
<link rel="icon" type="image/png" sizes="32x32" href="{{ get_url(path=config.extra.favicon32) }}" />
2024-02-10 18:04:44 -08:00
{% endif %}
{% if config.extra.favicon16 %}
2024-10-27 20:26:16 -07:00
<link rel="icon" type="image/png" sizes="16x16" href="{{ get_url(path=config.extra.favicon16) }}" />
2024-02-10 18:04:44 -08:00
{% endif %}
{%- if config.author %}
2024-10-27 20:26:16 -07:00
<meta name="author" content="{{ config.author }}" />
2024-02-10 18:04:44 -08:00
{%- endif %}
2024-10-27 20:26:16 -07:00
<meta name="copyright" content="{{ config.author }}" />
2024-02-10 18:04:44 -08:00
{%- if page.extra.keywords and config.extra.keywords %}
2024-10-27 20:26:16 -07:00
<meta name="keywords" content="{{ page.extra.keywords }}, {{ config.extra.keywords }}" />
2024-02-10 18:04:44 -08:00
{%- elif page.extra.keywords %}
2024-10-27 20:26:16 -07:00
<meta name="keywords" content="{{ page.extra.keywords }}" />
2024-02-10 18:04:44 -08:00
{%- elif config.extra.keywords %}
2024-10-27 20:26:16 -07:00
<meta name="keywords" content="{{ config.extra.keywords }}" />
2024-02-10 18:04:44 -08:00
{%- endif %}
{%- if config.extra.google %}
2024-10-27 20:26:16 -07:00
<meta name="google-site-verification" content="{{ config.extra.google | safe }}" />
2024-02-10 18:04:44 -08:00
{%- endif %}
{%- if config.extra.bing %}
2024-10-27 20:26:16 -07:00
<meta name="msvalidate.01" content="{{ config.extra.bing | safe}}" />
2024-02-10 18:04:44 -08:00
{%- endif %}
<meta property="twitter:title" content="{{ page.title | default(value=config.title) | safe }}" />
{%- if config.extra.twitter_meta %}
2024-10-27 20:26:16 -07:00
<meta name="twitter:site" content="@{{ config.extra.twitter_meta }}" />
<meta name="twitter:creator" content="@{{ config.extra.twitter_meta }}" />
2024-02-10 18:04:44 -08:00
{%- endif %}