summaryrefslogtreecommitdiff
path: root/_includes/gw_header
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2018-12-16 15:54:48 +0100
committerYehonal <yehonal.azeroth@gmail.com>2018-12-16 16:35:55 +0100
commit4a8156e08a5e3ffe540f56ecb894b951dd9b7c84 (patch)
treee14862984ffba17f4a8fe53d90b937917014827a /_includes/gw_header
parentd910d7263f43ddce21dbab7345dd679dc5b092b6 (diff)
downloadwiki-4a8156e08a5e3ffe540f56ecb894b951dd9b7c84.tar.gz
wiki-4a8156e08a5e3ffe540f56ecb894b951dd9b7c84.tar.bz2
wiki-4a8156e08a5e3ffe540f56ecb894b951dd9b7c84.zip
Git-Wiki 2.0
Diffstat (limited to '_includes/gw_header')
-rw-r--r--_includes/gw_header/downloads.html5
-rw-r--r--_includes/gw_header/header.html21
-rw-r--r--_includes/gw_header/logo.html4
3 files changed, 30 insertions, 0 deletions
diff --git a/_includes/gw_header/downloads.html b/_includes/gw_header/downloads.html
new file mode 100644
index 0000000..8f654f9
--- /dev/null
+++ b/_includes/gw_header/downloads.html
@@ -0,0 +1,5 @@
+<ul class="downloads">
+ <li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
+ <li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>
+ <li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li>
+</ul> \ No newline at end of file
diff --git a/_includes/gw_header/header.html b/_includes/gw_header/header.html
new file mode 100644
index 0000000..1b0b74c
--- /dev/null
+++ b/_includes/gw_header/header.html
@@ -0,0 +1,21 @@
+<header>
+ {% if site.inc_before_header %}
+ {% include {{ site.inc_before_header }} %}
+ {% endif %}
+
+ {% if site.show_downloads %}
+ {% include gw_header/logo.html %}
+ {% endif %}
+
+ {% if site.github.is_user_page %}
+ <p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p>
+ {% endif %}
+
+ {% if site.show_downloads %}
+ {% include gw_header/downloads.html %}
+ {% endif %}
+
+ {% if site.inc_after_header %}
+ {% include {{ site.inc_after_header }} %}
+ {% endif %}
+</header> \ No newline at end of file
diff --git a/_includes/gw_header/logo.html b/_includes/gw_header/logo.html
new file mode 100644
index 0000000..a4a36c3
--- /dev/null
+++ b/_includes/gw_header/logo.html
@@ -0,0 +1,4 @@
+<a href="{{ '/' | relative_url }}"><img src="{{ site.logo_url }}">
+ <h1>{{ site.title | default: site.github.repository_name }}</h1>
+</a>
+<p>{{ site.description | default: site.github.project_tagline }}</p> \ No newline at end of file