mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
parent
90c53aa0ca
commit
ec6d170ce4
3 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@ The **Documentation** starter template empowers you to easily create **product d
|
|||
[](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138)
|
||||
[](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.
|
||||
|
||||
|
|
|
@ -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}}
|
||||
|
||||
|
|
|
@ -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 " ") }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue