Skip to content

Commit

Permalink
Adding a layout for Github Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienGardeur committed Sep 1, 2024
1 parent bbe2526 commit 52c33b9
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

{% seo %}
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
<style>
.rfc {
color: #d55;
font-variant: small-caps;
font-style: normal;
font-weight: normal;
}
</style>
</head>
<body>
<div class="container-lg px-3 my-5 markdown-body">

{% if page.url == "/" %}
<a href="/" title="Back to the Readium project site.">
<img src="https://readium.org/assets/logos/readium-logo.png" alt="Readium Logo" width="250">
</a>
{% else %}
<a href="/architecture/" title="Back to the index page.">
<img src="https://readium.org/assets/logos/readium-logo.png" alt="Readium Logo" width="250">
</a>
{% endif %}

{{ content }}

{% if site.github.private != true and site.github.license %}
<div class="footer border-top border-gray-light mt-5 pt-3 text-right text-gray">
This site is open source. {% github_edit_link "Improve this page" %}.
</div>
{% endif %}
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
<script>anchors.add();</script>
</body>
</html>

0 comments on commit 52c33b9

Please sign in to comment.