From 1ec0b0f7aa91477062256b97894ec07ac52da4c3 Mon Sep 17 00:00:00 2001 From: Arnas Udovic Date: Tue, 14 Feb 2023 16:52:14 +0200 Subject: [PATCH] remove space between file links --- formatter.go | 2 +- templates/sgs/index.gmi | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/formatter.go b/formatter.go index 4ddaf92..d9246b8 100644 --- a/formatter.go +++ b/formatter.go @@ -37,7 +37,7 @@ func (fileContent *FileContent) FormatContent() string { } // append links to that paragraph if len(buffer) > 0 { - data = append(data, []byte("\n")...) + data = append(data, []byte("\n\n")...) data = append(data, buffer...) } diff --git a/templates/sgs/index.gmi b/templates/sgs/index.gmi index acdc551..829a276 100644 --- a/templates/sgs/index.gmi +++ b/templates/sgs/index.gmi @@ -22,6 +22,8 @@ Pagrindėnės temas paskėrstītas par kateguorėjės. Kuožnos fails gal turie {{ tag_url(lang, tag, count) }} {% endfor %} {% endif %} {% if lastFiles %}### Paskotėnē īrašā -{% for file in lastFiles %}{{ text_url(lang, file) }} {% endfor %} {% endif %} + +{% for file in lastFiles %}{{ text_url(lang, file) }} {% endfor %} +{% endif %} => /sgs/f vėsė straipsnē ({{ tree.Files|length }})