From 2a1daf1f52757f63d3dc33adc360494d31ed52a6 Mon Sep 17 00:00:00 2001
From: mdn <1stdragon@gmail.com>
Date: Sat, 14 Jan 2023 21:02:03 +0100
Subject: [PATCH 1/2] Auflistung der Links in widget ausgelagert und auf
Index-Seite mit angezeigt
---
README.md | 6 ++++++
layouts/index.html | 11 +++++++++++
layouts/partials/widget/links.html | 16 ++++++++++++++++
layouts/shortcodes/link.html | 19 +++----------------
4 files changed, 36 insertions(+), 16 deletions(-)
create mode 100644 layouts/partials/widget/links.html
diff --git a/README.md b/README.md
index aac4863..0780856 100644
--- a/README.md
+++ b/README.md
@@ -48,6 +48,8 @@ theme = "BlogAMore"
# Beschreibung das Webseitenbesitzers, für die Seitenleiste
avatar = "/img/author.jpg"
description = "Eine Beschreibung des Autors, als kurze Zusammenfassung"
+ # Name der Datendatei mit einer Auflistung von Link, Aufbau der Datei ist im Shortcode Link zu finden
+ linkdata = "links"
[author.social]
# Links zur erreichbarkeit des Autors (Email ist leider 2 mal anzugeben)
@@ -224,6 +226,10 @@ date: {{ now.Format "2006-01-02" }}
> comming soon...
+### link
+
+> cooming soon...
+
## Weiteres
Haben Sie einen Fehler gefunden oder eine Idee für ein neues Feature? Schicken Sie mir bitte eine Mail an ... Oder erstellen Sie direkt einen [Pull Request](https://gitea.marcodn.de/mdn/blogamore/pulls)
diff --git a/layouts/index.html b/layouts/index.html
index 641aa9a..2e5d380 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -19,4 +19,15 @@
{{ end }}
+{{ end }}
+
+{{ define "sidebar" }}
+ {{ if isset .Site.Author "linkdata" }}
+ {{ with (index .Site.Data .Site.Author.linkdata) }}
+
+ {{ end }}
+ {{ end }}
{{ end }}
\ No newline at end of file
diff --git a/layouts/partials/widget/links.html b/layouts/partials/widget/links.html
new file mode 100644
index 0000000..31df44b
--- /dev/null
+++ b/layouts/partials/widget/links.html
@@ -0,0 +1,16 @@
+