Umstellung auf neue Hugo Version 0.139.4 - Verschieben der Author-Sektion
This commit is contained in:
parent
dca5adb929
commit
8662c0add2
9 changed files with 32 additions and 24 deletions
|
@ -12,9 +12,9 @@
|
|||
{{ define "sidebar" }}
|
||||
<div class="position-sticky">
|
||||
{{- partial "widget/header.html" (dict "title" "About Me") -}}
|
||||
{{- partial "widget/aboutme.html" (dict "avatar" .Site.Author.avatar "description" .Site.Author.description) -}}
|
||||
{{- partial "widget/aboutme.html" (dict "avatar" .Site.Params.Author.avatar "description" .Site.Params.Author.description) -}}
|
||||
|
||||
{{ with .Site.Author.social }}
|
||||
{{ with .Site.Params.Author.social }}
|
||||
{{- partial "widget/header.html" (dict "title" "Contact Me") -}}
|
||||
{{- partial "widget/socials.html" . -}}
|
||||
{{ end }}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</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" -}}
|
||||
|
@ -24,7 +24,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>{{ .Summary | html }}</description>
|
||||
</item>
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
{{ define "sidebar" }}
|
||||
<div class="position-sticky">
|
||||
{{- partial "widget/header.html" (dict "title" "About Me") -}}
|
||||
{{- partial "widget/aboutme.html" (dict "avatar" .Site.Author.avatar "description" .Site.Author.description) -}}
|
||||
{{- partial "widget/aboutme.html" (dict "avatar" .Site.Params.Author.avatar "description" .Site.Params.Author.description) -}}
|
||||
|
||||
{{- with .Site.Author.social }}
|
||||
{{- with .Site.Params.Author.social }}
|
||||
{{- partial "widget/header.html" (dict "title" "Contact Me") -}}
|
||||
{{- partial "widget/socials.html" . -}}
|
||||
{{ end -}}
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</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" -}}
|
||||
|
@ -28,7 +28,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>{{ .Summary | html }}</description>
|
||||
</item>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<link>{{ .Site.BaseURL }}</link>
|
||||
<description>{{ .Page.Params.description }}</description>
|
||||
<language>{{ .Site.LanguageCode }}</language>
|
||||
<copyright>{{ with .Site.Author.email }}{{.}}{{end}}</copyright>
|
||||
<copyright>{{ with .Site.Params.Author.email }}{{.}}{{end}}</copyright>
|
||||
<pubDate>{{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ range (index .Site.Data ( .Page.Params.dataname )) }}
|
||||
<item>
|
||||
|
@ -19,7 +19,7 @@
|
|||
{{- (path.Join $baseDir .filename) | absURL -}}
|
||||
{{ end }}
|
||||
</link>
|
||||
<author>{{ with $.Site.Author.email }}{{.}}{{end}}</author>
|
||||
<author>{{ with $.Site.Params.Author.email }}{{.}}{{end}}</author>
|
||||
<guid></guid>
|
||||
<pubDate>{{ (time .published).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
</item>
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
{{- partial "widget/header.html" (dict "title" "About Me") -}}
|
||||
{{- partial "widget/aboutme.html" (dict "avatar" .Site.Author.avatar "description" .Site.Author.description) -}}
|
||||
{{- partial "widget/aboutme.html" (dict "avatar" .Site.Params.Author.avatar "description" .Site.Params.Author.description) -}}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
{{- partial "widget/header.html" (dict "title" "Contact Me") -}}
|
||||
{{ with .Site.Author.social }}
|
||||
{{ with .Site.Params.Author.social }}
|
||||
{{- partial "widget/socials.html" . -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
@ -22,8 +22,8 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "sidebar" }}
|
||||
{{- if isset .Site.Author "linkdata" -}}
|
||||
{{- with (index .Site.Data .Site.Author.linkdata) }}
|
||||
{{- if isset .Site.Params.Author "linkdata" -}}
|
||||
{{- with (index .Site.Data .Site.Params.Author.linkdata) }}
|
||||
<div class="position-sticky">
|
||||
{{- partial "widget/header.html" (dict "title" "Links") -}}
|
||||
{{- partial "widget/links.html" . -}}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
||||
{{/* compressed soll besser sein als minify bei SASS */}}
|
||||
{{- $sassOptions := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "includePaths" "assets/bootstrap/scss") -}}
|
||||
{{- $sassStyle := resources.Get "_own/sass/main.scss" | resources.ToCSS $sassOptions | minify -}}
|
||||
{{- $sassStyle := resources.Get "_own/sass/main.scss" | toCSS $sassOptions | minify -}}
|
||||
<link rel="stylesheet" type="text/css" href="{{ $sassStyle.RelPermalink | relURL }}">
|
||||
|
||||
{{- $style := resources.Match "_own/css/**.css" | resources.Concat "css/custom.css" | minify -}}{{/* .Resources.GetMatch "css/**.css" */}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue