move metadata to a metadata file
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-04-29 14:39:40 +02:00
parent 9384ef278e
commit 64842166c1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 29 additions and 26 deletions

View file

@ -4,8 +4,5 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="author" href="/humans.txt" /> <link rel="author" href="/humans.txt" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="/blog/rss" /> <link rel="alternate" type="application/rss+xml" title="RSS" href="/blog/rss" />
<meta name="author" content="Mylloon" />
<meta name="description" content="{{page_desc}} " />
<meta name="keywords" content="{{page_kw}} " />
{{>icons.html}} {{>metadata.html}}

View file

@ -2,9 +2,8 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/css/style.css" />
<link rel="author" href="/humans.txt" /> <link rel="author" href="/humans.txt" />
<meta name="author" content="Mylloon" />
<meta name="description" content="{{page_desc}} " />
{{>icons.html}} {{>metadata.html}}
<link rel="stylesheet" href="/css/style.css" />

View file

@ -22,21 +22,3 @@
<meta name="msapplication-TileColor" content="#ffffff" /> <meta name="msapplication-TileColor" content="#ffffff" />
<meta name="msapplication-config" content="/icons/browserconfig.xml" /> <meta name="msapplication-config" content="/icons/browserconfig.xml" />
<meta name="theme-color" content="#2a2424" /> <meta name="theme-color" content="#2a2424" />
<!-- Primary Meta Tags -->
<meta name="title" content="{{page_title}} " />
<meta name="description" content="{{page_desc}} " />
<!-- Open Graph -->
<meta property="og:title" content="{{page_title}} " />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{url}} " />
<meta property="og:image" content="/icons/apple-touch-icon.png" />
<meta property="og:description" content="{{page_desc}} " />
<meta name="theme-color" content="#43B581" />
<!-- Twitter -->
<meta property="twitter:url" content="{{url}} " />
<meta property="twitter:title" content="{{page_title}} " />
<meta property="twitter:description" content="{{page_desc}} " />
<meta property="twitter:image" content="/icons/apple-touch-icon.png" />

25
templates/metadata.html Normal file
View file

@ -0,0 +1,25 @@
<!-- Primary Meta Tags -->
{{#page_title}}
<meta name="title" content="{{page_title}} " />
{{/page_title}} {{#page_desc}}
<meta name="description" content="{{page_desc}} " />
{{/page_desc}} {{#page_kw}}
<meta name="keywords" content="{{page_kw}} " />
{{/page_kw}}
<meta name="author" content="Mylloon" />
{{>icons.html}}
<!-- Open Graph -->
<meta property="og:title" content="{{page_title}} " />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{url}} " />
<meta property="og:image" content="/icons/apple-touch-icon.png" />
<meta property="og:description" content="{{page_desc}} " />
<meta name="theme-color" content="#43B581" />
<!-- Twitter -->
<meta property="twitter:url" content="{{url}} " />
<meta property="twitter:title" content="{{page_title}} " />
<meta property="twitter:description" content="{{page_desc}} " />
<meta property="twitter:image" content="/icons/apple-touch-icon.png" />