From 931cd1cbb7b199deb25a58d7601158f892bae743 Mon Sep 17 00:00:00 2001 From: Martijn de Boer Date: Mon, 7 Sep 2020 15:58:55 +0200 Subject: [PATCH 1/2] Remove left margin on logo to align the icon so it doesn't float in a weird position --- assets/css/codeberg-docs.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/codeberg-docs.css b/assets/css/codeberg-docs.css index 7b1270f..5f0e27c 100644 --- a/assets/css/codeberg-docs.css +++ b/assets/css/codeberg-docs.css @@ -4,7 +4,7 @@ body { display: flex; flex-direction: column; font-family: "Inter", sans-serif; header { height: 60px; margin-top: 30px; margin-bottom: 60px; } header > .container { display: flex; align-items: center; } #header-action-buttons { text-align: right; } -#header-logo { height: 100%; padding: 10px; padding-left: 0; box-sizing: border-box; margin-left: 10px; } +#header-logo { height: 100%; padding: 10px; padding-left: 0; box-sizing: border-box; } #header-logo img { height: 100%; } #header-logo-container { display: flex; align-items: center; height: 100%; } #header-logo a { text-decoration: none; } From 0745e09f7d72f8a3df1559837d1d1fea57acd487 Mon Sep 17 00:00:00 2001 From: Martijn de Boer Date: Mon, 7 Sep 2020 16:15:29 +0200 Subject: [PATCH 2/2] add async properties to assets to specify loading/render strategy for browsers like chromium/firefox that implement other strategies when not specified --- content/_includes/default_layout.njk | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/content/_includes/default_layout.njk b/content/_includes/default_layout.njk index 48de0d4..ba8fa87 100644 --- a/content/_includes/default_layout.njk +++ b/content/_includes/default_layout.njk @@ -2,22 +2,27 @@ {% if eleventyNavigation.title %}{{ eleventyNavigation.title }} | {% endif %}Codeberg Documentation - + {% if description %}{% endif %} - + - - + + + + + + + - + - - + + @@ -97,9 +102,9 @@ Please look at the LICENSE file for details.
Changes to the original versions of the article as well as its individual authors can be looked up in this article's commit history
- + Codeberg and the Codeberg Logo are trademarks of Codeberg e.V.
- + For Imprint, Privacy Policy and other legal notices, please refer to https://codeberg.org.