Fixed direction=None in base.html

This commit is contained in:
squidfunk 2020-03-06 10:28:54 +01:00
parent 80f1d3e37b
commit 584eac86ee
3 changed files with 4 additions and 8 deletions

View File

@ -61,7 +61,7 @@
display: block; display: block;
transition: opacity 250ms; transition: opacity 250ms;
font-size: px2rem(13px); font-size: px2rem(13px);
line-height: 1.25; line-height: 1.2;
white-space: nowrap; white-space: nowrap;
// Hack: reduce jitter // Hack: reduce jitter
backface-visibility: hidden; backface-visibility: hidden;

View File

@ -168,7 +168,7 @@
</head> </head>
<!-- Text direction and color palette, if defined --> <!-- Text direction and color palette, if defined -->
{% set direction = config.theme.direction | default(lang.t('direction')) %} {% set direction = config.theme.direction or lang.t('direction') %}
{% if palette.primary or palette.accent %} {% if palette.primary or palette.accent %}
{% set primary = palette.primary | replace(" ", "-") | lower %} {% set primary = palette.primary | replace(" ", "-") | lower %}
{% set accent = palette.accent | replace(" ", "-") | lower %} {% set accent = palette.accent | replace(" ", "-") | lower %}

View File

@ -28,15 +28,11 @@
{% set repo = repo[:-1] %} {% set repo = repo[:-1] %}
{% endif %} {% endif %}
{% set path = page.meta.path | default([""]) %} {% set path = page.meta.path | default([""]) %}
{% set file = page.meta.source %}
{% set repo_icon = config.extra.repo_icon | default(
"fontawesome/brands/git-alt"
) %}
<a <a
href="{{ [repo, path, page.meta.source] | join('/') }}" href="{{ [repo, path, page.meta.source] | join('/') }}"
title="{{ file }}" title="{{ page.meta.source }}"
class="md-content__button md-icon" class="md-content__button md-icon"
> >
{{ lang.t("meta.source") }} {{ lang.t("meta.source") }}
{% include ".icons/" ~ repo_icon ~ ".svg" %} {% include ".icons/" ~ config.theme.icon.repo ~ ".svg" %}
</a> </a>