diff --git a/README.md b/README.md index 76ed94b3c4bf49b800deb2fa3bc323f83b4d2d86..0b4ba971a430081f2c937221a5a8bc7f9142d236 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/main/templates/main/main_article_page.html b/main/templates/main/main_article_page.html index a5a066e9369bec76718451acc1b07810e9c56c3a..9504db516912014bd1223aa1675c1e35f6032543 100644 --- a/main/templates/main/main_article_page.html +++ b/main/templates/main/main_article_page.html @@ -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 %}