diff --git a/archetypes/talk.md b/archetypes/talk.md index ddc5ffc5..d254c2df 100644 --- a/archetypes/talk.md +++ b/archetypes/talk.md @@ -4,6 +4,8 @@ title = "" abstract = "" abstract_short = "" event = "" +event_url = "" +location = "" selected = false url_pdf = "" url_slides = "" diff --git a/exampleSite/content/home/talks.md b/exampleSite/content/home/talks.md index be34468d..487fdf29 100644 --- a/exampleSite/content/home/talks.md +++ b/exampleSite/content/home/talks.md @@ -1,11 +1,10 @@ +++ -# Recent Talks widget. -# Note: this widget will only display if `content/talk/` contains talks. +# Recent and Upcoming Talks widget. date = "2016-04-20T00:00:00" draft = false -title = "Recent Talks" +title = "Recent & Upcoming Talks" subtitle = "" widget = "talks" diff --git a/exampleSite/content/talk/example-talk.md b/exampleSite/content/talk/example-talk.md index 8c1c7b6f..aa396dd9 100644 --- a/exampleSite/content/talk/example-talk.md +++ b/exampleSite/content/talk/example-talk.md @@ -1,14 +1,16 @@ +++ -date = "2016-12-22T00:00:00" +date = "2017-01-01T00:00:00" math = true title = "Example Talk" abstract = "" abstract_short = "" event = "Hugo Academic Theme Conference" +event_url = "https://example.org" +location = "London, United Kingdom" selected = false url_pdf = "" url_slides = "" url_video = "" +++ -More detail can easily be written here using *Markdown* and $\rm \LaTeX$ math code. +Embed your slides or video here using [shortcodes](https://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/). Further details can easily be added using *Markdown* and $\rm \LaTeX$ math code. diff --git a/i18n/en.yaml b/i18n/en.yaml index 29b6bedd..6c3f4411 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -69,6 +69,9 @@ - id: event translation: Event +- id: location + translation: Location + # Project details - id: open_project_site diff --git a/layouts/partials/talk_li_simple.html b/layouts/partials/talk_li_simple.html index 4d602a90..f470f6a5 100644 --- a/layouts/partials/talk_li_simple.html +++ b/layouts/partials/talk_li_simple.html @@ -1,12 +1,12 @@
+ {{ .Date.Format $.Site.Params.date_format }}, {{ if .Params.event_short }} {{ .Params.event_short | markdownify }} {{ else if .Params.event }} {{ .Params.event | markdownify }} {{ end }} -
{{ partial "talk_links" (dict "content" . "is_list" 1) }}
+