mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-04-16 05:38:33 +02:00
Fix: RSS feeds
This commit is contained in:
32
layouts/baseof.html
Normal file
32
layouts/baseof.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!doctype html>
|
||||
<html
|
||||
class="html"
|
||||
lang="{{ or site.Language.LanguageCode site.Language.Lang }}"
|
||||
dir="{{ or site.Language.LanguageDirection `ltr` }}"
|
||||
>
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
<body class="body">
|
||||
<header class="header">
|
||||
<div class="brand">
|
||||
<img src="/logo.png" alt="Freedoms4 logo" />
|
||||
<h1>Freedoms4</h1>
|
||||
{{- $rssURL := "/index.xml" -}}
|
||||
{{- with .OutputFormats.Get "rss" -}}
|
||||
{{- $rssURL = .RelPermalink -}}
|
||||
{{- end -}}
|
||||
<a href="{{ $rssURL }}" class="rss-subscribe__link" title="Subscribe via RSS">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="10" height="10" fill="currentColor" aria-hidden="true">
|
||||
<path d="M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19.01 7.38 20 6.18 20C4.98 20 4 19.01 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27V4.44m0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93V10.1z"/>
|
||||
</svg>
|
||||
<span>Subscribe</span>
|
||||
</a>
|
||||
</div>
|
||||
{{ partial "header.html" . }}
|
||||
</header>
|
||||
<main class="main">{{ block "main" . }}{{ end }}</main>
|
||||
<footer class="footer">{{ partial "footer.html" . }}</footer>
|
||||
{{ partial "body/body-end.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user