mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-16 21:40:24 +00:00
docs(edit button): added edit button the rest of the pages
This commit is contained in:
parent
b7b8214acd
commit
4f2bd2cc30
4 changed files with 19 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue