diff options
author | Simone Bortolin <simonebortolin@users.noreply.github.com> | 2022-08-04 20:32:06 +0200 |
---|---|---|
committer | Simone Bortolin <simonebortolin@users.noreply.github.com> | 2022-12-19 22:55:44 +0100 |
commit | abdbcb1a85b9f76efc7a000e06afdaaf4caa0966 (patch) | |
tree | b210446698c234f08e6e87a7032183ff9bee8084 /_layouts/default.html | |
parent | Merge branch 'main' of github.com:hack-gpon/hack-gpon.github.io (diff) | |
download | hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar.gz hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar.bz2 hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar.lz hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar.xz hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.tar.zst hack-gpon.github.io-abdbcb1a85b9f76efc7a000e06afdaaf4caa0966.zip |
Diffstat (limited to '_layouts/default.html')
-rw-r--r-- | _layouts/default.html | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index 5dd8436..7aaec28 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -98,7 +98,19 @@ layout: table_wrappers </ul>
</nav>
{% endif %}
- <nav class="aux-nav"><ul class="aux-nav-list"><li class="aux-nav-list-item"><span class="site-button "><a class="btn js-toggle-dark-mode">Dark mode</a></span></li></ul></nav>
+ <nav class="aux-nav"><ul class="aux-nav-list">
+ <li class="aux-nav-list-item"><span class="site-button "><a class="btn js-toggle-dark-mode">Dark mode</a></span></li>
+ {% if
+ site.gh_edit_link and
+ site.gh_edit_link_text and
+ site.gh_edit_repository and
+ site.gh_edit_branch and
+ site.gh_edit_view_mode
+ %}
+ <li class="aux-nav-list-item"><a class="site-button github-edit" href="{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}{% if site.gh_edit_source %}/{{ site.gh_edit_source }}{% endif %}/{{ page.path }}" id="edit-this-page" title="{{ site.gh_edit_link_text }}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z"></path></svg></a>
+ </li>
+ {% endif %}
+ </ul></nav>
</div>
<div id="main-content-wrap" class="main-content-wrap">
{% unless page.url == "/" %}
@@ -131,7 +143,7 @@ layout: table_wrappers </nav>
{% endif %}
{% endunless %}
- <div id="main-content" class="main-content" role="main">
+ <div id="main-content" class="main-content" role="main">
{% if site.heading_anchors != false %}
{% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#svg-link\"></use></svg>" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
{% else %}
@@ -161,8 +173,6 @@ layout: table_wrappers <p><a href="#top" id="back-to-top">{{ site.back_to_top_text }}</a></p>
{% endif %}
- {{ footer_custom }}
-
{% if site.last_edit_timestamp or site.gh_edit_link %}
<div class="d-flex mt-2">
{% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %}
@@ -183,6 +193,8 @@ layout: table_wrappers {% endif %}
</div>
{% endif %}
+
+ {{ footer_custom }}
</footer>
{% endif %}
|