mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-02 14:46:25 +00:00
Update Hugo version
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{{ define "main" }}
|
||||
{{ $paginator := (.Paginate .RegularPagesRecursive) }}
|
||||
|
||||
<main class="posts">
|
||||
<h1>{{ .Title }}</h1>
|
||||
@@ -12,7 +13,7 @@
|
||||
{{- end }}
|
||||
|
||||
<div class="posts-list masonry">
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ range $paginator.Pages }}
|
||||
<div class="post masonry-item">
|
||||
<div class="masonry-item-content">
|
||||
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
|
||||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<icon>{{"favicon-32x32.png" | absURL}}</icon>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
{{- with .Site.LanguageCode }}
|
||||
<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" }}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{- end }}
|
||||
{{ range .RegularPagesRecursive | first .Site.Params.rssLimit }}
|
||||
<item>
|
||||
<title>{{ .Title }}{{ with .Params.Subtitle }} // {{ . }}{{ end }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
<published>{{ .Date.Format "2006-01-02T15:04:05Z0700" | safeHTML }}</published>
|
||||
{{- if .GitInfo }}
|
||||
<updated>{{ dateFormat "2006-01-02T15:04:05Z0700" .GitInfo.AuthorDate.Local | safeHTML }}</updated>
|
||||
{{- end }}
|
||||
<author>{{ .Params.author }}</author>
|
||||
<guid isPermaLink="true">{{ .Permalink }}</guid>
|
||||
<description>{{ printf `<![CDATA[%s]]>` .Params.description | safeHTML }}</description>
|
||||
{{ $content := .Content}}
|
||||
{{- if .Params.Cover }}
|
||||
{{- $content = (printf `%s%s` (partial "image.html" (dict "path" .Params.Cover "alt" (.Title | plainify) "class" "post-cover")) $content) }}
|
||||
{{- end }}
|
||||
<content:encoded type="html">{{ printf `<![CDATA[%s]]>` $content | safeHTML }}</content:encoded>
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
||||
@@ -152,7 +152,7 @@
|
||||
{{- end }}
|
||||
|
||||
|
||||
{{- if .Site.DisqusShortname }}
|
||||
{{- if .Site.Config.Services.Disqus.Shortname }}
|
||||
{{- if not (eq .Params.Comments "false") }}
|
||||
<div id="comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
||||
Reference in New Issue
Block a user