refactor: upgrade from Alert to Callout

This commit is contained in:
George Cushen 2020-10-01 18:09:58 +01:00
parent 68489423fc
commit 8a7cfe671c
3 changed files with 37 additions and 26 deletions

View file

@ -1,14 +1,14 @@
+++ +++
# A Demo section created with the Blank widget. # A Demo section created with the Blank widget.
# Any elements can be added in the body: https://sourcethemes.com/academic/docs/writing-markdown-latex/ # Any elements can be added in the body: https://wowchemy.com/docs/writing-markdown-latex/
# Add more sections by duplicating this file and customizing to your requirements. # Add more sections by duplicating this file and customizing to your requirements.
widget = "blank" # See https://sourcethemes.com/academic/docs/page-builder/ widget = "blank" # See https://wowchemy.com/docs/page-builder/
headless = true # This file represents a page section. headless = true # This file represents a page section.
active = true # Activate this widget? true/false active = true # Activate this widget? true/false
weight = 15 # Order that this section will appear. weight = 15 # Order that this section will appear.
title = "Academic Kickstart" title = "Academic Template"
subtitle = "" subtitle = ""
[design] [design]
@ -50,26 +50,37 @@ subtitle = ""
css_class = "" css_class = ""
+++ +++
Welcome to the **Academic Kickstart** template! ## 👋 Welcome to the Academic 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/). The Wowchemy **Academic Resumé Template** for Hugo empowers you to create your job-winning online resumé and showcase your academic publications.
For inspiration, check out [the Markdown files](https://sourcethemes.com/academic/docs/install/#demo-content) which power the [personal demo](https://academic-demo.netlify.app). The easiest way to publish your new site to the internet is with [Netlify](https://sourcethemes.com/academic/docs/deployment/). [Check out the latest demo](https://academic-demo.netlify.app) of what you'll get in less than 10 minutes, or [view the showcase](https://wowchemy.com/user-stories/).
- [View the documentation](https://sourcethemes.com/academic/docs/) [**Wowchemy**](https://wowchemy.com) makes it easy to create a beautiful website for free. Edit your site in Markdown, Jupyter, or RStudio (via Blogdown), generate it with Hugo, and deploy with GitHub or Netlify. Customize anything on your site with widgets, themes, and language packs.
- [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 %}} - 👉 [**Get Started**](https://wowchemy.com/docs/install/)
- 📚 [View the **documentation**](https://wowchemy.com/docs/)
- 💬 [Chat with the **Wowchemy community**](https://discord.gg/z8wNYzb) or [**Hugo community**](https://discourse.gohugo.io)
- 🐦 Twitter: [@wowchemy](https://twitter.com/wowchemy) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithWowchemy](https://twitter.com/search?q=(%23MadeWithWowchemy%20OR%20%23MadeWithAcademic)&src=typed_query)
- 💡 [Request a **feature** or report a **bug** for _Wowchemy_](https://github.com/wowchemy/wowchemy-hugo-modules/issues)
- ⬆️ **Updating Wowchemy?** View the [Update Guide](https://wowchemy.com/docs/update/) and [Release Notes](https://wowchemy.com/updates/)
## Crowd-funded open-source software
To help us develop this template and software sustainably under the MIT license, we ask all individuals and businesses that use it to help support its ongoing maintenance and development via sponsorship.
### [❤️ Click here to unlock rewards with sponsorship](https://wowchemy.com/plans/)
## You're looking at a Wowchemy _widget_
{{% 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://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*. 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`.** **To remove this section, delete `content/home/demo.md`.**
{{% /alert %}} {{% /callout %}}
## Get inspired
[Check out the Markdown files](https://github.com/wowchemy/starter-academic/tree/master/exampleSite) which power the [Academic Demo](https://academic-demo.netlify.app), or [view the showcase](https://wowchemy.com/user-stories/).

View file

@ -1,11 +1,11 @@
+++ +++
# Hero widget. # Hero widget.
widget = "hero" # See https://sourcethemes.com/academic/docs/page-builder/ widget = "hero" # See https://wowchemy.com/docs/page-builder/
headless = true # This file represents a page section. headless = true # This file represents a page section.
active = false # Activate this widget? true/false active = false # Activate this widget? true/false
weight = 10 # Order that this section will appear. weight = 10 # Order that this section will appear.
title = "Academic" title = "Academic Template"
# Hero image (optional). Enter filename of an image in the `static/media/` folder. # Hero image (optional). Enter filename of an image in the `static/media/` folder.
hero_media = "hero-academic.png" hero_media = "hero-academic.png"
@ -37,22 +37,22 @@ hero_media = "hero-academic.png"
# Display link(s) by specifying a URL and label below. Icon is optional for `[cta]`. # 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. # Remove a link/note by deleting a cta/note block.
[cta] [cta]
url = "https://sourcethemes.com/academic/docs/install/" url = "https://wowchemy.com/docs/install/"
label = "Get Started" label = "Get Started"
icon_pack = "fas" icon_pack = "fas"
icon = "download" icon = "download"
[cta_alt] [cta_alt]
url = "https://sourcethemes.com/academic/" url = "https://wowchemy.com"
label = "View Documentation" label = "View Documentation"
# Note. An optional note to show underneath the links. # Note. An optional note to show underneath the links.
[cta_note] [cta_note]
label = '<a class="js-github-release" href="https://sourcethemes.com/academic/updates" data-repo="gcushen/hugo-academic">Latest release<!-- V --></a>' label = '<a class="js-github-release" href="https://wowchemy.com/updates" data-repo="wowchemy/wowchemy-hugo-modules">Latest release<!-- V --></a>'
+++ +++
**The Best Way to Create the Website You Want from Markdown (or Jupyter/RStudio)** **The Best Way to Create the Website You Want from Markdown (or Jupyter/RStudio)**
Build **Anything** with Widgets 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> <span 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 this on GitHub">Star</a><script async defer src="https://buttons.github.io/buttons.js"></script></span>

View file

@ -67,6 +67,6 @@ subtitle = ""
css_class = "" css_class = ""
+++ +++
{{% alert note %}} {{% callout note %}}
Quickly discover relevant content by [filtering publications]({{< ref "/publication/_index.md" >}}). Quickly discover relevant content by [filtering publications](./publication/).
{{% /alert %}} {{% /callout %}}