pedf
/
fakulta-online
Archived
1
0
Fork 0

Změna struktury obsahu indexu

master
Emil Miler 4 years ago
parent 88815a3741
commit 70472d3814

@ -33,8 +33,15 @@ main {
padding: 1em; padding: 1em;
margin: 0 auto; margin: 0 auto;
&.fullwidth { max-width: $header-width; }
.partial { max-width: 35%; }
h2 { font-size: 3em; } h2 { font-size: 3em; }
} }
main#index {
max-width: $header-width;
display: flex;
align-items: center;
justify-content: space-between;
section, aside { max-width: 35%; }
}

@ -14,12 +14,12 @@
<span id="menu">Menu</span> <span id="menu">Menu</span>
</header> </header>
{% block content %} {% block content %}
<main class="fullwidth"> <main id="index">
<section class="partial"> <section>
<h2>{{ config.title }}</h2> <h2>{{ config.title }}</h2>
{{ section.content | safe }} {{ section.content | safe }}
</section> </section>
<aside class="partial"> <aside>
{% for page in section.pages %} {% for page in section.pages %}
{% if page.extra.indexnav %} {% if page.extra.indexnav %}
<a href="{{page.permalink}}">{{ page.title }}</a> <a href="{{page.permalink}}">{{ page.title }}</a>