demo: update home/

This commit is contained in:
George Cushen
2021-01-23 20:47:55 +00:00
parent b437103cc5
commit 51248e2fa2
12 changed files with 59 additions and 83 deletions

View File

@@ -1,6 +1,6 @@
--- ---
# An instance of the Blank widget. # An instance of the Blank widget.
# Documentation: https://sourcethemes.com/academic/docs/page-builder/ # Documentation: https://wowchemy.com/docs/getting-started/page-builder/
widget: blank widget: blank
# Activate this widget? true/false # Activate this widget? true/false
@@ -12,32 +12,32 @@ headless: true
# Order that this section appears on the page. # Order that this section appears on the page.
weight: 15 weight: 15
title: Demos title: Hugo Academic Theme Demo
subtitle: subtitle:
design: design:
columns: "1" columns: "1"
background: background:
image: headers/bubbles-wide.jpg image: open-book.jpg
image_darken: 0.6 image_darken: 1.0
image_parallax: true image_parallax: true
image_position: center image_position: center
image_size: cover image_size: cover
text_color_light: true text_color_light: false
spacing: spacing:
padding: ["20px", "0", "20px", "0"] padding: ["20px", "0", "20px", "0"]
--- ---
Welcome to the demo of the **resumé template** for Academic. Welcome to the demo of the **academic resumé template** for Wowchemy, the Website Builder for Hugo.
[View more templates](https://sourcethemes.com/academic/templates/) for Academic. [Explore similar templates](https://wowchemy.com/templates/)
**Over 500,000 [Amazing Websites](https://sourcethemes.com/academic/) have Already Been Built with Academic** **Over 500,000 [Amazing Websites](https://wowchemy.com/) have Already Been Built with Wowchemy**
**[Join](https://sourcethemes.com/academic/docs/install/) the Most Empowered Hugo Community** **[Join](https://wowchemy.com/templates/) the Most Empowered Hugo Community**
{{% alert note %}} {{% callout 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/). This homepage section is an example of adding [elements](https://wowchemy.com/docs/content/writing-markdown-latex/) to the [*Blank* widget](https://wowchemy.com/docs/getting-started/page-builder/).
Backgrounds can be applied to any section. Here, the *background* option is set give an *image parallax* effect. Backgrounds can be applied to any section. Here, the *background* option is set give an *image parallax* effect.
{{% /alert %}} {{% /callout %}}

View File

@@ -1,12 +1,16 @@
+++ ---
# Gallery section using the Blank widget and Gallery element (shortcode). # An instance of the Blank widget with a Gallery page element.
widget = "blank" # See https://sourcethemes.com/academic/docs/page-builder/ # Documentation: https://wowchemy.com/docs/getting-started/page-builder/
headless = true # This file represents a page section. widget: blank
active = true # Activate this widget? true/false
weight = 66 # Order that this section will appear.
title = "Gallery" # This file represents a page section.
subtitle = "" headless: true
+++
# Order that this section appears on the page.
weight: 66
title: Gallery
subtitle:
---
{{< gallery >}} {{< gallery >}}

View File

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@@ -1,58 +1,27 @@
+++ ---
# Hero widget. widget: hero
widget = "hero" # See https://sourcethemes.com/academic/docs/page-builder/ headless: true
headless = true # This file represents a page section. weight: 10
active = true # Activate this widget? true/false title: Hugo Academic Starter
weight = 10 # Order that this section will appear. hero_media: hero-academic.png
cta:
label: '**Get Started**'
url: https://wowchemy.com/templates/
cta_alt:
label: Ask a question
url: https://discord.gg/z8wNYzb
cta_note:
label: >-
<a class="js-github-release" href="https://wowchemy.com/updates/" data-repo="gcushen/hugo-academic">Latest release<!-- V --></a><div style="text-shadow: none;"><a class="github-button" href="https://github.com/wowchemy/wowchemy-hugo-modules" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star Wowchemy site builder for Hugo">Star</a></div><div style="text-shadow: none;"><a class="github-button" href="https://github.com/wowchemy/starter-academic" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star the Academic template">Star</a></div>
design:
background:
gradient_end: '#1976d2'
gradient_start: '#004ba0'
text_color_light: true
advanced:
css_class: fullscreen
---
title = "Academic" **The FREE, Hugo-based open source website builder and template trusted by 500,000+ sites.**
# Hero image (optional). Enter filename of an image in the `static/media/` folder. **Build anything with widgets** - from landing pages, knowledge bases, and courses to academic resumés, conferences, and tech blogs.
hero_media = "hero-academic.png"
[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 = "#4bb4e3"
gradient_end = "#2b94c3"
# Background image.
# image = "" # Name of image in `static/media/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
# image_parallax = true # Use a fun parallax-like fixed background effect? true/false
# 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 = "https://sourcethemes.com/academic/docs/install/"
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 class="js-github-release" href="https://sourcethemes.com/academic/updates" data-repo="gcushen/hugo-academic">Latest release<!-- V --></a>'
+++
**The Best Way to Create the Website You Want from Markdown (or Jupyter/RStudio)**
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>

View File

@@ -260,19 +260,19 @@ renders as
### Callouts ### Callouts
Academic supports a [shortcode for callouts](https://sourcethemes.com/academic/docs/writing-markdown-latex/#alerts), also referred to as *asides*, *hints*, or *alerts*. By wrapping a paragraph in `{{%/* alert note */%}} ... {{%/* /alert */%}}`, it will render as an aside. Academic supports a [shortcode for callouts](https://wowchemy.com/docs/content/writing-markdown-latex/#callouts), also referred to as *asides*, *hints*, or *alerts*. By wrapping a paragraph in `{{%/* callout note */%}} ... {{%/* /callout */%}}`, it will render as an aside.
```markdown ```markdown
{{%/* alert note */%}} {{%/* callout note */%}}
A Markdown aside is useful for displaying notices, hints, or definitions to your readers. A Markdown aside is useful for displaying notices, hints, or definitions to your readers.
{{%/* /alert */%}} {{%/* /callout */%}}
``` ```
renders as renders as
{{% alert note %}} {{% callout note %}}
A Markdown aside is useful for displaying notices, hints, or definitions to your readers. A Markdown aside is useful for displaying notices, hints, or definitions to your readers.
{{% /alert %}} {{% /callout %}}
### Spoilers ### Spoilers

View File

@@ -0,0 +1,3 @@
{{ if eq hugo.Environment "production" }}
<script async defer src="https://buttons.github.io/buttons.js"></script>
{{end}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB