updated themes/blackburn and fixed warning with latest hugo verison.

.Hugo.Generator as well as .RSSLink stuff is deprecated.
- https://gohugo.io/variables/hugo/
- https://gohugo.io/variables/page/#page-variables
epvpn
bruegeln 2019-10-06 23:41:09 +02:00
parent da406d7ec6
commit 03ba38edae
3 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ else }}{{ with .Description }}{{ . }}{{ end }}{{ end }}">
{{.Hugo.Generator}}
{{hugo.Generator}}
<title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>
@ -36,8 +36,8 @@
<link href="/web-lib/pygments-friendly.css" rel="stylesheet" type="text/css" />
<!-- RSS -->
{{ if .RSSLink }}
<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ .RSSLink }}" />
{{ if .OutputFormats.Get "RSS" }}
<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}' />
{{ end }}
{{ with .Site.Params.highlightjs }}

View File

@ -1,9 +1,9 @@
<div class="pure-menu social">
<ul class="pure-menu-list">
{{ if and (not (eq .Title "hacKNology")) .RSSLink }}
{{ if and (not (eq .Title "hacKNology")) (.OutputFormats.Get "RSS") }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="{{ .RSSLink }}"><i class="fa fa-rss fa-fw"></i>RSS</a>
<a class="pure-menu-link" href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}'><i class="fa fa-rss fa-fw"></i>RSS</a>
</li>
{{ else }}
<li class="pure-menu-item">

@ -1 +1 @@
Subproject commit 1bd3b1a49e8bc7f1236377fb8d65d947fc6f8af7
Subproject commit 4c748f2e02b2e6964c424ac5e40b807919c3418f