From bfa4b99fd00edabb1f876eeb9eefba0ffea2811b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Tue, 12 Mar 2024 11:34:18 -1000 Subject: [PATCH] Fix edit button The button style is not consistent accross pages, so move the button in its own include file and rely on it where applicable. --- _includes/edit_button.html | 1 + _layouts/architecture.html | 2 +- _layouts/page.html | 2 +- _layouts/post.html | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 _includes/edit_button.html diff --git a/_includes/edit_button.html b/_includes/edit_button.html new file mode 100644 index 0000000..f5d5ac8 --- /dev/null +++ b/_includes/edit_button.html @@ -0,0 +1 @@ +Edit diff --git a/_layouts/architecture.html b/_layouts/architecture.html index d07f8c4..b5cad22 100644 --- a/_layouts/architecture.html +++ b/_layouts/architecture.html @@ -2,7 +2,7 @@ layout: default ---

{{ page.title }} - Edit + {% include edit_button.html %}

Version {{ page.version}}
diff --git a/_layouts/page.html b/_layouts/page.html index 24a26a1..94c97fb 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -4,6 +4,6 @@

{{ page.title }} - Edit + {% include edit_button.html %}

{{ content }} diff --git a/_layouts/post.html b/_layouts/post.html index bcf24e0..194d7cf 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,7 +2,7 @@ layout: default ---

{{ page.title }} - Edit + {% include edit_button.html %}

Published on {{ page.date | date: "%b %-d, %Y" }}{% if page.github_username %} by {{ page.github_username }}{% endif %}. {% if page.last_updater %}Last updated on {{ page.last_modified_at | date: "%b %-d, %Y" }}{% if page.last_updater %} by {{ page.last_updater }}{% endif %}.{% endif %}