1
0
Fork 0
owenryan.us/_includes/head.html

30 lines
1.3 KiB
HTML
Raw Normal View History

2023-05-16 03:59:18 +00:00
<head>
<meta charset="UTF-8">
{% comment %}
Set meta description to the page description if it has one, otherwise fallback to the site description
{% endcomment %}
<meta name="description"
content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
{% comment %}
Add page keywords if there are any
{% endcomment %}
{% assign tags = site.SEO_tags %}
{% if page.SEO_tags %}
{% assign tags = tags | concat: page.SEO_tags %}
{% endif %}
<meta name="keywords" content="{{ tags | join: ", " }}">
<meta name="author" content="{{ site.author }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{%- if page.title -%}{{ page.title }} | {% endif %}{{ site.title }}</title>
<script src="/assets/utils.js"></script>
{% comment %}
Dependencies are self-hosted instead of using a public CDN.
See this article for more info https://httptoolkit.com/blog/public-cdn-risks/
{% endcomment %}
<link href="/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<!-- Load fontawesome here for faster loadtimes: https://stackoverflow.com/a/35880730/9523246 -->
<script>
lazyLoadCSS('https://use.fontawesome.com/releases/v6.4.0/css/all.css');
</script>
</head>