Skip to content

Commit

Permalink
theme: upgrade to latest v4.1 dev (talk front matter upgraded)
Browse files Browse the repository at this point in the history
Also:

- Project and Custom widgets renamed (upgraded)
- Rearranges section positions and adds demo section to introduce
the template and help the user get started
  • Loading branch information
gcushen committed Feb 27, 2019
1 parent 96e3f9b commit 8296df5
Show file tree
Hide file tree
Showing 18 changed files with 164 additions and 114 deletions.
22 changes: 11 additions & 11 deletions config/_default/menus.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 2 additions & 3 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 `#`.
Expand Down
2 changes: 1 addition & 1 deletion content/home/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion content/home/accomplishments.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion content/home/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
68 changes: 68 additions & 0 deletions content/home/demo.md
Original file line number Diff line number Diff line change
@@ -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 %}}
2 changes: 1 addition & 1 deletion content/home/experience.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
2 changes: 1 addition & 1 deletion content/home/hero.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion content/home/posts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
109 changes: 66 additions & 43 deletions content/home/projects.md
Original file line number Diff line number Diff line change
@@ -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.
# Display content from the following folder.
# For example, `folder = "project"` displays content from `content/project/`.
folder = "project"

# View.
# 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

# 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"
[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"

[design]
# Choose how many columns the section has. Valid values: 1 or 2.
columns = "2"

# Toggle between the various page layout types.
# 1 = List
# 3 = Card
# 5 = Showcase
view = 3

# For Showcase view, flip alternate rows?
flip_alt_rows = false

[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 = ""
+++

2 changes: 1 addition & 1 deletion content/home/publications.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
2 changes: 1 addition & 1 deletion content/home/skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title = "Skills"
subtitle = ""

# Order that this section will appear in.
weight = 7
weight = 30

# Showcase personal skills or business features.
#
Expand Down
3 changes: 1 addition & 2 deletions content/home/tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ title = "Popular Topics"
subtitle = ""

# Order that this section will appear in.
weight = 65

weight = 120
+++
6 changes: 4 additions & 2 deletions content/home/talks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand All @@ -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
Expand Down
Loading

0 comments on commit 8296df5

Please sign in to comment.