diff options
| -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 %} |
