Skip to content

Commit 28e9bc5

Browse files
author
Steve Krouse
committed
add link to edit pages in footer on github
1 parent b74910f commit 28e9bc5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

_layouts/default.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ site.lang | default: "en-US" }}">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
8+
{% seo %}
9+
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
10+
</head>
11+
<body>
12+
<div class="container-lg px-3 my-5 markdown-body">
13+
{% if site.title and site.title != page.title %}
14+
<h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
15+
{% endif %}
16+
17+
{{ content }}
18+
19+
<div class="footer border-top border-gray-light mt-5 pt-3 text-right text-gray">
20+
This site is open source. <a href="https://github.com/stevekrouse/futureofcoding.org/edit/master/{{ page.path }}">Improve this page</a>
21+
</div>
22+
</div>
23+
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
24+
<script>anchors.add();</script>
25+
{% if site.google_analytics %}
26+
<script>
27+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
28+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
29+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
30+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
31+
ga('create', '{{ site.google_analytics }}', 'auto');
32+
ga('send', 'pageview');
33+
</script>
34+
{% endif %}
35+
</body>
36+
</html>

0 commit comments

Comments
 (0)