Files
expressjs.com/_layouts/page.html
shubham oulkar 26d0b1f301 feat: add github edit btn (#1822)
Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
2025-03-15 15:13:35 -05:00

49 lines
1.1 KiB
HTML

<!DOCTYPE html>
{% if page.lang %}
<html lang="{{ page.lang }}" prefix="og: http://ogp.me/ns#">
{% include head.html %}
{% if page.lang == 'en' %}
<body class="en-doc">
{% else %}
<body class="non-en-doc">
{% endif %}
{% include header.html %}
<div id="overlay"></div>
{% if page.lang != 'en' %}
<div id="i18n-notice-box" class="doc-box doc-notice">
{% include i18n-notice.html %}
</div>
{% endif %}
{% if page.layout == 'middleware' %}
<div class="content flex-row-content">
{{ content }}
</div>
{% else %}
<div class="content">
<main>
{{ content }}
<a role="button" class="edit-github-btn" href="{{ site.github.repository_url }}/edit/gh-pages/{{ page.path }}" aria-label="GitHub button">
<span class="hidden-dark">
{% include icons/github-light.svg %}
</span>
<span class="hidden-light">
{% include icons/github-dark.svg %}
</span>
Edit this page</a>
</main>
</div>
{% endif %}
{% include footer.html %}
</body>
</html>
{% endif %}