Add headers and footers as includes
This will allow better customization
This commit is contained in:
parent
e193e8e825
commit
b89f15d602
2
_includes/footer.html
Normal file
2
_includes/footer.html
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<footer>
|
||||||
|
</footer>
|
14
_includes/header.html
Normal file
14
_includes/header.html
Normal 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>
|
@ -11,20 +11,7 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header>
|
{% include header.html %}
|
||||||
<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>
|
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<section id="main_content">
|
<section id="main_content">
|
||||||
@ -41,6 +28,8 @@
|
|||||||
ga('create', '{{ site.google_analytics }}', 'auto');
|
ga('create', '{{ site.google_analytics }}', 'auto');
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% include footer.html %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user