diff options
author | Volpeon <git@volpeon.ink> | 2022-06-16 13:42:26 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-06-16 13:42:26 +0200 |
commit | aa4c54317b51dc14ba65d2e091b701ae6640ee80 (patch) | |
tree | 1b78a533299bc1d39e4c2eef611396a241e685c7 /templates/base.html | |
parent | Update (diff) | |
download | volpeon.ink-aa4c54317b51dc14ba65d2e091b701ae6640ee80.tar.gz volpeon.ink-aa4c54317b51dc14ba65d2e091b701ae6640ee80.tar.bz2 volpeon.ink-aa4c54317b51dc14ba65d2e091b701ae6640ee80.zip |
WIP: Adding metadata
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/templates/base.html b/templates/base.html index 49355b7..cfc40a4 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -14,14 +14,20 @@ | |||
14 | 14 | ||
15 | $for(author)$ | 15 | $for(author)$ |
16 | <meta name="author" content="$it.name$$if(it.email)$ <$it.email$>$endif$" /> | 16 | <meta name="author" content="$it.name$$if(it.email)$ <$it.email$>$endif$" /> |
17 | <meta property="article:author" content="$it.name$$if(it.email)$ <$it.email$>$endif$" /> | ||
17 | $endfor$ | 18 | $endfor$ |
18 | $if(date-meta)$ | 19 | $if(date-meta)$ |
19 | <meta name="dcterms.date" content="$date-meta$" /> | 20 | <meta name="dcterms.date" content="$date-meta$" /> |
21 | <meta property="article:modified_time" content="$date-meta$" /> | ||
20 | $endif$ | 22 | $endif$ |
21 | $if(keywords)$ | 23 | $if(keywords)$ |
22 | <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" /> | 24 | <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" /> |
23 | $endif$ | 25 | $endif$ |
24 | 26 | ||
27 | <meta property="og:title" content="$title$" /> | ||
28 | <meta property="og:site_name" content="$site.title$" /> | ||
29 | <meta property="og:url" content="$url.full$" /> | ||
30 | |||
25 | $if(feed)$ | 31 | $if(feed)$ |
26 | <link href="$feed.url.rel$" type="application/atom+xml" rel="alternate" title="$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$" /> | 32 | <link href="$feed.url.rel$" type="application/atom+xml" rel="alternate" title="$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$" /> |
27 | $endif$ | 33 | $endif$ |
@@ -46,33 +52,31 @@ | |||
46 | <link rel="stylesheet" href="/style.css?$style_hash$" /> | 52 | <link rel="stylesheet" href="/style.css?$style_hash$" /> |
47 | </head> | 53 | </head> |
48 | 54 | ||
49 | <body> | 55 | <body itemscope itemtype="https://schema.org/WebPage"> |
50 | <nav class="c-header" label="Mainmenu"> | 56 | <nav class="c-header" label="Mainmenu"> |
51 | <a class="c-header__item c-header__item--icon" href="/" title="$site.title$"> | 57 | <a class="c-header__item c-header__item--icon" href="/" title="$site.title$" itemprop="isPartOf" itemscope itemtype="https://schema.org/WebSite" itemid="$site.url$"> |
52 | <svg class="c-header__icon" width="1em" height="1em" aria-label="Logo"> | 58 | <svg class="c-header__icon" width="1em" height="1em" aria-label="Logo"> |
53 | <use href="/symbols.svg#logo"></use> | 59 | <use href="/symbols.svg#logo"></use> |
54 | </svg> | 60 | </svg> |
55 | </a> | 61 | </a> |
56 | $for(menus.main.items)$ | 62 | $for(menus.main.items)$ |
57 | $if(it.active)$ | 63 | $if(it.active)$ |
58 | <a class="c-header__item" href="$it.url$"> | 64 | <a class="c-header__item" href="$it.url$" itemprop="hasPart" itemscope itemtype="https://schema.org/SiteNavigationElement"> |
59 | $it.label$ | 65 | $it.label$ |
60 | </a> | 66 | </a> |
61 | $endif$ | 67 | $endif$ |
62 | $endfor$ | 68 | $endfor$ |
63 | </nav> | 69 | </nav> |
64 | 70 | ||
65 | <main> | 71 | $if(layout.is_categorized_list)$ |
66 | $if(layout.is_categorized_list)$ | ||
67 | ${layouts/categorized_list()} | 72 | ${layouts/categorized_list()} |
68 | $elseif(layout.is_list)$ | 73 | $elseif(layout.is_list)$ |
69 | ${layouts/list()} | 74 | ${layouts/list()} |
70 | $elseif(layout.is_redirect)$ | 75 | $elseif(layout.is_redirect)$ |
71 | ${layouts/redirect()} | 76 | ${layouts/redirect()} |
72 | $else$ | 77 | $else$ |
73 | ${layouts/page()} | 78 | ${layouts/page()} |
74 | $endif$ | 79 | $endif$ |
75 | </main> | ||
76 | 80 | ||
77 | <footer class="c-footer"> | 81 | <footer class="c-footer"> |
78 | <div class="l-container l-container--pad-y u-pb-0" aria-hidden="true"> | 82 | <div class="l-container l-container--pad-y u-pb-0" aria-hidden="true"> |