Starting navigation

master
Gijs 3 years ago
parent dbe0a312a2
commit a53fca3406

@ -1,4 +1,5 @@
title: Algoliterary Works
status: hidden
template: algoliterary-works
save_as: algoliterary-works.html
---

@ -33,7 +33,7 @@ html, body {
body {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr;
grid-template-rows: min-content 1fr;
height: 100vh;
box-sizing: border-box;
}
@ -65,12 +65,13 @@ main {
overflow-y: auto;
}
main {
main, nav {
border-right: 1px solid black;
}
aside {
grid-column: 2;
grid-row: 1 / 3;
overflow-y: auto;
}
@ -242,3 +243,26 @@ strong {
}
img {max-width: 100%;}
ul#nav {
display: flex;
flex-direction: row;
border-bottom: 1px solid black;
}
ul#nav li {
border-right: 1px solid black;
padding: .5em 1.5em;
flex: 1 0;
}
ul#nav li:last-child {
border-right: 0;
}
ul#nav li a {
text-decoration: none;
/* text-transform: uppercase; */
/* font-weight: 500; */
letter-spacing: .25px;
}

@ -2,7 +2,7 @@
{% block title %}{{ SITENAME }}{%endblock%}
{% block bodyclass %}home{% endblock %}
{% block bodyclass %}activities{% endblock %}
{% block content %}
<h1>{{ page.title }}</h1>

@ -0,0 +1,37 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }}{%endblock%}
{% block bodyclass %}algoliterary-works{% endblock %}
{% block content %}
<h1>{{ page.title }}</h1>
{{ page.content }}
{% endblock %}
{% block sidebar %}
{% for article in categories|get_category_articles('algoliterary-works') %}
<details>
<summary>
<h2>{{ article.title }}</h2>
<dl>
{{ article.algorithm|display_if_set('Algorithm')}}
{{ article.trees|display_if_set('Trees')}}
{{ article.humans|display_if_set('Humans')}}
{{ article.language|display_if_set('Language')}}
{{ article.published|display_if_set('Published')}}
{{ article.license|display_if_set('License')}}
<dt></dt>
<dd class="read-online-link"><a href="{{ article.publication_url }}">Read the book online ⤤</a></dd>
</dl>
</summary>
{{ article.content }}
<dl>
{{ article.publication_url|display_if_set('URL')}}
{{ article.repository|display_if_set('Repository')}}
{{ article.support|display_if_set('With the support of')}}
{{ article.thanks|display_if_set('Thanks to')}}
</dl>
</details>
{% endfor %}
{% endblock %}
Loading…
Cancel
Save