diff --git a/README.md b/README.md index 2a62e2a..6605a23 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,25 @@ title = 'Blogging and more' paginate = 12 theme = "BlogAMore" +[author] + name = 'Max Mustsermann' + email = 'email@example.com' + homepage = 'http://example.com' + # Beschreibung das Webseitenbesitzers, für die Seitenleiste + avatar = "/img/author.jpg" + description = "Eine Beschreibung des Autors, als kurze Zusammenfassung" + +[author.social] + # Links zur erreichbarkeit des Autors (Email ist leider 2 mal anzugeben) + Email = "email@example.com" + Phone = "+49 (0) 1234 56789" + VoIP = "main_kontakt@main_voip_anbieter.de" + Github = "username" + Twitter = "username" + LinkedIn = "username" + matrix = "@mdn:synapse.marcodn.de" + RSS = "/blog/index.xml" + [taxonomies] tag = "tags" category = "categories" @@ -57,10 +76,8 @@ theme = "BlogAMore" blog = "/blog/:year/:slug" [Params] - # Beschreibung das Webseitenbesitzers, für die Seitenleiste - avatar = "/img/author.jpg" - author = "Beispiel Autor" - description = "Eine Beschreibung des Autors, als kurze Zusammenfassung" + # Beschreibung der Seite selbst + description = "Die Beschreibung der Seite" # Dateiname der den aktuellen Commit-Hash entält, sowie die Basis-url des Repo, damit im Footer der aktuelle Hash angezeigt wird, die Datei muss dann am besten über das Published-Script erzeugt werden gitHashFile = "commit_id.txt" @@ -78,17 +95,6 @@ theme = "BlogAMore" [Params.KnowHow] skills = "skills" -[Params.Social] - # Links zur erreichbarkeit des Autors - Email = "email@example.com" - Phone = "+49 (0) 1234 56789" - VoIP = "main_kontakt@main_voip_anbieter.de" - Github = "username" - Twitter = "username" - LinkedIn = "username" - matrix = "@mdn:synapse.marcodn.de" - RSS = "/blog/index.xml" - [menu] # Definition des Hauptmenüs (Die Icons sind via Pre definiert, hierbei wird [FeatherIcons](https://feathericons.com) verwendet) [[menu.main]] diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9f7001f..29229c5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -12,9 +12,9 @@ {{ define "sidebar" }}
{{- 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 }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 50fa018..c687834 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,9 +6,9 @@ {{ define "sidebar" }}
{{- 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 }} diff --git a/layouts/index.html b/layouts/index.html index bae10a1..641aa9a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,8 +1,22 @@ {{ define "main" }} -
+

{{ .Site.Title }}

{{ .Site.Params.Description }}
+ +
+
+ {{- partial "widget/header.html" (dict "title" "About Me") -}} + {{- partial "widget/aboutme.html" (dict "avatar" .Site.Author.avatar "description" .Site.Author.description) -}} +
+ +
+ {{- partial "widget/header.html" (dict "title" "Contact Me") -}} + {{ with .Site.Author.social }} + {{- partial "widget/socials.html" . -}} + {{ end }} +
+
{{ end }} \ No newline at end of file