theme: upgrade to latest v4.1 dev (talk front matter upgraded)

Also:

- Project and Custom widgets renamed (upgraded)
- Rearranges section positions and adds demo section to introduce
the template and help the user get started
This commit is contained in:
George Cushen 2019-02-27 22:34:04 +00:00
parent 96e3f9b2d4
commit 8296df5067
18 changed files with 160 additions and 110 deletions

View File

@ -6,36 +6,36 @@
[[main]]
name = "Home"
url = "#about"
weight = 1
[[main]]
name = "Publications"
url = "#publications_featured"
weight = 2
weight = 10
[[main]]
name = "Posts"
url = "#posts"
weight = 3
weight = 20
[[main]]
name = "Projects"
url = "#projects"
weight = 4
weight = 30
[[main]]
name = "Publications"
url = "#featured"
weight = 40
[[main]]
name = "Tutorials"
url = "/tutorial/"
weight = 5
weight = 50
[[main]]
name = "Contact"
url = "#contact"
weight = 6
weight = 60
# Link to a PDF of your resume/CV from the menu.
# To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below.
# [[main]]
# name = "CV"
# url = "files/cv.pdf"
# weight = 7
# weight = 70

View File

@ -56,11 +56,10 @@ address = "Building 1 Room 1, Stanford University, California, 90210, USA"
# Office hours: use `<br>` to insert a line break, or set to "" to remove office hours
office_hours = """Monday 10:00 to 13:00<br>
Wednesday 09:00 to 10:00<br>
Otherwise email to book an appointment"""
Wednesday 09:00 to 10:00"""
# Enter an optional link for booking appointments (e.g. calendly.com).
appointment_url = ""
appointment_url = "https://calendly.com"
# Contact links
# Set to `[]` to disable, or comment out unwanted lines with a hash `#`.

View File

@ -2,7 +2,7 @@
# About/Biography widget.
widget = "about" # Do not modify this line!
active = true # Activate this widget? true/false
weight = 5 # Order that this section will appear in.
weight = 20 # Order that this section will appear in.
title = "Biography"

View File

@ -7,7 +7,7 @@ title = "Accomplish&shy;ments"
subtitle = ""
# Order that this section will appear in.
weight = 9
weight = 50
# Date format
# Refer to https://sourcethemes.com/academic/docs/customization/#date-format

View File

@ -7,7 +7,7 @@ title = "Contact"
subtitle = ""
# Order that this section will appear in.
weight = 70
weight = 130
# Automatically link email and phone?
autolink = true

68
content/home/demo.md Normal file
View File

@ -0,0 +1,68 @@
+++
# A Demo section created with the Blank widget.
# Any elements can be added in the body: https://sourcethemes.com/academic/docs/writing-markdown-latex/
# Add more sections by duplicating this file and customizing to your requirements.
widget = "blank" # Do not modify this line!
active = true # Activate this widget? true/false
weight = 15 # Order that this section will appear.
# Note: a full width section format can be enabled by commenting out the `title` and `subtitle` with a `#`.
title = "Academic Kickstart"
subtitle = ""
[design]
# Choose how many columns the section has. Valid values: 1 or 2.
columns = "1"
[design.background]
# Apply a background color, gradient, or image.
# Uncomment (by removing `#`) an option to apply it.
# Choose a light or dark text color by setting `text_color_light`.
# Any HTML color name or Hex value is valid.
# Background color.
# color = "navy"
# Background gradient.
gradient_start = "DarkGreen"
gradient_end = "ForestGreen"
# Background image.
# image = "image.jpg" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# Text color (true=light or false=dark).
text_color_light = true
[advanced]
# Custom CSS.
css_style = "padding-top: 20px; padding-bottom: 20px;"
# CSS class.
css_class = ""
+++
Welcome to the **Academic Kickstart** template!
Follow our [Getting Started](https://sourcethemes.com/academic/docs/get-started/) and [Page Builder](https://sourcethemes.com/academic/docs/widgets/) guides to easily personalize the template and then [add your own content](https://sourcethemes.com/academic/docs/managing-content/).
For inspiration, check out [the Markdown files](https://sourcethemes.com/academic/docs/install/#demo-content) which power the [personal demo](https://academic-demo.netlify.com/). The easiest way to publish your new site to the internet is with [Netlify](https://sourcethemes.com/academic/docs/deployment/).
- [View the documentation](https://sourcethemes.com/academic/docs/)
- [Ask a question](http://discuss.gohugo.io/)
- [Request a feature or report a bug](https://github.com/gcushen/hugo-academic/issues)
- Updating? View the [Update Guide](https://sourcethemes.com/academic/docs/update/) and [Release Notes](https://sourcethemes.com/academic/updates/)
- Support development of Academic:
- [Donate a coffee](https://paypal.me/cushen)
- [Become a backer on Patreon](https://www.patreon.com/cushen)
- [Decorate your laptop or journal with an Academic sticker](https://www.redbubble.com/people/neutreno/works/34387919-academic)
- [Wear the T-shirt](https://academic.threadless.com/)
{{% alert note %}}
This homepage section is an example of adding [elements](https://sourcethemes.com/academic/docs/writing-markdown-latex/) to the [*Blank* widget](https://sourcethemes.com/academic/docs/widgets/).
Backgrounds can be applied to any section. Here, the *background* option is set give a *color gradient*.
**To remove this section, delete `content/home/demo.md`.**
{{% /alert %}}

View File

@ -7,7 +7,7 @@ title = "Experience"
subtitle = ""
# Order that this section will appear in.
weight = 8
weight = 40
# Date format for experience
# Refer to https://sourcethemes.com/academic/docs/customization/#date-format

View File

@ -5,7 +5,7 @@
widget = "featured" # Do not modify this line!
active = true # Activate this widget? true/false
weight = 10 # Order that this section will appear.
weight = 80 # Order that this section will appear.
title = "Featured Publications"
subtitle = ""

View File

@ -2,7 +2,7 @@
# Hero widget.
widget = "hero" # Do not modify this line!
active = false # Activate this widget? true/false
weight = 3 # Order that this section will appear.
weight = 10 # Order that this section will appear.
title = "Academic"

View File

@ -4,7 +4,7 @@
widget = "pages" # Do not modify this line!
active = true # Activate this widget? true/false
weight = 40 # Order that this section will appear.
weight = 60 # Order that this section will appear.
title = "Recent Posts"
subtitle = ""

View File

@ -1,52 +1,75 @@
+++
# Projects widget.
widget = "projects" # Do not modify this line!
# Portfolio widget.
widget = "portfolio" # Do not modify this line!
active = true # Activate this widget? true/false
weight = 65 # Order that this section will appear.
title = "Projects"
subtitle = ""
# Order that this section will appear in.
weight = 50
[content]
# Page type to display. E.g. project.
page_type = "project"
# Filter toolbar (optional).
# Add or remove as many filters (`[[content.filter_button]]` instances) as you like.
# To show all items, set `tag` to "*".
# To filter by a specific tag, set `tag` to an existing tag name.
# To remove toolbar, delete/comment all instances of `[[content.filter_button]]` below.
# Default filter index (e.g. 0 corresponds to the first `[[filter_button]]` instance below).
filter_default = 0
# [[content.filter_button]]
# name = "All"
# tag = "*"
# [[content.filter_button]]
# name = "Deep Learning"
# tag = "Deep Learning"
# [[content.filter_button]]
# name = "Other"
# tag = "Demo"
# Content.
# Display content from the following folder.
# For example, `folder = "project"` displays content from `content/project/`.
folder = "project"
[design]
# Choose how many columns the section has. Valid values: 1 or 2.
columns = "2"
# View.
# 1 = List
# 3 = Card
# 5 = Showcase
view = 3
# Toggle between the various page layout types.
# 1 = List
# 3 = Card
# 5 = Showcase
view = 3
# Widget layout
# Legend: 0 = two columns (default), 1 = single column
widget_layout = 0
# For Showcase view, flip alternate rows?
flip_alt_rows = false
# For Showcase view, flip alternate rows?
flip_alt_rows = false
# Filter toolbar.
# Default filter index (e.g. 0 corresponds to the first `[[filter]]` instance below).
filter_default = 0
# Add or remove as many filters (`[[filter]]` instances) as you like.
# To show all items, set `tag` to "*".
# To filter by a specific tag, set `tag` to an existing tag name.
# To remove toolbar, delete/comment all instances of `[[filter]]` below.
# [[filter]]
# name = "All"
# tag = "*"
#
# [[filter]]
# name = "Deep Learning"
# tag = "Deep Learning"
#
# [[filter]]
# name = "Other"
# tag = "Demo"
[design.background]
# Apply a background color, gradient, or image.
# Uncomment (by removing `#`) an option to apply it.
# Choose a light or dark text color by setting `text_color_light`.
# Any HTML color name or Hex value is valid.
# Background color.
# color = "navy"
# Background gradient.
# gradient_start = "DeepSkyBlue"
# gradient_end = "SkyBlue"
# Background image.
# image = "background.jpg" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# Text color (true=light or false=dark).
# text_color_light = true
[advanced]
# Custom CSS.
css_style = ""
# CSS class.
css_class = ""
+++

View File

@ -4,7 +4,7 @@
widget = "pages" # Do not modify this line!
active = true # Activate this widget? true/false
weight = 20 # Order that this section will appear.
weight = 90 # Order that this section will appear.
title = "Recent Publications"
subtitle = ""

View File

@ -7,7 +7,7 @@ title = "Skills"
subtitle = ""
# Order that this section will appear in.
weight = 7
weight = 30
# Showcase personal skills or business features.
#

View File

@ -7,6 +7,5 @@ title = "Popular Topics"
subtitle = ""
# Order that this section will appear in.
weight = 65
weight = 120
+++

View File

@ -4,7 +4,7 @@
widget = "pages" # Do not modify this line!
active = true # Activate this widget? true/false
weight = 30 # Order that this section will appear.
weight = 70 # Order that this section will appear.
title = "Recent & Upcoming Talks"
subtitle = ""
@ -28,7 +28,9 @@ subtitle = ""
category = ""
publication_type = ""
exclude_featured = false
exclude_past = false
exclude_future = false
[design]
# Toggle between the various page layout types.
# 1 = List

View File

@ -1,41 +0,0 @@
+++
# A Demo section created with the Custom widget.
# Any elements can be added in the body: https://sourcethemes.com/academic/docs/writing-markdown-latex/
# Add more sections by duplicating this file and customizing to your requirements.
widget = "custom" # Do not modify this line!
active = true # Activate this widget? true/false
weight = 60 # Order that this section will appear.
# Note: a full width section format can be enabled by commenting out the `title` and `subtitle` with a `#`.
title = "Custom Section"
subtitle = ""
[design.background]
# Apply a background color, gradient, or image.
# Uncomment (by removing `#`) an option to apply it.
# Choose a light or dark text color by setting `text_color_light`.
# Any HTML color name or Hex value is valid.
# Background color.
# color = "navy"
# Background gradient.
gradient_start = "DeepSkyBlue"
gradient_end = "SkyBlue"
# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# Text color (true=light or false=dark).
text_color_light = true
+++
{{% alert note %}}
This is an example of using the *custom* widget to create your own homepage section.
This section also demonstrates how to apply the *background* option to create an *image parallax* effect. Backgrounds can be applied to any section.
{{% /alert %}}
To remove this section, either delete `content/home/teaching.md` or edit the front matter of the file to deactivate the widget by setting `active = false`.

View File

@ -33,6 +33,6 @@ rsync -av ../themes/academic/exampleSite/content/talk/_index.md ../content/talk/
sed -i '' -e 's/active = true/active = false/' ../content/home/hero.md
# Manual Steps:
# - content/home/project.md: Re-comment out project widget filters
# - content/home/teaching.md: Re-modify title and content & set gradient background instead of image
# - content/home/project.md: Re-comment out project filters
# - content/home/demo.md: Re-modify content & set gradient background instead of image
# - content/home/hero.md: Clear `hero_media` value & set gradient background instead of image

@ -1 +1 @@
Subproject commit 2e146eed9c08e8ea6ab104c634587d77ebd36b10
Subproject commit ed8f04ea2fe527fcc043c5f45929d39590eb1e56