From 9acaa6f8527c5c2a8a9fc038754083efcfd95857 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 8 May 2019 21:11:09 +0100 Subject: [PATCH] feat: convert demo front matter from TOML to YAML Convert publications. See #1069 --- .../publication/conference-paper/index.md | 119 ++++++++---------- .../publication/journal-article/index.md | 117 ++++++++--------- .../content/publication/preprint/index.md | 113 ++++++++--------- 3 files changed, 157 insertions(+), 192 deletions(-) diff --git a/exampleSite/content/publication/conference-paper/index.md b/exampleSite/content/publication/conference-paper/index.md index ec425bc6..338f606a 100644 --- a/exampleSite/content/publication/conference-paper/index.md +++ b/exampleSite/content/publication/conference-paper/index.md @@ -1,84 +1,75 @@ -+++ -title = "An example conference paper" -date = 2013-07-01T00:00:00 +--- +title: "An example conference paper" +authors: +- admin +- Robert Ford +date: "2013-07-01T00:00:00Z" +doi: "" -# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`. -authors = ["admin", "Robert Ford"] +# Schedule page publish date (NOT publication's date). +publishDate: "2017-01-01T00:00:00Z" # Publication type. -# Legend: -# 0 = Uncategorized -# 1 = Conference paper -# 2 = Journal article -# 3 = Preprint / Working Paper -# 4 = Report -# 5 = Book -# 6 = Book section -# 7 = Thesis -# 8 = Patent -publication_types = ["1"] +# Legend: 0 = Uncategorized; 1 = Conference paper; 2 = Journal article; +# 3 = Preprint / Working Paper; 4 = Report; 5 = Book; 6 = Book section; +# 7 = Thesis; 8 = Patent +publication_types: ["1"] -# Publication name and optional abbreviated version. -publication = "In *Source Themes Conference*" -publication_short = "In *STC*" +# Publication name and optional abbreviated publication name. +publication: In *Source Themes Conference* +publication_short: In *STC* -# Abstract. -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. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida." +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. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida. # Summary. An optional shortened abstract. -summary = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum." +summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. -# Digital Object Identifier (DOI) -doi = "" +tags: +- Source Themes +featured: true -# Is this a featured publication? (true/false) -featured = true +links: +- name: Custom Link + url: http://example.org +url_pdf: http://eprints.soton.ac.uk/352095/1/Cushen-IMV2013.pdf +url_code: '#' +url_dataset: '#' +url_poster: '#' +url_project: '' +url_slides: '' +url_source: '#' +url_video: '#' -# Tags (optional). -# Set `tags = []` for no tags, or use the form `tags = ["A Tag", "Another Tag"]` for one or more tags. -tags = ["Source Themes"] +# Featured image +# To use, add an image named `featured.jpg/png` to your page's folder. +image: + caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/pLCdAaMFLTE)' + focal_point: "" + preview_only: false -# Projects (optional). +# Associated Projects (optional). # Associate this publication with one or more of your projects. # Simply enter your project's folder or file name without extension. -# E.g. `projects = ["deep-learning"]` references -# `content/project/deep-learning/index.md`. -# Otherwise, set `projects = []`. -projects = ["internal-project"] +# E.g. `internal-project` references `content/project/internal-project/index.md`. +# Otherwise, set `projects: []`. +projects: +- internal-project # Slides (optional). # Associate this publication 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" - -# Links (optional). -url_pdf = "http://eprints.soton.ac.uk/352095/1/Cushen-IMV2013.pdf" -url_code = "#" -url_dataset = "#" -url_project = "" -url_slides = "" -url_video = "#" -url_poster = "#" -url_source = "#" - -# Custom links (optional). -# Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. -links = [{name = "Custom Link", url = "http://example.org"}] - -# Featured image -# To use, add an image named `featured.jpg/png` to your page's folder. -[image] - # Caption (optional) - caption = "Image credit: [**Unsplash**](https://unsplash.com/photos/pLCdAaMFLTE)" - - # Focal point (optional) - # Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight - focal_point = "" -+++ +# E.g. `slides: "example"` references `content/slides/example/index.md`. +# Otherwise, set `slides: ""`. +slides: example +--- {{% alert note %}} -Supplementary notes can be added here, including [code and math](https://sourcethemes.com/academic/docs/writing-markdown-latex/). +Click the *Cite* button above to demo the feature to enable visitors to import publication metadata into their reference management software. {{% /alert %}} + +{{% alert note %}} +Click the *Slides* button above to demo Academic's Markdown slides feature. +{{% /alert %}} + +Supplementary notes can be added here, including [code and math](https://sourcethemes.com/academic/docs/writing-markdown-latex/). + diff --git a/exampleSite/content/publication/journal-article/index.md b/exampleSite/content/publication/journal-article/index.md index 5733d664..bccb5c1a 100644 --- a/exampleSite/content/publication/journal-article/index.md +++ b/exampleSite/content/publication/journal-article/index.md @@ -1,84 +1,73 @@ -+++ -title = "An example journal article" -date = 2015-09-01T00:00:00 +--- +title: "An example journal article" +authors: +- admin +- Robert Ford +date: "2015-09-01T00:00:00Z" +doi: "" -# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`. -authors = ["admin"] +# Schedule page publish date (NOT publication's date). +publishDate: "2017-01-01T00:00:00Z" # Publication type. -# Legend: -# 0 = Uncategorized -# 1 = Conference paper -# 2 = Journal article -# 3 = Preprint / Working Paper -# 4 = Report -# 5 = Book -# 6 = Book section -# 7 = Thesis -# 8 = Patent -publication_types = ["2"] +# Legend: 0 = Uncategorized; 1 = Conference paper; 2 = Journal article; +# 3 = Preprint / Working Paper; 4 = Report; 5 = Book; 6 = Book section; +# 7 = Thesis; 8 = Patent +publication_types: ["2"] -# Publication name and optional abbreviated version. -publication = "*Journal of Source Themes, 1*(1)" -publication_short = "" +# Publication name and optional abbreviated publication name. +publication: "*Journal of Source Themes, 1*(1)" +publication_short: "" -# Abstract. -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. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida." +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. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida. # Summary. An optional shortened abstract. -summary = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum." +summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. -# Digital Object Identifier (DOI) -doi = "" +tags: +- Source Themes +featured: false -# Is this a featured publication? (true/false) -featured = false +# links: +# - name: "" +# url: "" +url_pdf: http://arxiv.org/pdf/1512.04133v1 +url_code: '' +url_dataset: '' +url_poster: '' +url_project: '' +url_slides: '' +url_source: '' +url_video: '' -# Tags (optional). -# Set `tags = []` for no tags, or use the form `tags = ["A Tag", "Another Tag"]` for one or more tags. -tags = ["Source Themes"] +# Featured image +# To use, add an image named `featured.jpg/png` to your page's folder. +image: + caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/jdD8gXaTZsc)' + focal_point: "" + preview_only: false -# Projects (optional). +# Associated Projects (optional). # Associate this publication with one or more of your projects. # Simply enter your project's folder or file name without extension. -# E.g. `projects = ["deep-learning"]` references -# `content/project/deep-learning/index.md`. -# Otherwise, set `projects = []`. -projects = [] +# E.g. `internal-project` references `content/project/internal-project/index.md`. +# Otherwise, set `projects: []`. +projects: [] # Slides (optional). # Associate this publication 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" - -# Links (optional). -url_pdf = "http://arxiv.org/pdf/1512.04133v1" -url_code = "" -url_dataset = "" -url_project = "" -url_slides = "" -url_video = "" -url_poster = "" -url_source = "" - -# Custom links (optional). -# Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. -# links = [{name = "Custom Link", url = "http://example.org"}] - -# Featured image -# To use, add an image named `featured.jpg/png` to your page's folder. -[image] - # Caption (optional) - caption = "Image credit: [**Unsplash**](https://unsplash.com/photos/jdD8gXaTZsc)" - - # Focal point (optional) - # Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight - focal_point = "" -+++ +# E.g. `slides: "example"` references `content/slides/example/index.md`. +# Otherwise, set `slides: ""`. +slides: example +--- {{% alert note %}} -Supplementary notes can be added here, including [code and math](https://sourcethemes.com/academic/docs/writing-markdown-latex/). +Click the *Cite* button above to demo the feature to enable visitors to import publication metadata into their reference management software. {{% /alert %}} + +{{% alert note %}} +Click the *Slides* button above to demo Academic's Markdown slides feature. +{{% /alert %}} + +Supplementary notes can be added here, including [code and math](https://sourcethemes.com/academic/docs/writing-markdown-latex/). diff --git a/exampleSite/content/publication/preprint/index.md b/exampleSite/content/publication/preprint/index.md index 9dac66aa..6a1b610f 100644 --- a/exampleSite/content/publication/preprint/index.md +++ b/exampleSite/content/publication/preprint/index.md @@ -1,84 +1,69 @@ -+++ -title = "An example preprint / working paper" -date = 2019-04-07T00:00:00 +--- +title: "An example preprint / working paper" +authors: +- admin +date: "2019-04-07T00:00:00Z" +doi: "" -# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`. -authors = ["admin"] +# Schedule page publish date (NOT publication's date). +publishDate: "2017-01-01T00:00:00Z" # Publication type. -# Legend: -# 0 = Uncategorized -# 1 = Conference paper -# 2 = Journal article -# 3 = Preprint / Working Paper -# 4 = Report -# 5 = Book -# 6 = Book section -# 7 = Thesis -# 8 = Patent -publication_types = ["3"] +# Legend: 0 = Uncategorized; 1 = Conference paper; 2 = Journal article; +# 3 = Preprint / Working Paper; 4 = Report; 5 = Book; 6 = Book section; +# 7 = Thesis; 8 = Patent +publication_types: ["3"] -# Publication name and optional abbreviated version. -publication = "" -publication_short = "" +# Publication name and optional abbreviated publication name. +publication: "" +publication_short: "" -# Abstract. -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. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida." +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. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida. # Summary. An optional shortened abstract. -summary = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum." +summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. -# Digital Object Identifier (DOI) -doi = "" +tags: +- Source Themes +featured: false -# Is this a featured publication? (true/false) -featured = false +links: +- name: Custom Link + url: http://example.org +url_pdf: http://arxiv.org/pdf/1512.04133v1 +url_code: '#' +url_dataset: '#' +url_poster: '#' +url_project: '' +url_slides: '' +url_source: '#' +url_video: '#' -# Tags (optional). -# Set `tags = []` for no tags, or use the form `tags = ["A Tag", "Another Tag"]` for one or more tags. -tags = ["Source Themes"] +# Featured image +# To use, add an image named `featured.jpg/png` to your page's folder. +image: + caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/s9CC2SKySJM)' + focal_point: "" + preview_only: false -# Projects (optional). +# Associated Projects (optional). # Associate this publication with one or more of your projects. # Simply enter your project's folder or file name without extension. -# E.g. `projects = ["deep-learning"]` references -# `content/project/deep-learning/index.md`. -# Otherwise, set `projects = []`. -projects = [] +# E.g. `internal-project` references `content/project/internal-project/index.md`. +# Otherwise, set `projects: []`. +projects: +- internal-project # Slides (optional). # Associate this publication 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 = "" - -# Links (optional). -url_pdf = "http://arxiv.org/pdf/1512.04133v1" -url_code = "" -url_dataset = "" -url_project = "" -url_slides = "" -url_video = "" -url_poster = "" -url_source = "" - -# Custom links (optional). -# Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`. -# links = [{name = "Custom Link", url = "http://example.org"}] - -# Featured image -# To use, add an image named `featured.jpg/png` to your page's folder. -[image] - # Caption (optional) - caption = "Image credit: [**Unsplash**](https://unsplash.com/photos/s9CC2SKySJM)" - - # Focal point (optional) - # Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight - focal_point = "" -+++ +# E.g. `slides: "example"` references `content/slides/example/index.md`. +# Otherwise, set `slides: ""`. +slides: example +--- {{% alert note %}} -Supplementary notes can be added here, including [code and math](https://sourcethemes.com/academic/docs/writing-markdown-latex/). +Click the *Slides* button above to demo Academic's Markdown slides feature. {{% /alert %}} + +Supplementary notes can be added here, including [code and math](https://sourcethemes.com/academic/docs/writing-markdown-latex/).