Styling corrections, translations everywhere!

This commit is contained in:
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/"
home = "https://tildegit.org/"
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;
}
.read-more {
text-align: center;
display: block;
font-weight: bold;
}
main {
margin-top: 1rem;
margin: 1rem 0;
}
.source {

View File

@ -28,10 +28,12 @@
<footer>
{% if config.extra.forge %}
<aside class="source">
{% if lang %}{% set translated = trans(key="source", lang=lang) %}
{% else %}{% set translated = trans(key="source") %}{% endif %}
{% 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 %}
<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 %}
</aside>
{% endif %}

View File

@ -15,6 +15,7 @@
{% if page.summary %}
<div class="p-summary e-content">
{{ 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>
{% else %}
<div class="e-content">