diff --git a/src/assets/stylesheets/layout/_source.scss b/src/assets/stylesheets/layout/_source.scss index 8d9546cd3..8345b4b38 100644 --- a/src/assets/stylesheets/layout/_source.scss +++ b/src/assets/stylesheets/layout/_source.scss @@ -61,7 +61,7 @@ display: block; transition: opacity 250ms; font-size: px2rem(13px); - line-height: 1.25; + line-height: 1.2; white-space: nowrap; // Hack: reduce jitter backface-visibility: hidden; diff --git a/src/base.html b/src/base.html index 12950265b..af82a1df3 100644 --- a/src/base.html +++ b/src/base.html @@ -168,7 +168,7 @@ - {% set direction = config.theme.direction | default(lang.t('direction')) %} + {% set direction = config.theme.direction or lang.t('direction') %} {% if palette.primary or palette.accent %} {% set primary = palette.primary | replace(" ", "-") | lower %} {% set accent = palette.accent | replace(" ", "-") | lower %} diff --git a/src/partials/source-link.html b/src/partials/source-link.html index 9807bd705..9fbf51ad4 100644 --- a/src/partials/source-link.html +++ b/src/partials/source-link.html @@ -28,15 +28,11 @@ {% set repo = repo[:-1] %} {% endif %} {% set path = page.meta.path | default([""]) %} -{% set file = page.meta.source %} -{% set repo_icon = config.extra.repo_icon | default( - "fontawesome/brands/git-alt" -) %} {{ lang.t("meta.source") }} - {% include ".icons/" ~ repo_icon ~ ".svg" %} + {% include ".icons/" ~ config.theme.icon.repo ~ ".svg" %}