diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2017-04-14 13:28:57 +0200 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2017-04-14 13:28:57 +0200 |
| commit | 85dd25b7784f4951e729b5a8ee864461d3458dbe (patch) | |
| tree | e01b07690ec9cbe2a54430f1295386ce33481eae /_layouts/default.html | |
| parent | ac46c91182f16a66cafba1ce814aea271344d5d1 (diff) | |
| download | wiki-85dd25b7784f4951e729b5a8ee864461d3458dbe.tar.gz wiki-85dd25b7784f4951e729b5a8ee864461d3458dbe.tar.bz2 wiki-85dd25b7784f4951e729b5a8ee864461d3458dbe.zip | |
Allow custom head, sidebar and footer html
Diffstat (limited to '_layouts/default.html')
| -rw-r--r-- | _layouts/default.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index 54b5c11..40d3812 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,6 +7,12 @@ <title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title> <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}"> + + {% capture include_head_content %}{% include head.html %}{% endcapture %} + {% unless include_head_content contains "Liquid error" %} + {% include head.html %} + {% endunless %} + <meta name="viewport" content="width=device-width"> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> @@ -31,6 +37,12 @@ <li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li> </ul> {% endif %} + + {% capture include_sidebar_content %}{% include sidebar.html %}{% endcapture %} + {% unless include_sidebar_content contains "Liquid error" %} + {% include sidebar.html %} + {% endunless %} + </header> <section> <div id="tools-buttons" style="width: 100%; text-align: right"> @@ -76,10 +88,15 @@ </section> <footer> + {% capture include_footer_content %}{% include footer.html %}{% endcapture %} + {% unless include_footer_content contains "Liquid error" %} + {% include footer.html %} + {% endunless %} + {% if site.github.is_project_page %} <p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p> {% endif %} - <p><small>Hosted on GitHub Pages —</p> + <p><small>Hosted on GitHub Pages — Powered by <a href="https://github.com/Drassil/git-wiki">Git-Wiki</a> </p> {% if site.github.is_project_page %} <p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p> {% endif %} |
