diff --git a/content/pages/algoliterary-works.md b/content/pages/algoliterary-works.md index 993940c..768d268 100644 --- a/content/pages/algoliterary-works.md +++ b/content/pages/algoliterary-works.md @@ -1,4 +1,5 @@ title: Algoliterary Works -status: hidden +template: algoliterary-works +save_as: algoliterary-works.html --- \ No newline at end of file diff --git a/theme/static/styles/styles.css b/theme/static/styles/styles.css index f0a890e..78395a3 100644 --- a/theme/static/styles/styles.css +++ b/theme/static/styles/styles.css @@ -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; +} \ No newline at end of file diff --git a/theme/templates/activities.html b/theme/templates/activities.html index f33a340..c5d3fbf 100644 --- a/theme/templates/activities.html +++ b/theme/templates/activities.html @@ -2,7 +2,7 @@ {% block title %}{{ SITENAME }}{%endblock%} -{% block bodyclass %}home{% endblock %} +{% block bodyclass %}activities{% endblock %} {% block content %}

{{ page.title }}

diff --git a/theme/templates/algoliterary-works.html b/theme/templates/algoliterary-works.html new file mode 100644 index 0000000..88f7491 --- /dev/null +++ b/theme/templates/algoliterary-works.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }}{%endblock%} + +{% block bodyclass %}algoliterary-works{% endblock %} + +{% block content %} +

{{ page.title }}

+ {{ page.content }} +{% endblock %} + +{% block sidebar %} + {% for article in categories|get_category_articles('algoliterary-works') %} +
+ +

{{ article.title }}

+
+ {{ 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')}} +
+ +
+
+ {{ article.content }} +
+ {{ 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')}} +
+
+ {% endfor %} +{% endblock %} \ No newline at end of file