Compare commits
No commits in common. "9219975673f825c2598d6b7b89c27a8bba14c862" and "14a466e315573e97c4a1dadf8bf7e9a8ad4d7d85" have entirely different histories.
9219975673
...
14a466e315
6 changed files with 19 additions and 44 deletions
|
@ -48,8 +48,6 @@ theme = "BlogAMore"
|
||||||
# Beschreibung das Webseitenbesitzers, für die Seitenleiste
|
# Beschreibung das Webseitenbesitzers, für die Seitenleiste
|
||||||
avatar = "/img/author.jpg"
|
avatar = "/img/author.jpg"
|
||||||
description = "Eine Beschreibung des Autors, als kurze Zusammenfassung"
|
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]
|
[author.social]
|
||||||
# Links zur erreichbarkeit des Autors (Email ist leider 2 mal anzugeben)
|
# Links zur erreichbarkeit des Autors (Email ist leider 2 mal anzugeben)
|
||||||
|
@ -226,10 +224,6 @@ date: {{ now.Format "2006-01-02" }}
|
||||||
|
|
||||||
> comming soon...
|
> comming soon...
|
||||||
|
|
||||||
### link
|
|
||||||
|
|
||||||
> cooming soon...
|
|
||||||
|
|
||||||
## Weiteres
|
## 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)
|
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)
|
||||||
|
|
|
@ -12,13 +12,7 @@
|
||||||
<item>
|
<item>
|
||||||
<title>{{ .title }}</title>
|
<title>{{ .title }}</title>
|
||||||
<description>{{ .comment }}</description>
|
<description>{{ .comment }}</description>
|
||||||
<link>
|
<link>{{ (path.Join $baseDir .filename) | absURL }}</link>
|
||||||
{{ if isset . "url" }}
|
|
||||||
{{- .url | safeURL -}}
|
|
||||||
{{ else }}
|
|
||||||
{{- (path.Join $baseDir .filename) | absURL -}}
|
|
||||||
{{ end }}
|
|
||||||
</link>
|
|
||||||
<author>{{ with $.Site.Author.email }}{{.}}{{end}}</author>
|
<author>{{ with $.Site.Author.email }}{{.}}{{end}}</author>
|
||||||
<guid></guid>
|
<guid></guid>
|
||||||
<pubDate>{{ (time .published).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ (time .published).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
|
|
|
@ -20,14 +20,3 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
|
||||||
{{ if isset .Site.Author "linkdata" }}
|
|
||||||
{{ with (index .Site.Data .Site.Author.linkdata) }}
|
|
||||||
<div class="position-sticky">
|
|
||||||
{{- partial "widget/header.html" (dict "title" "Links") -}}
|
|
||||||
{{- partial "widget/links.html" . -}}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
|
@ -1,16 +0,0 @@
|
||||||
<ul>
|
|
||||||
{{ range (where . "visible" 1) }}
|
|
||||||
<li>
|
|
||||||
{{ .name }}
|
|
||||||
<ul>
|
|
||||||
{{ range (where .urls "visible" 1) }}
|
|
||||||
<li>
|
|
||||||
<a href="{{ .url }}" target="{{- .target -}}" alt="{{- .description }}">{{ .name }}</a>
|
|
||||||
<br/>
|
|
||||||
{{ .description }}
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
|
@ -1,7 +1,8 @@
|
||||||
{{ $dataName := .Get "data" }}
|
{{ $dataName := .Get "data" }}
|
||||||
|
{{ $baseDir := path.Dir .Page.File }}
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{{ range (index .Site.Data (split $dataName "/")) }}
|
{{ range (index .Site.Data (split $dataName "/")) }}
|
||||||
<li><a href="{{ .url | safeURL }}">{{ .title }}{{ with .filesize }} ({{ int (div (div . 1024) 1024) }} MB){{ end }}</a><br/>{{ .comment }}</li>
|
<li><a href="{{ (path.Join $baseDir .filename) | absURL }}">{{ .title }}{{ with .filesize }} ({{ int (div (div . 1024) 1024) }} MB){{ end }}</a><br/>{{ .comment }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,5 +1,18 @@
|
||||||
{{ $dataName := .Get "data" }}
|
{{ $dataName := .Get "data" }}
|
||||||
|
|
||||||
{{ with (index .Site.Data (split $dataName "/")) }}
|
<ul>
|
||||||
{{- partial "widget/links.html" . -}}
|
{{ range (where (index .Site.Data (split $dataName "/")) "visible" 1) }}
|
||||||
|
<li>
|
||||||
|
{{ .name }}
|
||||||
|
<ul>
|
||||||
|
{{ range (where .urls "visible" 1) }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .url }}" target="{{- .target -}}" alt="{{- .description }}">{{ .name }}</a>
|
||||||
|
<br/>
|
||||||
|
{{ .description }}
|
||||||
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue