change header
This commit is contained in:
parent
c9cc135994
commit
a9c63fd078
21
config.toml
21
config.toml
|
@ -6,6 +6,27 @@ baseURL = "https://freifunk-leipzig.de"
|
|||
theme = "hugo-html5up-alpha"
|
||||
disqusShortname = ""
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[menu]
|
||||
[[menu.map]]
|
||||
identifier = "Meshviewer"
|
||||
name = "Meshviewer"
|
||||
url = "/maps"
|
||||
weight = 10
|
||||
|
||||
[[menu.firmware]]
|
||||
identifier = "Firmware"
|
||||
name = "Gluon"
|
||||
url = "/firmware"
|
||||
weight = 10
|
||||
|
||||
[communtiy]
|
||||
url_map_meshviewer = "http://karte.leipzig.freifunk.net:8018/meshviewer2/build/#!/de/map"
|
||||
|
||||
|
||||
[params]
|
||||
description = "Another fine responsive site template freebie by HTML5 UP."
|
||||
images = ["images/pic01.jpg"]
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
if(window.location.hash) {
|
||||
$("iframe").attr("src",
|
||||
"http://karte.leipzig.freifunk.net:8018/meshviewer2/build/" + window.location.hash);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<iframe src="http://karte.leipzig.freifunk.net:8018/meshviewer2/build/"
|
||||
width="100%" style="display:block; height: calc(100vh - 3.25em);width: 100%;">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,17 +1,7 @@
|
|||
button_news:
|
||||
enable: true
|
||||
title: "News"
|
||||
link: "/news"
|
||||
|
||||
button_map:
|
||||
enable: true
|
||||
title: "Karte"
|
||||
link: "http://karte.leipzig.freifunk.net:8018/meshviewer2/build/#!/de/map"
|
||||
|
||||
button_firmware:
|
||||
enable: true
|
||||
title: "Firmware"
|
||||
link: "/"
|
||||
title: "Blog"
|
||||
link: "/blog"
|
||||
|
||||
button_calendar:
|
||||
enable: true
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
banner:
|
||||
enable: true
|
||||
title: "Freifunk Leipzig"
|
||||
content: "" # Change this if you want something other then the site description
|
||||
content: "Mehr als nur freies WLAN" # Change this if you want something other then the site description
|
||||
buttons:
|
||||
- title: "Mach mit"
|
||||
link: "#"
|
||||
|
|
|
@ -5,24 +5,35 @@
|
|||
<ul>
|
||||
{{ $button_news := .Site.Data.globalheader.button_news }}
|
||||
{{ if $button_news.enable }}
|
||||
<li><a href="{{ $button_news.link }}" class="button">{{ $button_news.title }}</a></li>
|
||||
{{ end }}
|
||||
{{ $button_map := .Site.Data.globalheader.button_map }}
|
||||
{{ if $button_map.enable }}
|
||||
<li><a href="{{ $button_map.link }}" class="button">{{ $button_map.title }}</a></li>
|
||||
{{ end }}
|
||||
{{ $button_firmware := .Site.Data.globalheader.button_firmware }}
|
||||
{{ if $button_firmware.enable }}
|
||||
<li><a href="{{ $button_firmware.link }}" class="button">{{ $button_firmware.title }}</a></li>
|
||||
<li><a href="{{ $button_news.link }}" >{{ $button_news.title }}</a></li>
|
||||
{{ end }}
|
||||
{{ $button_calendar := .Site.Data.globalheader.button_calendar }}
|
||||
{{ if $button_calendar.enable }}
|
||||
<li><a href="{{ $button_calendar.link }}" class="button">{{ $button_calendar.title }}</a></li>
|
||||
<li><a href="{{ $button_calendar.link }}">{{ $button_calendar.title }}</a></li>
|
||||
{{ end }}
|
||||
<li>
|
||||
<a href="#" class="icon solid fa-angle-down">Layouts</a>
|
||||
<a href="#" class="icon solid fa-angle-down">Karten</a>
|
||||
<ul>
|
||||
{{- range .Site.Menus.main -}}
|
||||
{{- range .Site.Menus.map -}}
|
||||
{{- if .HasChildren -}}
|
||||
<li>
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
<ul>
|
||||
{{- range .Children -}}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</li>
|
||||
{{- else -}}
|
||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="icon solid fa-angle-down">Firmware</a>
|
||||
<ul>
|
||||
{{- range .Site.Menus.firmware -}}
|
||||
{{- if .HasChildren -}}
|
||||
<li>
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
|
|
Reference in New Issue