forked from tsc-vfl/hugo-page
Added content under Angebot
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
{{- partial "left_menu" . -}}
|
||||
</div>
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
{{- block "main" . -}}{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<a name="top">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</a>
|
||||
{{ .Content }}
|
||||
<!--{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<p>
|
||||
@@ -10,4 +12,5 @@
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}-->
|
||||
{{ partial "totop" }}
|
||||
{{ end }}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{{ if .HasChildren }}
|
||||
{{ range .Children }}
|
||||
{{ $submenu := "" }}
|
||||
{{ if $currentPage.IsMenuCurrent "main" . }}
|
||||
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
|
||||
{{ $submenu = " active"}}
|
||||
{{ end }}
|
||||
<a href="{{ .URL }}" class="{{ $submenu }}">
|
||||
|
||||
3
themes/tsc_vfl/layouts/shortcodes/tsc/link-external.html
Normal file
3
themes/tsc_vfl/layouts/shortcodes/tsc/link-external.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<a class="external" href="{{ .Get "url" }}" target="_blank">
|
||||
{{- .Inner -}}
|
||||
</a>
|
||||
7
themes/tsc_vfl/layouts/shortcodes/tsc/link-offers.md
Normal file
7
themes/tsc_vfl/layouts/shortcodes/tsc/link-offers.md
Normal file
@@ -0,0 +1,7 @@
|
||||
## Trainingsorte
|
||||
|
||||
siehe [Standorte]({{ relref $.Page "raeume" }})
|
||||
|
||||
## Beitrag
|
||||
|
||||
siehe [Mitgliedschaft]({{ relref $.Page "beitrag" }})
|
||||
11
themes/tsc_vfl/layouts/shortcodes/tsc/time-table.html
Normal file
11
themes/tsc_vfl/layouts/shortcodes/tsc/time-table.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ $table := .Inner | markdownify }}
|
||||
{{ $old := "<table>" }}
|
||||
{{ $class := "time-no-age" }}
|
||||
{{ $cols := "<col width=\"300\">" }}
|
||||
{{ with .Get "age" }}
|
||||
{{ $class = "time-age" }}
|
||||
{{ $cols = "<col width=\"220\"><col width=\"80\">" }}
|
||||
{{ end }}
|
||||
{{ $new := printf "<table class=\"time %s\"><colgroup>%s<col width=\"120\"><col width=\"120\"><col width=\"130\"></colgroup>" $class $cols }}
|
||||
{{ $newTable := replace $table $old $new }}
|
||||
{{ $newTable | safeHTML }}
|
||||
Reference in New Issue
Block a user