Create an initial style for 3rd edition with dark mode support

This commit is contained in:
Philipp Oppermann
2020-12-16 20:17:33 +01:00
parent 798d5c58c5
commit 60a0b3bc28
13 changed files with 1413 additions and 0 deletions

View File

@@ -21,6 +21,29 @@
</div>
{% endmacro post_link %}
{% macro post_link_edition_3(page) %}
<div>
{% set translations = page.translations | filter(attribute="lang", value=lang) -%}
{%- if translations -%}
{%- set post = get_page(path = translations.0.path) -%}
{%- else -%}
{%- set post = page -%}
{%- set not_translated = true -%}
{%- endif -%}
<h3 class="post-title"><a href="{{ post.path | safe }}">{{ post.title }}</a></h3>
<div class="post-summary">
{{ post.summary | safe }}
<a class="read-more" href="{{ post.path | safe }}"><em>read&nbsp;more&nbsp;»</em></a>
{%- if lang and not_translated and lang != config.default_language -%}
<aside class="no-translation">
(This post is not translated yet.)
</aside>
{%- endif -%}
</div>
</div>
{% endmacro post_link %}
{% macro utterances() %}
<script src="https://utteranc.es/client.js"
data-repo="phil-opp/blog_os"