diff --git a/archetypes/publication/index.md b/archetypes/publication/index.md index caebbd84..d250c33e 100644 --- a/archetypes/publication/index.md +++ b/archetypes/publication/index.md @@ -1,10 +1,9 @@ +++ title = "{{ replace .Name "-" " " | title }}" date = {{ .Date }} -draft = false # Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`. -authors = [""] +authors = [] # Publication type. # Legend: @@ -21,13 +20,22 @@ publication_types = ["0"] publication = "" publication_short = "" -# Abstract and optional shortened version. +# Abstract. abstract = "" + +# Summary. An optional shortened abstract. abstract_short = "" +# Digital Object Identifier (DOI) +doi = "" + # Is this a featured publication? (true/false) featured = false +# Tags (optional). +# Set `tags = []` for no tags, or use the form `tags = ["A Tag", "Another Tag"]` for one or more tags. +tags = [] + # Projects (optional). # Associate this publication with one or more of your projects. # Simply enter your project's folder or file name without extension. @@ -44,10 +52,6 @@ projects = [] # Otherwise, set `slides = ""`. slides = "" -# Tags (optional). -# Set `tags = []` for no tags, or use the form `tags = ["A Tag", "Another Tag"]` for one or more tags. -tags = [] - # Links (optional). url_pdf = "" url_preprint = "" @@ -63,9 +67,6 @@ url_source = "" # Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. # url_custom = [{name = "Custom Link", url = "http://example.org"}] -# Digital Object Identifier (DOI) -doi = "" - # Featured image # To use, add an image named `featured.jpg/png` to your page's folder. [image] diff --git a/archetypes/talk/index.md b/archetypes/talk/index.md index e8a65157..50693ac9 100644 --- a/archetypes/talk/index.md +++ b/archetypes/talk/index.md @@ -1,7 +1,9 @@ +++ title = "{{ replace .Name "-" " " | title }}" date = {{ .Date }} # Schedule page publish date. -draft = false + +# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`. +authors = [] # Talk start and end times. # End time can optionally be hidden by prefixing the line with `#`. @@ -9,23 +11,37 @@ time_start = {{ .Date }} time_end = {{ .Date }} all_day = false -# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`. -authors = [] - -# Abstract and optional shortened version. -abstract = "" -abstract_short = "" +# Location of event. +location = "" # Name of event and optional event URL. event = "" event_url = "" -# Location of event. -location = "" +# Abstract. What's your talk about? +abstract = "" + +# Summary. An optional shortened abstract. +summary = "" # Is this a featured talk? (true/false) featured = false +# Tags (optional). +# Set `tags = []` for no tags, or use the form `tags = ["A Tag", "Another Tag"]` for one or more tags. +tags = [] + +# Markdown Slides (optional). +# Associate this page with Markdown slides. +# Simply enter your slide deck's filename without extension. +# E.g. `slides = "example-slides"` references +# `content/slides/example-slides.md`. +# Otherwise, set `slides = ""`. +slides = "" + +# Optional filename of your slides within your talk folder or a URL. +url_slides = "" + # Projects (optional). # Associate this talk with one or more of your projects. # Simply enter your project's folder or file name without extension. @@ -34,21 +50,8 @@ featured = false # Otherwise, set `projects = []`. projects = [] -# Slides (optional). -# Associate this page with Markdown slides. -# Simply enter your slide deck's filename without extension. -# E.g. `slides = "example-slides"` references -# `content/slides/example-slides.md`. -# Otherwise, set `slides = ""`. -slides = "" - -# Tags (optional). -# Set `tags = []` for no tags, or use the form `tags = ["A Tag", "Another Tag"]` for one or more tags. -tags = [] - # Links (optional). url_pdf = "" -url_slides = "" url_video = "" url_code = "" diff --git a/exampleSite/content/talk/example/index.md b/exampleSite/content/talk/example/index.md index f263197b..7dfcddc1 100644 --- a/exampleSite/content/talk/example/index.md +++ b/exampleSite/content/talk/example/index.md @@ -1,7 +1,9 @@ +++ title = "Example Talk" -date = 2017-01-01T00:00:00 # Schedule page publish date. -draft = false +date = 2017-01-01T00:00:00 # Schedule page publish date (not talk date). + +# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`. +authors = [] # Talk start and end times. # End time can optionally be hidden by prefixing the line with `#`. @@ -9,23 +11,37 @@ time_start = 2030-06-01T13:00:00 time_end = 2030-06-01T15:00:00 all_day = false -# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`. -authors = [] - -# Abstract and optional shortened version. -abstract = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi. Cras purus urna, suscipit quis sapien eu, pulvinar tempor diam." -abstract_short = "An example talk using Academic's Markdown slides feature." +# Location of event. +location = "London, United Kingdom" # Name of event and optional event URL. event = "Academic Theme Conference" event_url = "https://example.org" -# Location of event. -location = "London, United Kingdom" +# Abstract. What's your talk about? +abstract = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi. Cras purus urna, suscipit quis sapien eu, pulvinar tempor diam." + +# Summary. An optional shortened abstract. +summary = "An example talk using Academic's Markdown slides feature." # Is this a featured talk? (true/false) featured = false +# Tags (optional). +# Set `tags = []` for no tags, or use the form `tags = ["A Tag", "Another Tag"]` for one or more tags. +tags = [] + +# Markdown Slides (optional). +# Associate this talk with Markdown slides. +# Simply enter your slide deck's filename without extension. +# E.g. `slides = "example-slides"` references +# `content/slides/example-slides.md`. +# Otherwise, set `slides = ""`. +slides = "example-slides" + +# Optional filename of your slides within your talk folder or a URL. +url_slides = "" + # Projects (optional). # Associate this talk with one or more of your projects. # Simply enter your project's folder or file name without extension. @@ -34,27 +50,11 @@ featured = false # Otherwise, set `projects = []`. projects = ["internal-project"] -# Tags (optional). -# Set `tags = []` for no tags, or use the form `tags = ["A Tag", "Another Tag"]` for one or more tags. -tags = [] - -# Slides (optional). -# Associate this talk with Markdown slides. -# Simply enter your slide deck's filename without extension. -# E.g. `slides = "example-slides"` references -# `content/slides/example-slides.md`. -# Otherwise, set `slides = ""`. -slides = "example-slides" - # Links (optional). url_pdf = "" -url_slides = "" url_video = "" url_code = "" -# Does the content use math formatting? -math = true - # Featured image # To use, add an image named `featured.jpg/png` to your page's folder. [image] diff --git a/layouts/partials/li_compact.html b/layouts/partials/li_compact.html new file mode 100644 index 00000000..a466e0b1 --- /dev/null +++ b/layouts/partials/li_compact.html @@ -0,0 +1,89 @@ +{{ $item := . }} + +{{ $microdata_type := "CreativeWork" }} +{{ $show_authors_only := false }}{{/* Show authors only or full metadata? */}} +{{ $show_buttons := false }} + +{{/* Dynamic view adjusts to content type. */}} +{{ if eq $item.Type "post" }} + {{ $microdata_type = "BlogPosting" }} +{{ else if eq $item.Type "talk" }} + {{ $microdata_type = "Event" }} + {{ $show_authors_only = true }} + {{ $show_buttons = true }} +{{ else if eq $item.Type "publication" }} + {{ $microdata_type = "ScholarlyArticle" }} + {{ $show_authors_only = true }} + {{ $show_buttons = true }} +{{ end }} + +{{/* Get summary. */}} +{{ $summary := "" }} +{{ if $item.Params.summary }} + {{ $summary = $item.Params.summary | markdownify | emojify }} +{{ else if .Params.abstract }} + {{ $summary = .Params.abstract | markdownify | emojify }} +{{ else if $item.Truncated }} + {{ $summary = $item.Summary }} +{{ end }} + +