Include meta tags in seperate liquid template

This commit is contained in:
~erin 2022-03-16 09:32:38 -04:00
parent 0fd9ae311a
commit a45f33cb98
No known key found for this signature in database
GPG Key ID: DA70E064A8C70F44
3 changed files with 25 additions and 15 deletions

14
_includes/meta.liquid Normal file
View File

@ -0,0 +1,14 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
<link rel="alternate" title="Main RSS Feed" type="application/rss+xml" href="/rss.xml">
<!-- preview metadata -->
<meta property="og:site_name" content="The System"/>
<meta property="og:title" content="{{ page.title }}"/>
<meta name="description" content="Worst website on the net"/>
<meta property="og:description" content="Worst website on the net">
<meta property="og:image" content="https://the-system.eu.org/assets/logo.svg"/>.
<link rel="icon" href="/assets/logo.svg">
<title>The System | {{ page.title }}</title>

View File

@ -1,20 +1,17 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
<link rel="alternate" title="Main RSS Feed" type="application/rss+xml" href="/rss.xml">
<link rel="icon" href="/assets/logo.svg">
<title>{{ page.title }}</title>
{% include "meta.liquid" %}
</head>
<body>
{% include "navigation.liquid" %}
<div class="section">
<div class="inner-section">
<main>
{{ page.content }}
{% for post in collections.posts.pages %}
<article>
<h3>
<span><a href="/{{post.permalink}}">🔗</a></span>
{{ post.title }}
@ -26,7 +23,9 @@
{{category}},
{% endfor %}
</i></p>
</article>
{% endfor %}
</main>
</div>
</div>
{% include "footer.liquid" %}

View File

@ -1,19 +1,16 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
<link rel="alternate" title="Main RSS Feed" type="application/rss+xml" href="/rss.xml">
{% include "meta.liquid" %}
</head>
<link rel="icon" href="/assets/logo.svg">
<title>{{ page.title }}</title>
</head>
<body>
{% include "navigation.liquid" %}
<div class="section">
<div class="inner-section">
{{ page.content }}
<main>
{{ page.content }}
</main>
</div>
</div>
{% include "footer.liquid" %}