diff --git a/modules/wowchemy/layouts/index.html b/modules/wowchemy/layouts/index.html index 0bf02b49..d58663c4 100644 --- a/modules/wowchemy/layouts/index.html +++ b/modules/wowchemy/layouts/index.html @@ -18,8 +18,10 @@ {{/* Generate homepage. */}} {{ if eq .Type "book" }} {{ partial "book_layout.html" . }} -{{ else }} +{{ else if eq .Type "widget_page" }} {{ partial "widget_page.html" . }} +{{ else }} + {{ partial "landing_page.html" . }} {{ end }} {{- end -}} diff --git a/modules/wowchemy/layouts/landing/single.html b/modules/wowchemy/layouts/landing/single.html new file mode 100644 index 00000000..3bf5952b --- /dev/null +++ b/modules/wowchemy/layouts/landing/single.html @@ -0,0 +1,3 @@ +{{- define "main" -}} + {{ partial "landing_page.html" . }} +{{- end -}} diff --git a/modules/wowchemy/layouts/partials/blocks/about.avatar.html b/modules/wowchemy/layouts/partials/blocks/about.avatar.html index 59a22dd7..741da9d0 100644 --- a/modules/wowchemy/layouts/partials/blocks/about.avatar.html +++ b/modules/wowchemy/layouts/partials/blocks/about.avatar.html @@ -10,7 +10,7 @@ {{ if .author }} {{ $author = .author }} {{ else }} - {{ $author = $block.Params.author }} + {{ $author = $block.Params.author | default $block.content.username }} {{end}} {{ $person_page_path := (printf "/authors/%s" $author) }} @@ -82,7 +82,7 @@ {{ end }} - {{ with $block.Content }} + {{ with $block.Content | default ($block.content.text | emojify | markdownify) }}