From f12a3eb86e5c33e6a982f4cc1ab791d13a2392a5 Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Sun, 5 May 2024 14:17:44 +0200 Subject: [PATCH] Add "Edit me" links to two-column-layout --- config.toml | 1 + sass/_one-column-layout.scss | 4 ++++ templates/layouts/two-column-layout.html | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/config.toml b/config.toml index e33b045..4cb2ba8 100644 --- a/config.toml +++ b/config.toml @@ -23,4 +23,5 @@ extra_syntaxes_and_themes = ["syntaxes"] [extra] # Put all your custom variables here +repo_content_url = "https://github.com/phel-lang/phel-lang.org/blob/master/content/" diff --git a/sass/_one-column-layout.scss b/sass/_one-column-layout.scss index 3adcfe1..9339c06 100644 --- a/sass/_one-column-layout.scss +++ b/sass/_one-column-layout.scss @@ -3,3 +3,7 @@ max-width: 800px; padding: 2em 2em; } + +.found-a-typo { + float: right; +} diff --git a/templates/layouts/two-column-layout.html b/templates/layouts/two-column-layout.html index 5fc4ea0..5c8a271 100644 --- a/templates/layouts/two-column-layout.html +++ b/templates/layouts/two-column-layout.html @@ -9,6 +9,10 @@ {% include "navigation/site-navigation.html" %}
+ + {% set url = config.extra.repo_content_url ~ page.relative_path %} + Edit me + {% block content %} {% endblock %} {% include "footer.html" %}