From d7da17bda111d2fb3d018d66d2b808d595358b56 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Mon, 10 May 2021 20:34:30 +0200 Subject: [PATCH] improve blogroll template --- templates/blogroll.gohtml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/blogroll.gohtml b/templates/blogroll.gohtml index 6da7a89..28d8e82 100644 --- a/templates/blogroll.gohtml +++ b/templates/blogroll.gohtml @@ -9,10 +9,14 @@

{{ string .Blog.Lang "download" }}

{{ $lang := .Blog.Lang }} {{ range .Data.Outlines }} -

{{ with .Title }}{{ . }}{{ else }}{{ with .Text }}{{ . }}{{ end }}{{ end }}

+ {{ $title := .Title }} + {{ if not $title }}{{ $title = .Text }}{{ end }} +

{{ $title }}

{{ end }}