Create person templates
This commit is contained in:
1
themes/tsc_vfl/layouts/partials/tsc/end-person.html
Normal file
1
themes/tsc_vfl/layouts/partials/tsc/end-person.html
Normal file
@@ -0,0 +1 @@
|
||||
</div>
|
||||
8
themes/tsc_vfl/layouts/partials/tsc/start-person.html
Normal file
8
themes/tsc_vfl/layouts/partials/tsc/start-person.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="person">
|
||||
<div class="image">
|
||||
{{- $person := . -}}
|
||||
{{- with .Get "img" -}}
|
||||
<img src="{{ . }}" {{ with $person.Get "name" }}alt="Bild {{ . }}"{{ end }}>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
3
themes/tsc_vfl/layouts/shortcodes/tsc/person-list.html
Normal file
3
themes/tsc_vfl/layouts/shortcodes/tsc/person-list.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="person-list">
|
||||
{{- .Inner -}}
|
||||
</div>
|
||||
11
themes/tsc_vfl/layouts/shortcodes/tsc/vorstand.html
Normal file
11
themes/tsc_vfl/layouts/shortcodes/tsc/vorstand.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ partial "tsc/start-person" . }}
|
||||
<div class="content content-vorstand">
|
||||
<div class="role">{{ .Get "role" }}</div>
|
||||
<div class="name">
|
||||
{{ with .Get "mail" }}
|
||||
<a href="mailto:{{ . }}"><img src="/img/mail.jpg" class="mail-icon"></a>
|
||||
{{ end }}
|
||||
{{ .Get "name" }}
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "tsc/end-person" . }}
|
||||
Reference in New Issue
Block a user