diff --git a/README.md b/README.md index 0780856..aac4863 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,6 @@ 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) @@ -226,10 +224,6 @@ 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/feed/rss.xml b/layouts/feed/rss.xml index a56cd0a..8224699 100644 --- a/layouts/feed/rss.xml +++ b/layouts/feed/rss.xml @@ -12,13 +12,7 @@ {{ .title }} {{ .comment }} - - {{ if isset . "url" }} - {{- .url | safeURL -}} - {{ else }} - {{- (path.Join $baseDir .filename) | absURL -}} - {{ end }} - + {{ (path.Join $baseDir .filename) | absURL }} {{ with $.Site.Author.email }}{{.}}{{end}} {{ (time .published).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} diff --git a/layouts/index.html b/layouts/index.html index 2e5d380..641aa9a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -19,15 +19,4 @@ {{ end }} -{{ end }} - -{{ define "sidebar" }} - {{ if isset .Site.Author "linkdata" }} - {{ with (index .Site.Data .Site.Author.linkdata) }} -
- {{- partial "widget/header.html" (dict "title" "Links") -}} - {{- partial "widget/links.html" . -}} -
- {{ end }} - {{ end }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/widget/links.html b/layouts/partials/widget/links.html deleted file mode 100644 index 31df44b..0000000 --- a/layouts/partials/widget/links.html +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/layouts/shortcodes/download-feed.html b/layouts/shortcodes/download-feed.html index 08c5f16..ab74640 100644 --- a/layouts/shortcodes/download-feed.html +++ b/layouts/shortcodes/download-feed.html @@ -1,7 +1,8 @@ {{ $dataName := .Get "data" }} +{{ $baseDir := path.Dir .Page.File }} diff --git a/layouts/shortcodes/link.html b/layouts/shortcodes/link.html index 88a1173..fbfdea1 100644 --- a/layouts/shortcodes/link.html +++ b/layouts/shortcodes/link.html @@ -1,5 +1,18 @@ {{ $dataName := .Get "data" }} -{{ with (index .Site.Data (split $dataName "/")) }} - {{- partial "widget/links.html" . -}} -{{ end }} +