Skip to content

Commit

Permalink
Fix site for latest hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
sgued committed Dec 18, 2024
1 parent eeeeedb commit b7b2ffa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<ul class="list-inline text-center footer-links">
{{ range .Site.Data.social.social_icons }}
{{- if isset $.Site.Author .id }}
{{- if isset $.Site.Params.Author .id }}
<li>
<a href="{{ printf .url (index $.Site.Author .id) }}" title="{{ .title }}">
<a href="{{ printf .url (index $.Site.Params.Author .id) }}" title="{{ .title }}">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="{{ .icon }} fa-stack-1x fa-inverse"></i>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta name="description" content="{{ . }}">
<meta property="og:description" content="{{ . }}">
{{- end }}
<meta name="author" content="{{ .Site.Author.name }}"/>
<meta name="author" content="{{ .Site.Params.Author.name }}"/>
{{- with .Site.Params.favicon }}
<link href='{{ . | relURL }}' rel='icon' type='image/x-icon'/>
{{- end -}}
Expand Down
8 changes: 4 additions & 4 deletions layouts/posts/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<link>{{ .Permalink }}</link>
<description>Recent news about Peertube Viewer</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
Expand All @@ -30,7 +30,7 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content| html }}</description>
</item>
Expand Down
10 changes: 5 additions & 5 deletions layouts/releases/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<link>{{ .Permalink }}</link>
<description>All peertube-viewer releases</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
Expand All @@ -32,7 +32,7 @@
<title> Release {{ .version }} of peertube-viewer-rs</title>
<link>{{ "download" | absURL }}</link>
<pubDate>{{ dateFormat "Mon, 02 Jan 2006" .releaseDate | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ $permalink }}</guid>
<description>peertube-viewer-rs {{ .version }} is out! Go &lt;a href="{{ "download" | absURL }}"&gt;download it&lt;/a&gt; now!</description>
</item>
Expand All @@ -44,7 +44,7 @@
<title> Release {{ .version }} of peertube-viewer-rs</title>
<link>{{ $permalink }}</link>
<pubDate>{{ dateFormat "Mon, 02 Jan 2006 15:04:05 -0700" .releaseDate | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ printf "%s#%s" ("releases" | absURL) .versionNoDot }}</guid>
<description>peertube-viewer-rs {{ .version }} is out! Go &lt;a href="{{ $permalink }}"&gt;download it now&lt;/a&gt;!</description>
</item>
Expand Down

0 comments on commit b7b2ffa

Please sign in to comment.