Styling corrections, translations everywhere!
This commit is contained in:
parent
11bd75254e
commit
7afdccc62e
@ -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"
|
||||
|
@ -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 {
|
||||
|
@ -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 %}
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user