forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
b5d3750e62
commit
5a7d9da98b
7
themes/buha/layouts/.directory
Normal file
7
themes/buha/layouts/.directory
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Dolphin]
|
||||
HeaderColumnWidths=733,143,94,163
|
||||
PreviewsShown=false
|
||||
Timestamp=2022,6,22,18,43,8.356
|
||||
Version=4
|
||||
ViewMode=1
|
||||
VisibleRoles=Details_text,Details_size,Details_modificationtime,Details_type,Details_permissions,CustomizedDetails
|
|
@ -1,20 +0,0 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ if eq .Kind "taxonomy" }}
|
||||
<div>
|
||||
{{ range .Pages }}
|
||||
<a href="{{ .Page.Permalink }}" class="underline" style="margin-right: 1rem;">{{ .Page.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ else }}
|
||||
{{- $pages := .Data.Pages -}}
|
||||
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
|
@ -1,23 +0,0 @@
|
|||
{{ $mapName := .Get "mapName" }}
|
||||
|
||||
{{ $mapWidth := .Get "mapWidth" | default "100%" }}
|
||||
{{ $mapHeight := .Get "mapHeight" | default "600px" }}
|
||||
|
||||
{{ $scaleControl := .Get "scaleControl" | default "true" }}
|
||||
{{ $miniMap := .Get "miniMap" | default "false" }}
|
||||
{{ $scrollWheelZoom := .Get "scrollWheelZoom" | default "true" }}
|
||||
{{ $zoomControl := .Get "zoomControl" | default "true" }}
|
||||
{{ $allowEdit := .Get "allowEdit" | default "false" }}
|
||||
{{ $moreControl := .Get "moreControl" | default "true" }}
|
||||
{{ $searchControl := .Get "searchControl" | default "true" }}
|
||||
{{ $tilelayersControl := .Get "tilelayersControl" | default "null" }}
|
||||
{{ $embedControl := .Get "embedControl" | default "null" }}
|
||||
{{ $datalayersControl := .Get "datalayersControl" | default "true" }}
|
||||
{{ $onLoadPanel := .Get "onLoadPanel" | default "none" }}
|
||||
{{ $captionBar := .Get "captionBar" | default "true" }}
|
||||
|
||||
{{ $scale := .Get "scale" }}
|
||||
{{ $coordX := .Get "coordX" }}
|
||||
{{ $coordY := .Get "coordY" }}
|
||||
|
||||
<iframe width="{{ $mapWidth }}" height="{{ $mapHeight }}" frameBorder="0" src="https://umap.openstreetmap.fr/en/map/{{- $mapName -}}?scaleControl={{ $scaleControl }}&miniMap={{ $miniMap }}&scrollWheelZoom={{ $scrollWheelZoom }}&zoomControl={{ $zoomControl }}&allowEdit={{ $allowEdit }}&moreControl={{ $moreControl }}&searchControl={{ $searchControl }}&tilelayersControl={{ $tilelayersControl }}&embedControl={{ $embedControl }}&datalayersControl={{ $datalayersControl }}&onLoadPanel={{ $onLoadPanel }}&captionBar={{ $captionBar }}{{ with $scale}}#{{ . }}{{ end }}/{{ $coordX }}/{{ $coordY }}"></iframe>
|
Loading…
Reference in New Issue
Block a user