Umstellung der Author-Informationen vom Params nach Author

This commit is contained in:
mdn 2023-01-08 14:52:50 +01:00
parent f8c72825f0
commit 80ae54fa36
4 changed files with 40 additions and 20 deletions

View file

@ -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.Params.Avatar "description" .Site.Params.Description) -}}
{{- partial "widget/aboutme.html" (dict "avatar" .Site.Author.avatar "description" .Site.Author.description) -}}
{{ with .Site.Params.Social }}
{{ with .Site.Author.social }}
{{- partial "widget/header.html" (dict "title" "Contact Me") -}}
{{- partial "widget/socials.html" . -}}
{{ end }}

View file

@ -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.Params.Avatar "description" .Site.Params.Description) -}}
{{- partial "widget/aboutme.html" (dict "avatar" .Site.Author.avatar "description" .Site.Author.description) -}}
{{ with .Site.Params.Social }}
{{ with .Site.Author.social }}
{{- partial "widget/header.html" (dict "title" "Contact Me") -}}
{{- partial "widget/socials.html" . -}}
{{ end }}

View file

@ -1,8 +1,22 @@
{{ define "main" }}
<div id="home-jumbotron" class="jumbotron text-center bg-light">
<div id="home-jumbotron" class="jumbotron text-center bg-light p-5">
<h1 class="title">{{ .Site.Title }}</h1>
<div>
{{ .Site.Params.Description }}
</div>
</div>
<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) -}}
</div>
<div class="col-lg-6">
{{- partial "widget/header.html" (dict "title" "Contact Me") -}}
{{ with .Site.Author.social }}
{{- partial "widget/socials.html" . -}}
{{ end }}
</div>
</div>
{{ end }}