wip: make theme workable with hugoBasicExample site

This commit is contained in:
hossainemruz 2020-04-20 01:59:01 +06:00
parent 07e816219f
commit e7b2fba1b0
24 changed files with 343 additions and 34 deletions

View file

@ -0,0 +1,5 @@
{{ $authorImage:= "/assets/images/default-avatar.svg"}}
{{ if isset .author "image" }}
{{ $authorImage = .author.image }}
{{ end }}
{{ return $authorImage }}

View file

@ -0,0 +1,5 @@
{{ $authorName:= "John Doe"}}
{{ if isset .author "name" }}
{{ $authorName = .author.name }}
{{ end }}
{{ return $authorName }}

View file

@ -0,0 +1,5 @@
{{ $categories:= ""}}
{{ if .categories }}
{{ $categories = delimit .categories "," }}
{{ end }}
{{ return $categories }}

View file

@ -0,0 +1,5 @@
{{ $heroImage:= "/assets/images/default-hero.jpg"}}
{{ if .hero }}
{{ $heroImage = .hero }}
{{ end }}
{{ return $heroImage }}

View file

@ -0,0 +1,5 @@
{{ $profileImage:= "/assets/images/default-avatar.svg"}}
{{ if .Site.Data.home.image }}
{{ $profileImage = .Site.Data.home.image }}
{{ end }}
{{ return $profileImage }}