diff options
author | George Cushen <gcushen@users.noreply.github.com> | 2019-02-19 21:09:28 +0300 |
---|---|---|
committer | George Cushen <gcushen@users.noreply.github.com> | 2019-02-19 21:09:28 +0300 |
commit | 8a4c5c482f997a28d47218bef3d2b6e0f6fde585 (patch) | |
tree | f977a42293e70b20a0a59062b8a1f063b1882368 /content/home | |
parent | c50d008881cf02326ed1a767f94b50bc9c36b4fc (diff) |
upgrade content for v4.1 dev
Diffstat (limited to 'content/home')
-rw-r--r-- | content/home/about.md | 2 | ||||
-rw-r--r-- | content/home/hero.md | 64 | ||||
-rw-r--r-- | content/home/people.md | 20 | ||||
-rw-r--r-- | content/home/publications.md | 3 | ||||
-rw-r--r-- | content/home/slider.md (renamed from content/home/hero_carousel.md) | 5 | ||||
-rw-r--r-- | content/home/teaching.md | 24 |
6 files changed, 91 insertions, 27 deletions
diff --git a/content/home/about.md b/content/home/about.md index cdc6a6d3..cea8e1b7 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 f903b64d..4028b595 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. - -# Call to action button (optional). -# Activate the button by specifying a URL and button label below. -# Deactivate by commenting out parameters, prefixing lines with `#`. +# Hero image (optional). Enter filename of an image in the `static/img/` folder. +hero_media = "" + +# 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 = '<i class="fas fa-download"></i> 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 = '<a id="academic-release" href="https://sourcethemes.com/academic/updates" data-repo="gcushen/hugo-academic">Latest release <!-- V --></a>' +++ -The highly flexible website framework for Hugo with an extensible plugin mechanism. Create a beautifully simple site in under 10 minutes :rocket: -<div style="margin-top: -0.5rem;"> - <a id="academic-release" href="https://sourcethemes.com/academic/updates" data-repo="gcushen/hugo-academic"> - Latest release <!-- V --> - </a> -</div> -<div class="mt-3"> - <a class="github-button" href="https://github.com/gcushen/hugo-academic" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star this on GitHub">Star</a> -</div> -<script async defer src="https://buttons.github.io/buttons.js"></script> +**The Best Way to Create the Website You Want from Markdown (or RStudio/Jupyter)** + +Build **Anything** with Widgets + +<span style="text-shadow: none;"><a class="github-button" href="https://github.com/gcushen/hugo-academic" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star this on GitHub">Star</a><script async defer src="https://buttons.github.io/buttons.js"></script></span> diff --git a/content/home/people.md b/content/home/people.md new file mode 100644 index 00000000..fe7730d2 --- /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 27b91c3c..ccfc5588 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 index e9b23986..0f1ca3d9 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 8250cb38..9175eeab 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`. |