1
1
Fork 0
forked from fun/fun
fun/web/_includes/head.html

29 lines
1.7 KiB
HTML
Raw Normal View History

<head>
<meta charset="{{ site.charset }}">
<meta name="author" content="{{ site.author }}">
<title>{{ site.title }} {{ page.title }} - {{ site.subtitle }}</title>
<meta name="description" content="{{ site.title }} - {{ site.description | strip_html | strip_newlines | truncate: 160 }}{% if page.description %} - {{ page.description | strip_html | strip_newlines | truncate: 160 }}{% endif %}">
{% if page.tags %}<meta name="keywords" content="{{ site.keywords | join: ',' }},{{ page.tags | join: ',' }}">{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="revisit-after" content="7 days">
<meta name="robots" content="index,follow">
<link rel="alternate" type="application/rss+xml" title="Blog Feed - {{ site.title }}" href="{{ site.url }}/feed/">
<link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html','' }}">
<link rel="shortcut icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" type="text/css" href="/css/cookieconsent.min.css">
<link rel="stylesheet" type="text/css" href="/css/main.css">
<script src="/js/jquery-3.6.4.min.js" charset="{{ site.charset }}"></script>
<script src="/js/js-cookie-3.0.5.min.js" charset="{{ site.charset }}"></script>
<script src="/js/matomo.min.js" charset="{{ site.charset }}"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const links = document.querySelectorAll('a');
links.forEach(link => {
if (link.hostname !== window.location.hostname) {
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'noopener noreferrer');
}
});
});
</script>
</head>