Skip to content
Snippets Groups Projects
Commit bda5590f authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

handle missing author name

parent 37626797
No related branches found
No related tags found
2 merge requests!694Release,!693Handle missing author name in article template, fix README default postgres port, fix donations page richtext <i>
Pipeline #11042 passed
......@@ -134,7 +134,7 @@ Je třeba nastavit environment proměnné:
| proměnná | default | popis |
| --- | --- | --- |
| `DATABASE_URL` | | DSN k databázi (např. `postgres://user:pass@localhost:5342/majak`) |
| `DATABASE_URL` | | DSN k databázi (např. `postgres://user:pass@localhost:5432/majak`) |
| `OIDC_RP_REALM_URL` | | OpenID server realm URL (např. `http://localhost:8080/auth/realms/master/`) |
| `OIDC_RP_CLIENT_ID` | | OpenID Client ID |
| `OIDC_RP_CLIENT_SECRET` | | OpenID Client Secret |
......
......@@ -9,29 +9,31 @@
{# {% routablepageurl page.root_page.articles_page "tags" as articles_tag_page_url %}#}
<main role="main" class="mb-10 xl:mb-32">
<div class="grid-container mb-2 lg:mb-12 relative">
<div class="grid-left-side h-full bg-grey-150 left-tab">
<div class="p-6 flex flex-wrap flex-row items-center justify-between xl:items-start xl:flex-col">
{% if page.author_page.title or page.author %}
<span class="3xl:text-xl">
<div class="font-bold">AUTOR ČLÁNKU:</div>
<span class="font-light">{% firstof page.author.upper page.author_page.title.upper %}</span>
</span>
{% endif %}
<div class="flex flex-row static bottom-0 xl:absolute sm:bottom-5">
{% for social in page.author_page.social_links %}
<a href="{{ social.value.link }}" class="flex hover:no-underline">
<i class="{{ social.value.icon }} mx-1"></i>
</a>
{% endfor %}
{% if page.author_page.title or page.author %}
<div class="grid-left-side h-full bg-grey-150 left-tab">
<div class="p-6 flex flex-wrap flex-row items-center justify-between xl:items-start xl:flex-col">
<span class="3xl:text-xl">
<div class="font-bold">AUTOR ČLÁNKU:</div>
<span class="font-light">{% firstof page.author.upper page.author_page.title.upper %}</span>
</span>
<div class="flex flex-row static bottom-0 xl:absolute sm:bottom-5">
{% for social in page.author_page.social_links %}
<a href="{{ social.value.link }}" class="flex hover:no-underline">
<i class="{{ social.value.icon }} mx-1"></i>
</a>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class="grid-content leading-6">
<p class="font-condensed text-xl leading-7 mb-5">
{{ page.perex }}
</p>
</div>
<div class="hidden grid-right-side h-full bg-grey-150 right-tab xl:block"></div>
{% if page.author_page.title or page.author %}
<div class="hidden grid-right-side h-full bg-grey-150 right-tab xl:block"></div>
{% endif %}
</div>
{% for block in page.content %}
{% include_block block %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment