From 8296df5067a2eecea89c0adbb141c05a5e1f422c Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 27 Feb 2019 22:34:04 +0000 Subject: [PATCH] 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 --- config/_default/menus.toml | 22 ++-- config/_default/params.toml | 5 +- content/home/about.md | 2 +- content/home/accomplishments.md | 2 +- content/home/contact.md | 2 +- content/home/demo.md | 68 ++++++++++++ content/home/experience.md | 2 +- .../{publications_featured.md => featured.md} | 2 +- content/home/hero.md | 2 +- content/home/posts.md | 2 +- content/home/projects.md | 101 +++++++++++------- content/home/publications.md | 2 +- content/home/skills.md | 2 +- content/home/tags.md | 3 +- content/home/talks.md | 6 +- content/home/teaching.md | 41 ------- scripts/init_kickstart.sh | 4 +- themes/academic | 2 +- 18 files changed, 160 insertions(+), 110 deletions(-) create mode 100644 content/home/demo.md rename content/home/{publications_featured.md => featured.md} (96%) delete mode 100644 content/home/teaching.md diff --git a/config/_default/menus.toml b/config/_default/menus.toml index ae68c22..81883c8 100644 --- a/config/_default/menus.toml +++ b/config/_default/menus.toml @@ -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 diff --git a/config/_default/params.toml b/config/_default/params.toml index b75eb70..1ce8ac3 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -56,11 +56,10 @@ address = "Building 1 Room 1, Stanford University, California, 90210, USA" # Office hours: use `
` to insert a line break, or set to "" to remove office hours office_hours = """Monday 10:00 to 13:00
- Wednesday 09:00 to 10:00
- 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 `#`. diff --git a/content/home/about.md b/content/home/about.md index cea8e1b..b396f2e 100644 --- a/content/home/about.md +++ b/content/home/about.md @@ -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" diff --git a/content/home/accomplishments.md b/content/home/accomplishments.md index 0c8463b..78924b1 100644 --- a/content/home/accomplishments.md +++ b/content/home/accomplishments.md @@ -7,7 +7,7 @@ title = "Accomplish­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 diff --git a/content/home/contact.md b/content/home/contact.md index bc63b2a..a34f824 100644 --- a/content/home/contact.md +++ b/content/home/contact.md @@ -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 diff --git a/content/home/demo.md b/content/home/demo.md new file mode 100644 index 0000000..adca052 --- /dev/null +++ b/content/home/demo.md @@ -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 %}} diff --git a/content/home/experience.md b/content/home/experience.md index d28a47e..bc959f9 100644 --- a/content/home/experience.md +++ b/content/home/experience.md @@ -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 diff --git a/content/home/publications_featured.md b/content/home/featured.md similarity index 96% rename from content/home/publications_featured.md rename to content/home/featured.md index 669eb0c..06d588f 100644 --- a/content/home/publications_featured.md +++ b/content/home/featured.md @@ -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 = "" diff --git a/content/home/hero.md b/content/home/hero.md index 7b50526..3e15fd2 100644 --- a/content/home/hero.md +++ b/content/home/hero.md @@ -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" diff --git a/content/home/posts.md b/content/home/posts.md index 5ce9af9..1d0fab8 100644 --- a/content/home/posts.md +++ b/content/home/posts.md @@ -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 = "" diff --git a/content/home/projects.md b/content/home/projects.md index 70929a4..e1d7aa5 100644 --- a/content/home/projects.md +++ b/content/home/projects.md @@ -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 = "" +++ diff --git a/content/home/publications.md b/content/home/publications.md index 3f4427c..1963062 100644 --- a/content/home/publications.md +++ b/content/home/publications.md @@ -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 = "" diff --git a/content/home/skills.md b/content/home/skills.md index 015ac24..0e71d2c 100644 --- a/content/home/skills.md +++ b/content/home/skills.md @@ -7,7 +7,7 @@ title = "Skills" subtitle = "" # Order that this section will appear in. -weight = 7 +weight = 30 # Showcase personal skills or business features. # diff --git a/content/home/tags.md b/content/home/tags.md index 5666605..d0d7d22 100644 --- a/content/home/tags.md +++ b/content/home/tags.md @@ -7,6 +7,5 @@ title = "Popular Topics" subtitle = "" # Order that this section will appear in. -weight = 65 - +weight = 120 +++ diff --git a/content/home/talks.md b/content/home/talks.md index 8107440..eeed17d 100644 --- a/content/home/talks.md +++ b/content/home/talks.md @@ -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 diff --git a/content/home/teaching.md b/content/home/teaching.md deleted file mode 100644 index 42440fa..0000000 --- a/content/home/teaching.md +++ /dev/null @@ -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`. diff --git a/scripts/init_kickstart.sh b/scripts/init_kickstart.sh index 5dc501d..20053df 100644 --- a/scripts/init_kickstart.sh +++ b/scripts/init_kickstart.sh @@ -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 diff --git a/themes/academic b/themes/academic index 2e146ee..ed8f04e 160000 --- a/themes/academic +++ b/themes/academic @@ -1 +1 @@ -Subproject commit 2e146eed9c08e8ea6ab104c634587d77ebd36b10 +Subproject commit ed8f04ea2fe527fcc043c5f45929d39590eb1e56