Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParsiya <that_is_not_my_email@email.email>2016-02-02 10:01:29 +0300
committerParsiya <that_is_not_my_email@email.email>2016-02-02 10:01:29 +0300
commit46886e775451f254b3a3f1478106dcf490a3a190 (patch)
treeb5b2f9df63b88bb714b528137701ec867a0615c1 /layouts/partials/navigation.html
parent9f332eb734c878002e8a7898b0a6d4a1c58b85cc (diff)
added a working theme with screenshots
Diffstat (limited to 'layouts/partials/navigation.html')
-rw-r--r--layouts/partials/navigation.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html
new file mode 100644
index 0000000..adaec40
--- /dev/null
+++ b/layouts/partials/navigation.html
@@ -0,0 +1,31 @@
+
+<!-- reading menu items from config file -->
+
+<ul class="main-navigation">
+ <!-- do not open links to root in new window - otherwise any other link can be opened in new window -->
+ {{ range .Site.Menus.main }}
+ {{ if eq .URL "/" }}
+ <li><a href="{{ .URL | absURL }}" title="{{ .Name }}">{{ .Name }}</a></li>
+ {{ else }}
+ <li><a href="{{ .URL | absURL }}" target="_blank" title="{{ .Name }}">{{ .Name }}</a></li>
+ {{ end }}
+ {{ end }}
+</ul>
+
+<!-- http://fontawesome.io icon fa-lg adapts it to size (at least it is supposed to) -->
+<ul class="subscription">
+ {{ if .Site.Params.rss }}<a href="{{ "/index.xml" | absURL }}" target="_blank" type="application/rss+xml" title="RSS"><i class="fa fa-rss-square fa-lg"></i></a>{{ end }}
+
+ <!-- If you prefer RSS text (like Octopress) replace the line above with next comment -->
+ <!-- <li><a href="/index.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li> -->
+
+</ul>
+
+{{ if isset .Site.Params "search_engine_url" }}
+<form action="{{ .Site.Params.search_engine_url }}" method="get" target="_blank">
+ <fieldset role="search">
+ <input class="search" type="text" name="q" results="0" placeholder="Search"/>
+ <input type="hidden" name="q" value="site:{{ "/" | absURL }}" />
+ </fieldset>
+</form>
+{{end}}