|
@@ -9,17 +9,17 @@
|
|
|
{{ $headless_bundle = site.GetPage $page }}
|
|
|
{{/* Check homepage exists */}}
|
|
|
{{ if not $headless_bundle }}
|
|
|
- {{ errorf "Homepage not found at %s!" $page }}
|
|
|
- {{ errorf "Add the `/home/index.md` homepage file to each language's content folder. For example, your site should have a `content/home/` folder containing `index.md` and your homepage sections, or for multi-language sites, `content/en/home/` and `content/zh/home/` etc. Refer to the 'Build Your Homepage' and 'Language' documentation at https://wowchemy.com/docs/ and the example homepage at https://github.com/wowchemy/starter-academic/tree/master/exampleSite/content/home/index.md ." }}
|
|
|
+ {{ warnf "Homepage not found at %s!" $page }}
|
|
|
+ {{ warnf "Add the `/home/index.md` homepage file to each language's content folder. For example, your site should have a `content/home/` folder containing `index.md` and your homepage sections, or for multi-language sites, `content/en/home/` and `content/zh/home/` etc. Refer to the 'Build Your Homepage' and 'Language' documentation at https://wowchemy.com/docs/ and the example homepage at https://github.com/wowchemy/starter-academic/tree/master/exampleSite/content/home/index.md ." }}
|
|
|
{{ end }}
|
|
|
{{ else }}
|
|
|
{{ $page = .File.Path }}
|
|
|
{{ $headless_bundle = site.GetPage $page }}
|
|
|
{{/* Check widget page exists. */}}
|
|
|
{{ if not $headless_bundle }}
|
|
|
- {{ errorf "Widget Page not found at %s!" $page }}
|
|
|
- {{ errorf "View the Widget Page documentation at https://wowchemy.com/docs/managing-content/#create-a-widget-page ." }}
|
|
|
- {{ errorf "If the Hugo version is between 0.65 and 0.68, it may be a confirmed Hugo bug that is expected to be fixed in Hugo v0.69: https://github.com/wowchemy/wowchemy-hugo-modules/issues/1595#issuecomment-605514973 ." }}
|
|
|
+ {{ warnf "Widget Page not found at %s!" $page }}
|
|
|
+ {{ warnf "View the Widget Page documentation at https://wowchemy.com/docs/managing-content/#create-a-widget-page ." }}
|
|
|
+ {{ warnf "If the Hugo version is between 0.65 and 0.68, it may be a confirmed Hugo bug that is expected to be fixed in Hugo v0.69: https://github.com/wowchemy/wowchemy-hugo-modules/issues/1595#issuecomment-605514973 ." }}
|
|
|
{{ end }}
|
|
|
{{ end }}
|
|
|
|
|
@@ -112,12 +112,12 @@
|
|
|
{{ if $st.Title }}
|
|
|
{{ if eq $columns "1" }}
|
|
|
<div class="col-12 section-heading text-center">
|
|
|
- {{ with $st.Title }}<h1>{{.}}</h1>{{ end }}
|
|
|
+ {{ with $st.Title }}<h1>{{ . | markdownify | emojify }}</h1>{{ end }}
|
|
|
{{ with $st.Params.subtitle }}<p>{{ . | markdownify | emojify }}</p>{{ end }}
|
|
|
</div>
|
|
|
{{else}}
|
|
|
<div class="col-12 col-lg-4 section-heading">
|
|
|
- {{ with $st.Title }}<h1>{{.}}</h1>{{ end }}
|
|
|
+ {{ with $st.Title }}<h1>{{ . | markdownify | emojify }}</h1>{{ end }}
|
|
|
{{ with $st.Params.subtitle }}<p>{{ . | markdownify | emojify }}</p>{{ end }}
|
|
|
</div>
|
|
|
{{end}}
|