Add headers and footers as includes

This will allow better customization
This commit is contained in:
Nick Loadholtes 2019-10-29 21:07:40 -04:00
parent e193e8e825
commit b89f15d602
3 changed files with 20 additions and 15 deletions

2
_includes/footer.html Normal file
View File

@ -0,0 +1,2 @@
<footer>
</footer>

14
_includes/header.html Normal file
View File

@ -0,0 +1,14 @@
<header>
<div class="container">
<h1>{{ site.title | default: site.github.repository_name }}</h1>
<h2>{{ site.description | default: site.github.project_tagline }}</h2>
<section id="downloads">
{% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" class="btn">Download as .zip</a>
<a href="{{ site.github.tar_url }}" class="btn">Download as .tar.gz</a>
{% endif %}
<a href="{{ site.github.repository_url }}" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
</section>
</div>
</header>

View File

@ -11,20 +11,7 @@
<body>
<header>
<div class="container">
<h1>{{ site.title | default: site.github.repository_name }}</h1>
<h2>{{ site.description | default: site.github.project_tagline }}</h2>
<section id="downloads">
{% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" class="btn">Download as .zip</a>
<a href="{{ site.github.tar_url }}" class="btn">Download as .tar.gz</a>
{% endif %}
<a href="{{ site.github.repository_url }}" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
</section>
</div>
</header>
{% include header.html %}
<div class="container">
<section id="main_content">
@ -41,6 +28,8 @@
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
{% endif %}
{% include footer.html %}
</body>
</html>