docs(edit button): added edit button the rest of the pages

This commit is contained in:
Christopher Pickering 2022-06-22 14:43:35 -05:00
parent b7b8214acd
commit 4f2bd2cc30
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84
4 changed files with 19 additions and 4 deletions

View file

@ -6,4 +6,10 @@ indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
charset = utf-8
[*.njk]
indent_size = 2
[*.js]
indent_size = 2

View file

@ -190,7 +190,7 @@ module.exports = function(eleventyConfig) {
const icons = {
note: '<span class="icon has-text-info"><i class="fas fa-pencil-alt"></i></span>',
note: '<span class="icon has-text-info mr-1"><i class="fas fa-pencil-alt"></i></span>',
hint: "./src/_includes/icons/green_question.njk",
alert: "./src/_includes/icons/red_triangle.njk"
};

View file

@ -164,6 +164,11 @@ date: Last Modified
</div>
</div>
<div class="container">
<div class="is-flex is-justify-content-space-between mb-3">
<span>{% gh_edit page %}</span>
<em><small>{{ "updated" | i18n }} <strong>{{ page.date | niceDate }}</strong></small></em>
</div>
</div>
{% endblock body %}

View file

@ -4,4 +4,8 @@ layout: layout.njk
<div class="container">
{{ content | safe }}
</div>
<div class="is-flex is-justify-content-space-between">
<span>{% gh_edit page %}</span>
<em><small>{{ "updated" | i18n }} <strong>{{ page.date | niceDate }}</strong></small></em>
</div>
</div>