add atom feed
This commit is contained in:
parent
2d6136f792
commit
f80a312e17
|
@ -16,16 +16,16 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="mobile" onclick="toogleClass('default-menu');"><span>Menu</span></div>
|
||||
<nav id="default-menu" class="default">{serendipity_printSidebar side="left"}</nav>
|
||||
<nav id="default-menu" class="default">MENU</nav>
|
||||
</header>
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="content" class="container-centered">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</div>
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{ "_css/style.css" | relURL }}" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ "_tool/font-awesome/css/font-awesome.min.css" | relURL }}" />
|
||||
</body>
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link href="{{ .Permalink }}index.xml" rel="self"/>
|
||||
<link href="{{ .Permalink }}"/>{{ if not .Date.IsZero }}
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
|
||||
<id>{{ .Permalink }}</id>{{ with .Site.Author.name }}
|
||||
<author>
|
||||
<name>{{.}}</name>{{ with $.Site.Author.email }}
|
||||
<email>{{.}}</email>{{end}}
|
||||
</author>{{end}}
|
||||
<generator>Hugo -- gohugo.io</generator>{{ range .Data.Pages }}
|
||||
<entry>
|
||||
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
|
||||
<link href="{{ .Permalink }}"/>
|
||||
<id>{{ .Permalink }}</id>{{ with .Site.Params.Author }}
|
||||
<author>
|
||||
<name>{{.}}</name>
|
||||
</author>{{end}}
|
||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
|
||||
</entry>{{ end }}
|
||||
</feed>
|
|
@ -1,12 +1,15 @@
|
|||
<footer id="footer">
|
||||
{{ .Site.RSSLink }}
|
||||
<div class="container-centered">
|
||||
<span class="quickmenu-icon"><i class="fa fa-rss"></i> <a href="https://geeklabor.de/feeds/index.rss2">RSS</a></span>
|
||||
<span class="quickmenu-icon"><i class="fa fa-envelope"></i> <a href="https://geeklabor.de/pages/contact.html">Kontakt</a></span>
|
||||
<span class="quickmenu-icon"><i class="fa fa-user"></i> <a href="https://geeklabor.de/impressum.html">Impressum/Datenschutz</a></span>
|
||||
{{ with .OutputFormats.Get "atom" -}}
|
||||
<span class="quickmenu-icon"><i class="fa fa-rss"></i> <a href="{{ .Permalink }}">Feed</a></span>
|
||||
{{ end }}
|
||||
<span class="quickmenu-icon"><i class="fa fa-envelope"></i> <a href="#">Kontakt</a></span>
|
||||
<span class="quickmenu-icon"><i class="fa fa-user"></i> <a href="#">Impressum/Datenschutz</a></span>
|
||||
<span>Artikel unter <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a></span>
|
||||
</div>
|
||||
<div class="container-centered">
|
||||
Betrieben mit <a href="http://s9y.org/">Serendipity</a><br/>
|
||||
Gehostet auf <a href="https://uberspace.de/">Uberspace</a>
|
||||
Build with <a href="https://gohugo.io/">Hugo</a> and <i class="fa fa-heart"></i><br/>
|
||||
Hosted on <a href="https://uberspace.de/">Uberspace</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
</head>
|
||||
|
|
|
@ -13,9 +13,3 @@ min_version = "0.41"
|
|||
[author]
|
||||
name = ""
|
||||
homepage = ""
|
||||
|
||||
# If porting an existing theme
|
||||
[original]
|
||||
name = ""
|
||||
homepage = ""
|
||||
repo = ""
|
||||
|
|
Reference in New Issue