1
0
Fork 0
mirror of https://github.com/eosswedenorg/apt synced 2026-06-16 04:34:56 +02:00

Adding default layout from primer theme.

This commit is contained in:
Henrik Hautakoski 2019-10-22 14:43:12 +02:00
parent 87b029a837
commit ba746d7cf8
3 changed files with 28 additions and 0 deletions

8
_includes/head.html Normal file
View file

@ -0,0 +1,8 @@
<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 }}">
</head>

4
_includes/js.html Normal file
View file

@ -0,0 +1,4 @@
<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>

16
_layouts/default.html Normal file
View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
{% include head.html %}
<body>
<div class="container-lg px-3 my-5 markdown-body">
{% if site.title and site.title != page.title %}
<h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
{% endif %}
{{ content }}
{% include footer.html %}
</div>
{% include js.html %}
</body>
</html>