Styling corrections, translations everywhere!

master
southerntofu 2020-03-29 21:15:57 +02:00
parent 11bd75254e
commit 7afdccc62e
4 changed files with 20 additions and 3 deletions

View File

@ -22,3 +22,11 @@ title = "dnsmanager - liberate your zones"
browse = "https://tildegit.org/southerntofu/dnsmanager-website/src/branch/master/" browse = "https://tildegit.org/southerntofu/dnsmanager-website/src/branch/master/"
home = "https://tildegit.org/" home = "https://tildegit.org/"
name = "tildegit" name = "tildegit"
[translations]
[translations.fr]
source = "Source de cette page"
readmore = "Lire la suite"
[translations.en]
source = "Source for this page"
readmore = "Read more"

View File

@ -19,8 +19,14 @@ article > div:first-child {
text-align: center; text-align: center;
} }
.read-more {
text-align: center;
display: block;
font-weight: bold;
}
main { main {
margin-top: 1rem; margin: 1rem 0;
} }
.source { .source {

View File

@ -28,10 +28,12 @@
<footer> <footer>
{% if config.extra.forge %} {% if config.extra.forge %}
<aside class="source"> <aside class="source">
{% if lang %}{% set translated = trans(key="source", lang=lang) %}
{% else %}{% set translated = trans(key="source") %}{% endif %}
{% if section %} {% if section %}
<a href="{{ config.extra.forge.browse }}content/{{ section.path }}_index.md">Source</a> <a href="{{ config.extra.forge.browse }}content/{{ section.path }}_index.md">{{ translated }}</a>
{% else %} {% else %}
<a href="{{ config.extra.forge.browse }}content/{{ page.path }}index.md">Source</a> <a href="{{ config.extra.forge.browse }}content/{{ page.path }}index.md">{{ translated }}</a>
{% endif %} {% endif %}
</aside> </aside>
{% endif %} {% endif %}

View File

@ -15,6 +15,7 @@
{% if page.summary %} {% if page.summary %}
<div class="p-summary e-content"> <div class="p-summary e-content">
{{ page.summary | markdown | safe }} {{ page.summary | markdown | safe }}
<a class="read-more" href="{{ page.permalink }}">--> {% if lang %}{{ trans(key="readmore", lang=lang) }}{% else %}{{ trans(key="readmore") }}{% endif %} <--</a>
</div> </div>
{% else %} {% else %}
<div class="e-content"> <div class="e-content">