forked from CCCHH/ccchh-website
Home: Add columns feature
This commit is contained in:
parent
93b4246cd1
commit
49e0179832
4 changed files with 77 additions and 7 deletions
|
@ -6,9 +6,13 @@
|
|||
|
||||
{{- $page := .Page }}
|
||||
{{- if not $isBundle }}
|
||||
{{ $page_dir := path.Dir .Page.File }}
|
||||
{{ $pagebundle_path := path.Join "/" $page_dir }}
|
||||
{{ $page_dir := path.Dir .Page.File }}
|
||||
{{ $pagebundle_path := path.Join "/" $page_dir }}
|
||||
{{ $page = .Site.GetPage $pagebundle_path }}
|
||||
{{- if not $page.IsPage }}
|
||||
{{ $pagebundle_path := path.Join "/" .Page.Section }}
|
||||
{{ $page = .Site.GetPage $pagebundle_path }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- with $page.Resources.Get $imagename }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue