diff --git a/starters/documentation/README.md b/starters/documentation/README.md index 69d9536f..0016b0d3 100644 --- a/starters/documentation/README.md +++ b/starters/documentation/README.md @@ -8,7 +8,7 @@ The **Documentation** starter template empowers you to easily create **product d [![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138) [![Twitter Follow](https://img.shields.io/twitter/follow/wowchemy?label=Follow%20on%20Twitter)](https://twitter.com/wowchemy) -[Check out the latest demo](https://hugo-documentation-theme.netlify.app/) of what you'll get in less than 10 minutes, or [get inspired by how others are using this template](https://wowchemy.com/creators/). +[Check out the latest demo](https://wowchemy.com/docs/) of what you'll get in less than 10 minutes, or [get inspired by how others are using this template](https://wowchemy.com/creators/). The integrated [**Wowchemy**](https://wowchemy.com) website builder and CMS makes it easy to create a beautiful website for free. Edit your site in the CMS (or your favorite editor), generate it with [Hugo](https://github.com/gohugoio/hugo), and deploy with GitHub or Netlify. Customize anything on your site with widgets, light/dark themes, and language packs. diff --git a/wowchemy/layouts/partials/functions/get_address.html b/wowchemy/layouts/partials/functions/get_address.html index 084e1284..4d97a119 100644 --- a/wowchemy/layouts/partials/functions/get_address.html +++ b/wowchemy/layouts/partials/functions/get_address.html @@ -5,7 +5,7 @@ {{ $page := . }} {{ $address := .address }} -{{ $format_name := $page.Params.address_format | default site.Params.address_format | default "en-us" }} +{{ $format_name := $page.Params.address_format | default site.Params.locale.address_format | default "en-us" }} {{ if not (isset site.Data.address_formats $format_name) }}{{ errorf "Address format `%s` missing from `data/address_formats.toml`!" $format_name }}{{end}} diff --git a/wowchemy/layouts/partials/functions/get_event_dates.html b/wowchemy/layouts/partials/functions/get_event_dates.html index 4d3181be..7a3a73eb 100644 --- a/wowchemy/layouts/partials/functions/get_event_dates.html +++ b/wowchemy/layouts/partials/functions/get_event_dates.html @@ -2,7 +2,7 @@ {{ $t1 := time .Date }}{{/* Start datetime. */}} {{ $str := slice (time.Format site.Params.locale.date_format (time $t1)) }}{{/* Init return string with start date. */}} {{/* Show start time if not all day event. */}} -{{ if not .Params.all_day }}{{ $str = $str | append (time.Format site.Params.time_format (time $t1)) }}{{ end }} +{{ if not .Params.all_day }}{{ $str = $str | append (time.Format site.Params.locale.time_format (time $t1)) }}{{ end }} {{/* Show event end date if provided. */}} {{ if .Params.date_end }} {{ $str = $str | append "—" }} @@ -12,6 +12,6 @@ {{ $str = $str | append (time.Format site.Params.locale.date_format (time $t2)) }} {{ end }} {{/* Show end time if not all day event. */}} - {{ if not .Params.all_day }}{{ $str = $str | append (time.Format site.Params.time_format (time $t2)) }}{{ end }} + {{ if not .Params.all_day }}{{ $str = $str | append (time.Format site.Params.locale.time_format (time $t2)) }}{{ end }} {{ end }} {{ return (delimit $str " ") }}