From 8a4c5c482f997a28d47218bef3d2b6e0f6fde585 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 19 Feb 2019 18:09:28 +0000 Subject: [PATCH] upgrade content for v4.1 dev --- config/_default/config.toml | 7 ++- content/author/admin/_index.md | 7 +++ content/home/about.md | 2 +- content/home/hero.md | 62 +++++++++++++------- content/home/people.md | 20 +++++++ content/home/publications.md | 3 + content/home/{hero_carousel.md => slider.md} | 5 +- content/home/teaching.md | 24 +++++++- themes/academic | 2 +- 9 files changed, 104 insertions(+), 28 deletions(-) create mode 100644 content/home/people.md rename content/home/{hero_carousel.md => slider.md} (95%) diff --git a/config/_default/config.toml b/config/_default/config.toml index 44fec97..0419f27 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -39,7 +39,7 @@ defaultContentLanguageInSubdir = false paginate = 10 # Number of items per page in paginated lists. enableEmoji = true footnotereturnlinkcontents = "^" -ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"] +ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"] preserveTaxonomyNames = true [outputs] @@ -54,6 +54,11 @@ preserveTaxonomyNames = true latexDashes = true extensions = ["backslashLineBreak"] +[imaging] + resampleFilter = "lanczos" + quality = 90 + anchor = "smart" # Anchor for cropping. Options include Smart and Center. + # Taxonomies. [taxonomies] tag = "tags" diff --git a/content/author/admin/_index.md b/content/author/admin/_index.md index c1e2a99..6076d93 100644 --- a/content/author/admin/_index.md +++ b/content/author/admin/_index.md @@ -2,6 +2,9 @@ # Display name name = "Nelson Bighetti" +# Username (this should match the folder name) +authors = ["admin"] + # Is this the primary user of the site? superuser = true @@ -25,6 +28,10 @@ interests = [ "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" diff --git a/content/home/about.md b/content/home/about.md index cdc6a6d..cea8e1b 100644 --- a/content/home/about.md +++ b/content/home/about.md @@ -8,5 +8,5 @@ title = "Biography" # Choose the user profile to display # This should be the username of a profile in your `content/author/` folder. -author = "Admin" +author = "admin" +++ diff --git a/content/home/hero.md b/content/home/hero.md index f903b64..4028b59 100644 --- a/content/home/hero.md +++ b/content/home/hero.md @@ -8,28 +8,48 @@ title = "Academic" # Order that this section will appear in. weight = 3 -# Overlay a color or image (optional). -# Deactivate an option by commenting out the line, prefixing it with `#`. -[header] - overlay_color = "#666" # An HTML color value. - overlay_img = "headers/bubbles-wide.jpg" # Image path relative to your `static/img/` folder. - overlay_filter = 0.5 # Darken the image. Value in range 0-1. +# Hero image (optional). Enter filename of an image in the `static/img/` folder. +hero_media = "" -# Call to action button (optional). -# Activate the button by specifying a URL and button label below. -# Deactivate by commenting out parameters, prefixing lines with `#`. +# Background (optional). +# Choose from a background color, gradient, or image. +# Choose a dark or light text color, by setting `text_color_light`. +# Delete or comment out (by prefixing `#`) any unused options. +[background] + # Background color. + # color = "navy" + + # Background gradient. + gradient_start = "#4bb4e3" + gradient_end = "#2b94c3" + + # Background image. + # image = "" # 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 + +# Call to action links (optional). +# Display link(s) by specifying a URL and label below. Icon is optional for `[cta]`. +# Remove a link/note by deleting a cta/note block. [cta] - url = "./post/getting-started/" - label = ' Install Now' + url = "post/getting-started/" + label = "Get Started" + icon_pack = "fas" + icon = "download" + +[cta_alt] + url = "https://sourcethemes.com/academic/" + label = "View Documentation" + +# Note. An optional note to show underneath the links. +[cta_note] + label = 'Latest release ' +++ -The highly flexible website framework for Hugo with an extensible plugin mechanism. Create a beautifully simple site in under 10 minutes :rocket: -
- - Latest release - -
-
- Star -
- +**The Best Way to Create the Website You Want from Markdown (or RStudio/Jupyter)** + +Build **Anything** with Widgets + +Star diff --git a/content/home/people.md b/content/home/people.md new file mode 100644 index 0000000..fe7730d --- /dev/null +++ b/content/home/people.md @@ -0,0 +1,20 @@ ++++ +# People widget. +widget = "people" # Do not modify this line! +active = false # Activate this widget? true/false + +title = "People" +subtitle = "" + +# Order that this section will appear in. +weight = 68 + +# List user groups to display. +# Edit each user's `user_groups` to add them to one or more of these groups. +user_groups = ["Principal Investigators", + "Researchers", + "Grad Students", + "Administration", + "Visitors", + "Alumni"] ++++ diff --git a/content/home/publications.md b/content/home/publications.md index 27b91c3..ccfc558 100644 --- a/content/home/publications.md +++ b/content/home/publications.md @@ -35,3 +35,6 @@ publication_type = "-1" exclude_featured = false +++ +{{% alert note %}} +Quickly discover relevant content by [filtering publications]({{< ref "/publication/_index.md" >}}). +{{% /alert %}} diff --git a/content/home/hero_carousel.md b/content/home/slider.md similarity index 95% rename from content/home/hero_carousel.md rename to content/home/slider.md index e9b2398..0f1ca3d 100644 --- a/content/home/hero_carousel.md +++ b/content/home/slider.md @@ -1,6 +1,6 @@ +++ -# Hero Carousel widget. -widget = "hero_carousel" # Do not modify this line! +# Slider widget. +widget = "slider" # Do not modify this line! active = false # Activate this widget? true/false # Order that this section will appear in. @@ -52,5 +52,4 @@ height = "300px" overlay_color = "#333" # An HTML color value. overlay_img = "" # Image path relative to your `static/img/` folder. overlay_filter = 0.5 # Darken the image. Value in range 0-1. - +++ diff --git a/content/home/teaching.md b/content/home/teaching.md index 8250cb3..9175eea 100644 --- a/content/home/teaching.md +++ b/content/home/teaching.md @@ -12,8 +12,30 @@ subtitle = "" # Order that this section will appear in. weight = 60 +# Background (optional). +# Choose from a background color, gradient, or image. +# Choose a dark or light text color, by setting `text_color_light`. +# Delete or comment out (by prefixing `#`) any unused options. +[background] + # 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. -To remove this section, either delete `content/home/teaching.md` or edit the frontmatter of the file to deactivate the widget by setting `active = false`. +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/themes/academic b/themes/academic index 2838919..3ac394a 160000 --- a/themes/academic +++ b/themes/academic @@ -1 +1 @@ -Subproject commit 283891941513e0dcfc40027847eaed96242e9c57 +Subproject commit 3ac394a58c2a76bed802db4fe9360496816c293e