diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-04-24 12:15:10 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-04-24 12:15:10 +0200 |
| commit | 8ffe8fbf7d27504a5f0b0592b12896e80e53a151 (patch) | |
| tree | 317ab00b5bc7a309c61e6f46a6b5a4224df9c338 | |
| parent | cf92092b740685b98fe80f01c87a3a0122e46e4b (diff) | |
| download | flevum-8ffe8fbf7d27504a5f0b0592b12896e80e53a151.tar.gz | |
Add the canonical tags
| -rw-r--r-- | templates/_includes/meta.html | 26 | ||||
| -rw-r--r-- | templates/default.html | 10 |
2 files changed, 17 insertions, 19 deletions
diff --git a/templates/_includes/meta.html b/templates/_includes/meta.html index d649432..267a612 100644 --- a/templates/_includes/meta.html +++ b/templates/_includes/meta.html @@ -1,19 +1,25 @@ -<meta property="og:url" content="https://www.flevum.de$url$" /> +<meta charset="utf-8"> +<meta http-equiv="X-UA-Compatible" content="IE=edge"> +<meta name="viewport" content="width=device-width, initial-scale=1"> + +<meta name="author" content="Eugen Wissner"> + +<meta property="og:url" content="https://www.flevum.de$url$"> $if(published)$ - <meta property="og:type" content="article" /> - <meta property="article:published_time" content="$date$" /> + <meta property="og:type" content="article"> + <meta property="article:published_time" content="$date$"> $else$ - <meta property="og:type" content="website" /> + <meta property="og:type" content="website"> $endif$ $if(tags)$ - <meta property="article:section" content="$tags$" /> - <meta property="article:tag" content="$tags$" /> + <meta property="article:section" content="$tags$"> + <meta property="article:tag" content="$tags$"> $endif$ -<meta property="og:title" content="$title$" /> -<meta property="og:site_name" content="Flevum über Technik und Philosophie" /> +<meta property="og:title" content="$title$"> +<meta property="og:site_name" content="Flevum über Technik und Philosophie"> $if(teaser)$ - <meta name="description" property="og:description" content="$teaser$" /> + <meta name="description" property="og:description" content="$teaser$"> $else$ - <meta name="description" property="og:description" content="Über Technik und Philosophie" /> + <meta name="description" property="og:description" content="Über Technik und Philosophie"> $endif$ diff --git a/templates/default.html b/templates/default.html index f7aa7ec..20c9147 100644 --- a/templates/default.html +++ b/templates/default.html @@ -1,16 +1,11 @@ <!DOCTYPE html> <html data-theme="dark"> <head> - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - - <meta name="author" content="Eugen Wissner" /> - $partial("templates/_includes/meta.html")$ <title>$title$ | Flevum</title> + <link rel="canonical" href="https://www.flevum.de$url$"> <link rel="icon" type="image/png" href="/assets/images/favicon.svg"> <link href="/assets/css/styles.css?v=1" rel="stylesheet"> <link href="/assets/css/custom.css?v=2" rel="stylesheet"> @@ -18,11 +13,8 @@ <body> $partial("templates/_includes/partials/burgerMenu.html")$ - $partial("templates/_includes/layout/header.html")$ - $partial("templates/_includes/layout/navigation.html")$ - $partial("templates/_includes/partials/headerSeparator.html")$ <main class="$if(active-index)$wrapper long$else$wrapper$endif$" role="main"> |
