feat: convert demo front matter from TOML to YAML

Unfortunately, the popular Markdown editors (VS Code and Typora) still
don't support the more human-friendly TOML front matter syntax.

Therefore, make it easier to edit content in popular editors by
converting the demo front matter from TOML to YAML.

Except for publications as they are primarily data based (rather than
content based) and are automatically generated by Academic Admin.

Also, continue to use TOML for configuration files.

See #1069
This commit is contained in:
George Cushen committed 2019-05-06 17:48:02 +01:00
1 parent 32e6009edb
commit 8857bffa20
15 files changed
+286 -381

No files matched your search

+51 -63
View File
@@ -1,86 +1,74 @@
+++
---
# Display name
name = "Nelson Bighetti"
name: Nelson Bighetti
# Username (this should match the folder name)
authors = ["admin"]
authors:
- admin
# Is this the primary user of the site?
superuser = true
superuser: true
# Role/position
role = "Professor of Artificial Intelligence"
role: Professor of Artificial Intelligence
# Organizations/Affiliations
# Separate multiple entries with a comma, using the form: `[ {name="Org1", url=""}, {name="Org2", url=""} ]`.
organizations = [ { name = "Stanford University", url = "" } ]
organizations:
- name: Stanford University
url: ""
# Short bio (displayed in user profile at end of posts)
bio = "My research interests include distributed robotics, mobile computing and programmable matter."
bio: My research interests include distributed robotics, mobile computing and programmable matter.
# Enter email to display Gravatar (if Gravatar enabled in Config)
email = ""
interests:
- Artificial Intelligence
- Computational Linguistics
- Information Retrieval
# List (academic) interests or hobbies
interests = [
"Artificial Intelligence",
"Computational Linguistics",
"Information Retrieval"
]
# Organizational groups that you belong to (for People widget)
# Set this to `[]` or comment out if you are not using People widget.
user_groups = ["Researchers", "Visitors"]
# List qualifications (such as academic degrees)
[[education.courses]]
course = "PhD in Artificial Intelligence"
institution = "Stanford University"
year = 2012
[[education.courses]]
course = "MEng in Artificial Intelligence"
institution = "Massachusetts Institute of Technology"
year = 2009
[[education.courses]]
course = "BSc in Artificial Intelligence"
institution = "Massachusetts Institute of Technology"
year = 2008
education:
courses:
- course: PhD in Artificial Intelligence
institution: Stanford University
year: 2012
- course: MEng in Artificial Intelligence
institution: Massachusetts Institute of Technology
year: 2009
- course: BSc in Artificial Intelligence
institution: Massachusetts Institute of Technology
year: 2008
# Social/Academic Networking
# For available icons, see: https://sourcethemes.com/academic/docs/widgets/#icons
# For an email link, use "fas" icon pack, "envelope" icon, and a link in the
# form "mailto:your-email@example.com" or "#contact" for contact widget.
[[social]]
icon = "envelope"
icon_pack = "fas"
link = "#contact" # For a direct email link, use "mailto:test@example.org".
[[social]]
icon = "twitter"
icon_pack = "fab"
link = "https://twitter.com/GeorgeCushen"
[[social]]
icon = "google-scholar"
icon_pack = "ai"
link = "https://scholar.google.co.uk/citations?user=sIwtMXoAAAAJ"
[[social]]
icon = "github"
icon_pack = "fab"
link = "https://github.com/gcushen"
social:
- icon: envelope
icon_pack: fas
link: '#contact' # For a direct email link, use "mailto:test@example.org".
- icon: twitter
icon_pack: fab
link: https://twitter.com/GeorgeCushen
- icon: google-scholar
icon_pack: ai
link: https://scholar.google.co.uk/citations?user=sIwtMXoAAAAJ
- icon: github
icon_pack: fab
link: https://github.com/gcushen
# Link to a PDF of your resume/CV from the About widget.
# To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below.
# [[social]]
# icon = "cv"
# icon_pack = "ai"
# link = "files/cv.pdf"
# To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below.
# - icon: cv
# icon_pack: ai
# link: files/cv.pdf
+++
# Enter email to display Gravatar (if Gravatar enabled in Config)
email: ""
# Organizational groups that you belong to (for People widget)
# Set this to `[]` or comment out if you are not using People widget.
user_groups:
- Researchers
- Visitors
---
Nelson Bighetti is a professor of artificial intelligence at the Stanford AI Lab. His research interests include distributed robotics, mobile computing and programmable matter. He leads the Robotic Neurobiology group, which develops self-reconfiguring robots, systems of self-organizing robots, and mobile sensor networks.
+8 -7
View File
@@ -1,8 +1,9 @@
+++
title = "Courses"
---
title: Courses
# Optional header image (relative to `static/img/` folder).
header:
caption: ""
image: ""
---
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++
+18 -17
View File
@@ -1,24 +1,25 @@
+++
---
# Course title, summary, and position.
linktitle = "An Example Course"
summary = "Learn how to use Academic's docs layout for publishing online courses, software documentation, and tutorials."
weight = 1 # Position of this course in course index. Comment out to order by date instead.
linktitle: An Example Course
summary: Learn how to use Academic's docs layout for publishing online courses, software documentation, and tutorials.
weight: 1
# Page title
title = "Overview"
date = 2018-09-09T00:00:00 # Date published
# lastmod = 2018-09-09T00:00:00 # Date modified
draft = false # Is this a draft? true/false
toc = true # Show table of contents? true/false
type = "docs" # Do not modify.
# Page metadata.
title: Overview
date: "2018-09-09T00:00:00Z"
lastmod: "2018-09-09T00:00:00Z"
draft: false # Is this a draft? true/false
toc: true # Show table of contents? true/false
type: docs # Do not modify.
# Add menu entry to sidebar.
[menu.example]
name = "Overview" # Declare this menu item as a parent with ID `name`.
weight = 1 # Position of link in menu.
+++
# - name: Declare this menu item as a parent with ID `name`.
# - weight: Position of link in menu.
menu:
example:
name: Overview
weight: 1
---
## Flexibility
+13 -17
View File
@@ -1,22 +1,18 @@
+++
title = "Example Page 1"
date = 2018-09-09T00:00:00 # Date published
# lastmod = 2018-09-09T00:00:00 # Date modified
draft = false # Is this a draft? true/false
toc = true # Show table of contents? true/false
type = "docs" # Do not modify.
---
title: Example Page 1
linktitle: Tips 1-2
toc: true
type: docs
date: "2019-05-05T00:00:00+01:00"
draft: false
menu:
example:
parent: Example Topic
weight: 1
# Prev/next pager order (if `docs_section_pager` enabled in `params.toml`)
weight = 1
# Add menu entry to sidebar.
linktitle = "Tips 1-2" # Menu text - remove to use page title instead.
[menu.example]
parent = "Example Topic" # ID of parent menu entry.
weight = 1 # Position of link in menu.
+++
weight: 1
---
In this tutorial, I'll share my top 10 tips for getting started with Academic:
+13 -17
View File
@@ -1,22 +1,18 @@
+++
title = "Example Page 2"
date = 2019-05-05T00:00:00 # Date published
# lastmod = 2018-09-09T00:00:00 # Date modified
draft = false # Is this a draft? true/false
toc = true # Show table of contents? true/false
type = "docs" # Do not modify.
---
title: Example Page 2
linktitle: Tips 3-4
toc: true
type: docs
date: "2019-05-05T00:00:00+01:00"
draft: false
menu:
example:
parent: Example Topic
weight: 2
# Prev/next pager order (if `docs_section_pager` enabled in `params.toml`)
weight = 2
# Add menu entry to sidebar.
linktitle = "Tips 3-4" # Menu text - remove to use page title instead.
[menu.example]
parent = "Example Topic" # ID of parent menu entry.
weight = 2 # Position of link in menu.
+++
weight: 2
---
Here are some more tips for getting started with Academic:
+8 -8
View File
@@ -1,14 +1,14 @@
+++
title = "Posts"
---
title: Posts
# View.
# 1 = List
# 2 = Compact
# 3 = Card
view = 2
view: 2
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++
# Optional header image (relative to `static/img/` folder).
header:
caption: ""
image: ""
---
@@ -1,80 +1,59 @@
+++
title = "Academic: the website builder for Hugo"
subtitle = "Create a beautifully simple website in under 10 minutes :rocket:"
---
title: 'Academic: the website builder for Hugo'
subtitle: 'Create a beautifully simple website in under 10 minutes :rocket:'
summary: Create a beautifully simple website in under 10 minutes.
authors:
- admin
tags:
- Academic
categories: []
date: "2016-04-20T00:00:00Z"
lastmod: "2019-04-17T00:00:00Z"
featured: false
draft: false
date = 2016-04-20T00:00:00 # Schedule a publish date
lastmod = 2019-04-17T00:00:00 # Date last modified
draft = false # Display this post? (true/false)
# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`.
authors = ["admin"]
tags = ["Academic"]
summary = "Create a beautifully simple website in under 10 minutes."
# Featured image
# To use, add an image named `featured.jpg/png` to your page's folder.
# Focal point options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight
image:
caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/CpkOjOcXdUY)'
focal_point: ""
preview_only: false
# Projects (optional).
# Associate this post 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`.
# E.g. `projects = ["internal-project"]` references `content/project/deep-learning/index.md`.
# Otherwise, set `projects = []`.
# projects = ["internal-project"]
# Featured image
# To use, add an image named `featured.jpg/png` to your project's folder.
[image]
# Caption (optional)
caption = "Image credit: [**Unsplash**](https://unsplash.com/photos/CpkOjOcXdUY)"
# Focal point (optional)
# Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight
focal_point = ""
# Show image only in page previews?
preview_only = false
projects: []
# Set captions for image gallery.
[[gallery_item]]
album = "gallery"
image = "theme-default.png"
caption = "Default"
[[gallery_item]]
album = "gallery"
image = "theme-ocean.png"
caption = "Ocean"
[[gallery_item]]
album = "gallery"
image = "theme-forest.png"
caption = "Forest"
[[gallery_item]]
album = "gallery"
image = "theme-dark.png"
caption = "Dark"
[[gallery_item]]
album = "gallery"
image = "theme-apogee.png"
caption = "Apogee"
[[gallery_item]]
album = "gallery"
image = "theme-1950s.png"
caption = "1950s"
[[gallery_item]]
album = "gallery"
image = "theme-coffee-playfair.png"
caption = "Coffee theme with Playfair font"
[[gallery_item]]
album = "gallery"
image = "theme-cupcake.png"
caption = "Cupcake"
+++
gallery_item:
- album: gallery
caption: Default
image: theme-default.png
- album: gallery
caption: Ocean
image: theme-ocean.png
- album: gallery
caption: Forest
image: theme-forest.png
- album: gallery
caption: Dark
image: theme-dark.png
- album: gallery
caption: Apogee
image: theme-apogee.png
- album: gallery
caption: 1950s
image: theme-1950s.png
- album: gallery
caption: Coffee theme with Playfair font
image: theme-coffee-playfair.png
- album: gallery
caption: Cupcake
image: theme-cupcake.png
---
**Create a free website with Academic using Markdown, Jupyter, or RStudio. Choose a beautiful color theme and build anything with the Page Builder - over 40 _widgets_, _themes_, and _language packs_ included!**
+19 -26
View File
@@ -1,36 +1,29 @@
+++
title = "Display Jupyter Notebooks with Academic"
subtitle = "Learn how to blog in Academic using Jupyter notebooks"
summary = "Learn how to blog in Academic using Jupyter notebooks"
date = 2019-02-05T00:00:00Z
draft = false
---
title: Display Jupyter Notebooks with Academic
subtitle: Learn how to blog in Academic using Jupyter notebooks
summary: Learn how to blog in Academic using Jupyter notebooks
authors:
- admin
tags: []
categories: []
date: "2019-02-05T00:00:00Z"
featured: false
draft: false
# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`.
authors = ["admin"]
# Tags and categories
# For example, use `tags = []` for no tags, or the form `tags = ["A Tag", "Another Tag"]` for one or more tags.
tags = []
categories = []
# Featured image
# To use, add an image named `featured.jpg/png` to your page's folder.
image:
caption: ""
focal_point: ""
# Projects (optional).
# Associate this post with one or more of your projects.
# Simply enter your project's folder or file name without extension.
# E.g. `projects = ["deep-learning"]` references
# E.g. `projects = ["internal-project"]` references
# `content/project/deep-learning/index.md`.
# Otherwise, set `projects = []`.
# projects = ["internal-project"]
# Featured image
# To use, add an image named `featured.jpg/png` to your page's folder.
[image]
# Caption (optional)
caption = ""
# Focal point (optional)
# Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight
focal_point = ""
+++
projects: []
---
```python
+10 -10
View File
@@ -1,13 +1,13 @@
+++
title = "Privacy Policy"
---
title: Privacy Policy
date: "2018-06-28T00:00:00+01:00"
draft: true
share: false
date = 2018-06-28T00:00:00
draft = true
share = false
# [header]
# image = ""
# caption = ""
+++
# Optional header image (relative to `static/img/` folder).
header:
caption: ""
image: ""
---
...
@@ -1,27 +1,14 @@
+++
# Project title.
title = "External Project"
# Date this page was created.
date = 2016-04-27T00:00:00
# Project summary to display on homepage.
summary = "An example of linking directly to an external project website using `external_link`."
# Tags: can be used for filtering projects.
# Example: `tags = ["machine-learning", "deep-learning"]`
tags = ["Demo"]
---
title: External Project
summary: An example of linking directly to an external project website using `external_link`.
tags:
- Demo
date: "2016-04-27T00:00:00Z"
# Optional external URL for project (replaces project detail page).
external_link = "http://example.org"
external_link: http://example.org
# Featured image
# To use, add an image named `featured.jpg/png` to your project's folder.
[image]
# Caption (optional)
caption = "Photo by Toa Heftiba on Unsplash"
# Focal point (optional)
# Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight
focal_point = "Smart"
+++
image:
caption: Photo by Toa Heftiba on Unsplash
focal_point: Smart
---
@@ -1,48 +1,34 @@
+++
# Project title.
title = "Internal Project"
# Date this page was created.
date = 2016-04-27T00:00:00
# Project summary to display on homepage.
summary = "An example of using the in-built project page."
# Tags: can be used for filtering projects.
# Example: `tags = ["machine-learning", "deep-learning"]`
tags = ["Deep Learning"]
---
title: Internal Project
summary: An example of using the in-built project page.
tags:
- Deep Learning
date: "2016-04-27T00:00:00Z"
# Optional external URL for project (replaces project detail page).
external_link = ""
external_link: ""
image:
caption: Photo by rawpixel on Unsplash
focal_point: Smart
links:
- icon: twitter
icon_pack: fab
name: Follow
url: https://twitter.com/georgecushen
url_code: ""
url_pdf: ""
url_slides: ""
url_video: ""
# Slides (optional).
# Associate this project with Markdown slides.
# Simply enter your slide deck's filename without extension.
# E.g. `slides = "example-slides"` references
# `content/slides/example-slides.md`.
# 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 = ""
# Custom links (optional).
# Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`.
links = [{icon_pack = "fab", icon="twitter", name="Follow", url = "https://twitter.com/georgecushen"}]
# Featured image
# To use, add an image named `featured.jpg/png` to your project's folder.
[image]
# Caption (optional)
caption = "Photo by rawpixel on Unsplash"
# Focal point (optional)
# Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight
focal_point = "Smart"
+++
slides: example
---
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.
+8 -8
View File
@@ -1,15 +1,15 @@
+++
title = "Publications"
---
title: Publications
# View.
# 1 = List
# 2 = Compact
# 3 = Card
# 4 = Citation
view = 4
view: 4
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++
# Optional header image (relative to `static/img/` folder).
header:
caption: ""
image: ""
---
+11 -16
View File
@@ -1,22 +1,17 @@
+++
title = "Slides"
date = 2019-02-05T00:00:00Z
summary = "An introduction to using Academic's Slides feature."
# Authors, tags, and categories
# Use a comma separated list, e.g. `["Bob Smith", "David Jones"]`.
authors = []
tags = []
categories = []
[slides]
---
title: Slides
summary: An introduction to using Academic's Slides feature.
authors: []
tags: []
categories: []
date: "2019-02-05T00:00:00Z"
slides:
# Choose a theme from https://github.com/hakimel/reveal.js#theming
theme = "black"
theme: black
# Choose a code highlighting style (if highlighting enabled in `params.toml`)
# Light style: github. Dark style: dracula (default).
# highlight_style = "dracula" # Uncomment this line to set a style.
+++
highlight_style: dracula
---
# Welcome to Slides
+8 -8
View File
@@ -1,14 +1,14 @@
+++
title = "Recent & Upcoming Talks"
---
title: Recent & Upcoming Talks
# View.
# 1 = List
# 2 = Compact
# 3 = Card
view = 2
view: 2
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++
# Optional header image (relative to `static/img/` folder).
header:
caption: ""
image: ""
---
+36 -53
View File
@@ -1,75 +1,58 @@
+++
title = "Example Talk"
---
title: Example Talk
event: Academic Theme Conference
event_url: https://example.org
location: London, United Kingdom
summary: An example talk using Academic's Markdown slides feature.
abstract: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellusac 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."
# Talk start and end times.
# End time can optionally be hidden by prefixing the line with `#`.
date = 2030-06-01T13:00:00
date_end = 2030-06-01T15:00:00
all_day = false
date: "2030-06-01T13:00:00Z"
date_end: "2030-06-01T15:00:00Z"
all_day: false
# Schedule page publish date (NOT talk date).
publishDate = 2017-01-01T00:00:00
publishDate: "2017-01-01T00:00:00Z"
# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`.
authors = []
# Location of event.
location = "London, United Kingdom"
# Name of event and optional event URL.
event = "Academic Theme Conference"
event_url = "https://example.org"
# 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."
authors: []
tags: []
# Is this a featured talk? (true/false)
featured = 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 = []
image:
caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/bzdhc5b3Bxs)'
focal_point: Right
links:
- icon: twitter
icon_pack: fab
name: Follow
url: https://twitter.com/georgecushen
url_code: ""
url_pdf: ""
url_slides: ""
url_video: ""
# 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`.
# E.g. `slides = "example-slides"` references `content/slides/example-slides.md`.
# Otherwise, set `slides = ""`.
slides = "example"
# Optional filename of your slides within your talk folder or a URL.
url_slides = ""
slides: example
# Projects (optional).
# Associate this talk with one or more of your projects.
# Associate this post 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`.
# E.g. `projects = ["internal-project"]` references `content/project/deep-learning/index.md`.
# Otherwise, set `projects = []`.
projects = ["internal-project"]
projects:
- internal-project
# Links (optional).
url_pdf = ""
url_video = ""
url_code = ""
# Demo talk page uses LaTeX math.
math = true
# 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/bzdhc5b3Bxs)"
# Focal point (optional)
# Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight
focal_point = "Right"
+++
# Enable math on this page?
math: true
---
{{% alert note %}}
Click on the **Slides** button above to view the built-in slides feature.