wip: make theme workable with hugoBasicExample site
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
{{ $authorImage:= "/assets/images/default-avatar.svg"}}
|
||||
{{ if isset .author "image" }}
|
||||
{{ $authorImage = .author.image }}
|
||||
{{ end }}
|
||||
{{ return $authorImage }}
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ $authorName:= "John Doe"}}
|
||||
{{ if isset .author "name" }}
|
||||
{{ $authorName = .author.name }}
|
||||
{{ end }}
|
||||
{{ return $authorName }}
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ $categories:= ""}}
|
||||
{{ if .categories }}
|
||||
{{ $categories = delimit .categories "," }}
|
||||
{{ end }}
|
||||
{{ return $categories }}
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ $heroImage:= "/assets/images/default-hero.jpg"}}
|
||||
{{ if .hero }}
|
||||
{{ $heroImage = .hero }}
|
||||
{{ end }}
|
||||
{{ return $heroImage }}
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ $profileImage:= "/assets/images/default-avatar.svg"}}
|
||||
{{ if .Site.Data.home.image }}
|
||||
{{ $profileImage = .Site.Data.home.image }}
|
||||
{{ end }}
|
||||
{{ return $profileImage }}
|
||||
Reference in New Issue
Block a user