remove space between file links; remove --- before links
This commit is contained in:
parent
a588e6e573
commit
7f5d5f40b1
8 changed files with 10 additions and 15 deletions
|
@ -37,7 +37,7 @@ func (fileContent *FileContent) FormatContent() string {
|
|||
}
|
||||
// append links to that paragraph
|
||||
if len(buffer) > 0 {
|
||||
data = append(data, []byte("\n\n---\n")...)
|
||||
data = append(data, []byte("\n")...)
|
||||
data = append(data, buffer...)
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{% import "macros.tpl" category_url, tag_url, text_url, logo %}
|
||||
# {{ logo() }} Arna alkierios :: {% if lang == "sgs" %}Vėsė tekstā{% else %}All texts{% endif %}
|
||||
|
||||
{% for file in tree.Files %}{{ text_url(lang, file) }}
|
||||
{% endfor %}
|
||||
{% for file in tree.Files %}{{ text_url(lang, file) }} {% endfor %}
|
||||
|
||||
=> {% if lang == "sgs" %}/sgs ← grīžtė{% else %}/en ← back{% endif %}
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
🌙{{ indexFile.File.Created}}
|
||||
{{ indexFile.File.Copyright }}{% endif %}
|
||||
|
||||
{% for file in tree.RootFiles %}{% if file.Name != "index.md" %}{{ text_url(lang, file) }}{% endif %}
|
||||
{% endfor %}
|
||||
{% for file in tree.RootFiles %}{% if file.Name != "index.md" %}{{ text_url(lang, file) }}{% endif %}{% endfor %}
|
||||
{% if tree.Categories %}### {% if lang == "sgs" %}Kateguorėjės{% else %}Categories{% endif %}
|
||||
{% for cat, count in tree.Categories %}{{ category_url(lang, tree.Path|add:"/"|add:cat, cat, count) }}
|
||||
{% endfor %} {% endif %}
|
||||
|
|
|
@ -22,7 +22,6 @@ Main themes are spreaded by categories. Each file may have tags what can filter
|
|||
{{ tag_url(lang, tag, count) }} {% endfor %} {% endif %}
|
||||
|
||||
{% if lastFiles %}### Last texts
|
||||
{% for file in lastFiles %}
|
||||
{{ text_url(lang, file) }} {% endfor %} {% endif %}
|
||||
{% for file in lastFiles %}{{ text_url(lang, file) }} {% endfor %} {% endif %}
|
||||
|
||||
=> /en/f all texts ({{ tree.Files|length }})
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
{% macro tag_url(lang, tag, count) export %}=> /{{ lang }}/t/{{ tag }} 🏷 {{ tag }}{% if count %} ({{ count }}){% endif %} {% endmacro %}
|
||||
|
||||
{% macro text_url(lang, file) export %}=> /{{ lang }}/f/{{ file.CategoriesAsUrl() }}/{{ file.Id }}/{{ file.GmiName() }} ✒ {{ file.Description }} ({{ file.Created }}) {% endmacro %}
|
||||
{% macro text_url(lang, file) export %}=> /{{ lang }}/f/{{ file.CategoriesAsUrl() }}/{{ file.Id }}/{{ file.GmiName() }} ✒ {{ file.Description }} ({{ file.Created }})
|
||||
{% endmacro %}
|
||||
|
||||
{% macro logo() export %}🌛{% endmacro %}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
{% if lang == "sgs" %}Ėiškuota vagol{% else %}Searched by{% endif %}: {{ q }}
|
||||
{% if tree.Files|length == 0 %}{% if lang == "sgs" %}Nieka narada{% else %}Nothing found{% endif %}...{% else %}
|
||||
{% for file in tree.Files %}
|
||||
{{ text_url(lang, file) }} {% endfor %} {% endif %}
|
||||
{% for file in tree.Files %}{{ text_url(lang, file) }} {% endfor %} {% endif %}
|
||||
|
||||
=> {% if lang == "sgs" %}/sgs ← grīžtė{% else %}/en ← back{% endif %}
|
||||
|
|
|
@ -22,7 +22,6 @@ 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 }})
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{% import "macros.tpl" category_url, tag_url, text_url, logo %}
|
||||
# {{ logo() }} Arna alkierios :: [{{ tag }}]
|
||||
|
||||
{% for file in tree.Files %}{{ text_url(lang, file) }}
|
||||
{% endfor %}
|
||||
{% for file in tree.Files %}{{ text_url(lang, file) }}{% endfor %}
|
||||
{% if tree.Tags %}### {% if lang == "sgs" %}Žīmas{% else %}Tags{% endif %}
|
||||
{% for tag, count in tree.Tags %}{{ tag_url(lang, tag, count) }}
|
||||
{% endfor %} {% endif %}
|
||||
|
|
Loading…
Reference in a new issue