Parcourir la source

Merge https://github.com/wowchemy/wowchemy-hugo-modules

Xi Ruoyao il y a 3 ans
Parent
commit
e5a22e2a5d
41 fichiers modifiés avec 290 ajouts et 111 suppressions
  1. 1 1
      .github/ISSUE_TEMPLATE/bug-report.md
  2. 1 1
      .github/ISSUE_TEMPLATE/config.yml
  3. 7 7
      .github/contributing.md
  4. 1 1
      .github/support.md
  5. 12 12
      README.md
  6. 2 2
      package.json
  7. 1 1
      scripts/gen_demo_resources.sh
  8. 4 0
      scripts/rm_hugo_cache.sh
  9. 1 1
      scripts/view_demo.sh
  10. 1 0
      test/content/admin/index.md
  11. 1 1
      test/package.json
  12. 12 13
      wowchemy-cms/README.md
  13. 1 1
      wowchemy/assets/js/algolia-search.js
  14. 1 1
      wowchemy/assets/js/wowchemy-animation.js
  15. 1 1
      wowchemy/assets/js/wowchemy-init.js
  16. 1 1
      wowchemy/assets/js/wowchemy-search.js
  17. 1 1
      wowchemy/assets/js/wowchemy-theming.js
  18. 1 1
      wowchemy/assets/js/wowchemy-utils.js
  19. 1 1
      wowchemy/assets/js/wowchemy.js
  20. 4 2
      wowchemy/assets/scss/wowchemy/layouts/_book.scss
  21. 28 0
      wowchemy/assets/scss/wowchemy/widgets/_about.scss
  22. 1 1
      wowchemy/assets/scss/wowchemy/wowchemy.scss
  23. 1 1
      wowchemy/config.yaml
  24. 2 2
      wowchemy/data/assets.toml
  25. 1 1
      wowchemy/data/fonts/classic.toml
  26. 15 15
      wowchemy/i18n/zh-Hant.yaml
  27. 0 0
      wowchemy/images/screenshot.png
  28. 0 0
      wowchemy/images/tn.png
  29. 1 1
      wowchemy/layouts/_default/baseof.html
  30. 30 0
      wowchemy/layouts/_default/sitemap.xml
  31. 6 2
      wowchemy/layouts/partials/navbar.html
  32. 2 2
      wowchemy/layouts/partials/page_header.html
  33. 1 1
      wowchemy/layouts/partials/page_links.html
  34. 2 2
      wowchemy/layouts/partials/share.html
  35. 1 1
      wowchemy/layouts/partials/site_footer.html
  36. 36 27
      wowchemy/layouts/partials/site_head.html
  37. 2 2
      wowchemy/layouts/partials/site_js.html
  38. 1 1
      wowchemy/layouts/partials/widget_page.html
  39. 66 0
      wowchemy/layouts/partials/widgets/about.avatar.html
  40. 36 0
      wowchemy/layouts/shortcodes/table.html
  41. 3 3
      wowchemy/theme.toml

+ 1 - 1
.github/ISSUE_TEMPLATE/bug-report.md

@@ -12,7 +12,7 @@ We use GitHub only for bug reports and feature requests - it's our project manag
 
 🚑 For **help** and **questions**, solve common issues with the [Troubleshooting Guide](https://wowchemy.com/docs/guide/troubleshooting/).
 
-For other issues, search if your question has already been asked on the community **[chat](https://discord.gg/z8wNYzb)** and **[forum](https://github.com/wowchemy/wowchemy-hugo-modules/discussions)**, and if not, consider posting a new thread there.
+For other issues, search if your question has already been asked on the community **[chat](https://discord.gg/z8wNYzb)** and **[forum](https://github.com/wowchemy/wowchemy-hugo-themes/discussions)**, and if not, consider posting a new thread there.
 
 Also, you can search and browse the extensive [Wowchemy](https://wowchemy.com/docs/) and [Hugo](https://gohugo.io/documentation/) **documentation**.
 

+ 1 - 1
.github/ISSUE_TEMPLATE/config.yml

@@ -4,7 +4,7 @@ contact_links:
     url: https://wowchemy.com/docs/faq/
     about: Solve common issues fast.
   - name: Questions and Discussions
-    url: https://github.com/wowchemy/wowchemy-hugo-modules/discussions
+    url: https://github.com/wowchemy/wowchemy-hugo-themes/discussions
     about: Please ask and answer questions here.
   - name: Chat with the Community
     url: https://discord.gg/z8wNYzb

+ 7 - 7
.github/contributing.md

@@ -12,13 +12,13 @@ Join the **Contributing** channel on the **[community Discord](https://discord.g
 
 Learn [how to contribute code on Github](https://codeburst.io/a-step-by-step-guide-to-making-your-first-github-contribution-5302260a2940).
 
-If you're a developer looking to contribute, but you're not sure where to begin, check out the [good first issue](https://github.com/wowchemy/wowchemy-hugo-modules/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) label on Github, which contains small tasks that have been specifically flagged as being friendly to new contributors.
+If you're a developer looking to contribute, but you're not sure where to begin, check out the [good first issue](https://github.com/wowchemy/wowchemy-hugo-themes/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) label on Github, which contains small tasks that have been specifically flagged as being friendly to new contributors.
 
-After that, if you're looking for something a little more challenging to sink your teeth into, there's a broader [help wanted](https://github.com/wowchemy/wowchemy-hugo-modules/labels/help%20wanted) label encompassing issues which need some love.
+After that, if you're looking for something a little more challenging to sink your teeth into, there's a broader [help wanted](https://github.com/wowchemy/wowchemy-hugo-themes/labels/help%20wanted) label encompassing issues which need some love.
 
-If you have a straightforward bug fix or improvement, feel free to contribute it in a [Pull Request](https://github.com/wowchemy/wowchemy-hugo-modules/pulls) for the community to review.
+If you have a straightforward bug fix or improvement, feel free to contribute it in a [Pull Request](https://github.com/wowchemy/wowchemy-hugo-themes/pulls) for the community to review.
 
-If you have an idea for a new feature, please start by [searching the issues](https://github.com/wowchemy/wowchemy-hugo-modules/issues) to check that the feature has not already been suggested and then suggest it by [opening a new issue](https://github.com/wowchemy/wowchemy-hugo-modules/issues/new/choose), as adding new features to Wowchemy first requires some analysis around the design and spec.
+If you have an idea for a new feature, please start by [searching the issues](https://github.com/wowchemy/wowchemy-hugo-themes/issues) to check that the feature has not already been suggested and then suggest it by [opening a new issue](https://github.com/wowchemy/wowchemy-hugo-themes/issues/new/choose), as adding new features to Wowchemy first requires some analysis around the design and spec.
 
 Code linting and formatting form part of the Continuous Integration process to help catch bugs and code issues in contributions.
 
@@ -40,7 +40,7 @@ yarn run format
 
 ### Contribute a language pack
 
-To contribute a **new language pack** or an improvement to a language pack, refer to the [language pack guide](https://wowchemy.com/docs/language/#create-or-modify-a-language-pack). Once created, [fork Wowchemy Hugo Modules](https://github.com/wowchemy/wowchemy-hugo-modules), place your language pack in `wowchemy/i18n/`, add the name of the language to `wowchemy/data/i18n/language.yaml`, and open a Pull Request on Github with these two files.
+To contribute a **new language pack** or an improvement to a language pack, refer to the [language pack guide](https://wowchemy.com/docs/language/#create-or-modify-a-language-pack). Once created, [fork Wowchemy Hugo Modules](https://github.com/wowchemy/wowchemy-hugo-themes), place your language pack in `wowchemy/i18n/`, add the name of the language to `wowchemy/data/i18n/language.yaml`, and open a Pull Request on Github with these two files.
 
 ### Contribute a theme pack
 
@@ -65,8 +65,8 @@ To help us develop this free software sustainably under the open source license,
 
 If you're not a developer there are still plenty of ways that you can help. We always need help with:
 
-- Helping the Wowchemy community on the [chat](https://discord.gg/z8wNYzb) and [forum](https://github.com/wowchemy/wowchemy-hugo-modules/discussions)
-- Investigating and reviewing open [Issues](https://github.com/wowchemy/wowchemy-hugo-modules/issues) and [Pull Requests](https://github.com/wowchemy/wowchemy-hugo-modules/pulls)
+- Helping the Wowchemy community on the [chat](https://discord.gg/z8wNYzb) and [forum](https://github.com/wowchemy/wowchemy-hugo-themes/discussions)
+- Investigating and reviewing open [Issues](https://github.com/wowchemy/wowchemy-hugo-themes/issues) and [Pull Requests](https://github.com/wowchemy/wowchemy-hugo-themes/pulls)
   - Give a thumbs up 👍 to upvote a feature request you would like to use
 - Improving the [documentation](https://wowchemy.com/docs/) and writing tutorials
   - Just click the _Edit_ button at the bottom of pages or open an issue with your proposed improvement

+ 1 - 1
.github/support.md

@@ -2,7 +2,7 @@
 
 🚑 For **help** and **questions**, solve common issues with the [**Troubleshooting Guide**](https://wowchemy.com/docs/guide/troubleshooting/).
 
-For other issues, search if your question has already been asked on the community **[chat](https://discord.gg/z8wNYzb)** and **[forum](https://github.com/wowchemy/wowchemy-hugo-modules/discussions)**, and if not, consider posting a new thread there.
+For other issues, search if your question has already been asked on the community **[chat](https://discord.gg/z8wNYzb)** and **[forum](https://github.com/wowchemy/wowchemy-hugo-themes/discussions)**, and if not, consider posting a new thread there.
 
 Please **_do not_** raise an issue on GitHub.
 

+ 12 - 12
README.md

@@ -1,6 +1,6 @@
 [中文](https://wowchemy.com/zh/)
 
-<p align="center"><a href="https://wowchemy.com/templates/" target="_blank" rel="noopener"><img src="https://wowchemy.com/media/sharing.png" alt="Wowchemy Website Builder"></a></p>
+<p align="center"><a href="https://wowchemy.com/hugo-themes/" target="_blank" rel="noopener"><img src="https://wowchemy.com/media/sharing.png" alt="Wowchemy Website Builder"></a></p>
 
 # [Wowchemy](https://wowchemy.com): the website builder for [Hugo](https://gohugo.io)
 
@@ -12,13 +12,13 @@
 
 🛋 **3. Write from your sofa or on the go with the integrated open source Content Management System (CMS)**
 
-[Check out the latest **demos**](https://wowchemy.com/templates/) of what you'll get in less than 10 minutes, or [get **inspired**](https://wowchemy.com/user-stories/) by user stories.
+[Check out the latest **demos**](https://wowchemy.com/hugo-themes/) of what you'll get in less than 10 minutes, or [get **inspired**](https://wowchemy.com/user-stories/) by user stories.
 
-- 👉 [**Get Started**](https://wowchemy.com/templates/)
+- 👉 [**Get Started**](https://wowchemy.com/hugo-themes/)
 - 📚 [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=%28%23MadeWithWowchemy%20OR%20%23MadeWithAcademic%29&src=typed_query)
-- 💡 [Request a **feature** or report a **bug** for _Wowchemy_](https://github.com/wowchemy/wowchemy-hugo-modules/issues)
+- 💡 [Request a **feature** or report a **bug** for _Wowchemy_](https://github.com/wowchemy/wowchemy-hugo-themes/issues)
 - ⬆️ **Updating Wowchemy?** View the [Update Guide](https://wowchemy.com/docs/update/) and [Release Notes](https://wowchemy.com/updates/)
 
 ## Crowd-funded open-source software
@@ -34,14 +34,14 @@ To help us develop this template and software sustainably under the MIT license,
 
 ## Features
 
-[![Screenshot](https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/main/academic.png)](https://wowchemy.com)
+[![Screenshot](https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-themes/main/academic.png)](https://wowchemy.com)
 
 **Key features:**
 
 - **Page builder** - Create _anything_ with [**widgets**](https://wowchemy.com/docs/page-builder/) and [**elements**](https://wowchemy.com/docs/content/writing-markdown-latex/)
 - **Edit any type of content** - Blog posts, publications, talks, slides, projects, and more!
 - **Create content** in [**Markdown**](https://wowchemy.com/docs/writing-markdown-latex/), [**Jupyter**](https://wowchemy.com/docs/import/jupyter/), or [**RStudio**](https://wowchemy.com/docs/install-locally/)
-- **Plugin System** - Fully customizable [**color** and **font themes**](https://wowchemy.com/templates/)
+- **Plugin System** - Fully customizable [**color** and **font themes**](https://wowchemy.com/hugo-themes/)
 - **Display Code and Math** - Code highlighting and [LaTeX math](https://en.wikibooks.org/wiki/LaTeX/Mathematics) supported
 - **Integrations** - [Google Analytics](https://analytics.google.com), [Disqus commenting](https://disqus.com), Maps, Contact Forms, and more!
 - **Beautiful Site** - Simple and refreshing one page design
@@ -56,13 +56,13 @@ To help us develop this template and software sustainably under the MIT license,
 
 ## Themes
 
-Wowchemy comes with **automatic day (light) and night (dark) mode** built-in. Alternatively, click the moon icon in the top right of one of the [Demos](https://wowchemy.com/templates/) to set your preferred mode!
+Wowchemy comes with **automatic day (light) and night (dark) mode** built-in. Alternatively, click the moon icon in the top right of one of the [Demos](https://wowchemy.com/hugo-themes/) to set your preferred mode!
 
 Choose a stunning theme for your site and [customize it](https://wowchemy.com/docs/customization/#custom-theme) to your liking:
 
-[![Themes](https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/main/themes.png)](https://wowchemy.com/templates/)
+[![Themes](https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-themes/main/themes.png)](https://wowchemy.com/hugo-themes/)
 
-[Browse more templates and themes...](https://wowchemy.com/templates/)
+[Browse more templates and themes...](https://wowchemy.com/hugo-themes/)
 
 ## The Future of Technical Content Writing
 
@@ -70,12 +70,12 @@ Choose a stunning theme for your site and [customize it](https://wowchemy.com/do
 
 ## Join the community
 
-Feel free to _star_ the project on [Github](https://github.com/wowchemy/wowchemy-hugo-modules), [join the community](https://discord.gg/z8wNYzb) on Discord, and follow [@wowchemy](https://twitter.com/wowchemy) on Twitter to be the first to hear about new features.
+Feel free to [_star_ the project on Github](https://github.com/wowchemy/wowchemy-hugo-themes), [join the community](https://discord.gg/z8wNYzb) on Discord, and follow [@wowchemy](https://twitter.com/wowchemy) on Twitter to be the first to hear about new features.
 
 ## License
 
 Copyright 2016-present [George Cushen](https://georgecushen.com).
 
-Released under the [MIT](https://github.com/wowchemy/wowchemy-hugo-modules/blob/main/LICENSE.md) license.
+The [Wowchemy Hugo Themes](https://github.com/wowchemy/wowchemy-hugo-themes/) repository is released under the [MIT](https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/LICENSE.md) license.
 
-[![Analytics](https://ga-beacon.appspot.com/UA-78646709-2/wowchemy-hugo-modules/readme?pixel)](https://github.com/igrigorik/ga-beacon)
+[![Analytics](https://ga-beacon.appspot.com/UA-78646709-2/wowchemy-hugo-themes/readme?pixel)](https://github.com/igrigorik/ga-beacon)

+ 2 - 2
package.json

@@ -5,12 +5,12 @@
   "author": "George Cushen",
   "license": "MIT",
   "bugs": {
-    "url": "https://github.com/wowchemy/wowchemy-hugo-modules/issues"
+    "url": "https://github.com/wowchemy/wowchemy-hugo-themes/issues"
   },
   "homepage": "https://wowchemy.com",
   "repository": {
     "type": "git",
-    "url": "git+https://github.com/wowchemy/wowchemy-hugo-modules.git"
+    "url": "git+https://github.com/wowchemy/wowchemy-hugo-themes.git"
   },
   "main": "index.js",
   "dependencies": {

+ 1 - 1
scripts/gen_demo_resources.sh

@@ -2,4 +2,4 @@
 
 # Generate preprocessed resources for demo site whilst also removing disused resources.
 # Run this script from the root Wowchemy dir.
-HUGO_THEME=wowchemy-hugo-modules hugo --source exampleSite --themesDir ../../ --gc
+HUGO_THEME=wowchemy-hugo-themes hugo --source exampleSite --themesDir ../../ --gc

+ 4 - 0
scripts/rm_hugo_cache.sh

@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+# Clear Hugo's cache on MacOS (assumes default path)
+sudo rm -rf $TMPDIR/hugo_cache/

+ 1 - 1
scripts/view_demo.sh

@@ -2,7 +2,7 @@
 
 # View the demo site on any local devices by binding the local IP on port 1315.
 # Run this script from the root Wowchemy dir.
-HUGO_THEME=wowchemy-hugo-modules hugo \
+HUGO_THEME=wowchemy-hugo-themes hugo \
 --source exampleSite --themesDir ../../ \
 --bind=0.0.0.0 -p 1315 --baseURL=http://0.0.0.0:1315 \
 --i18n-warnings --minify -e "development" \

+ 1 - 0
test/content/admin/index.md

@@ -1,6 +1,7 @@
 ---
 # Generate Wowchemy CMS
 type: wowchemycms
+private: true
 outputs:
   - wowchemycms_config
   - HTML

+ 1 - 1
test/package.json

@@ -3,7 +3,7 @@
   "version": "0.0.1",
   "description": "Wowchemy Test Build",
   "main": "",
-  "repository": "https://github.com/wowchemy/wowchemy-hugo-modules",
+  "repository": "https://github.com/wowchemy/wowchemy-hugo-themes",
   "author": "George Cushen",
   "license": "MIT",
   "private": true,

+ 12 - 13
wowchemy-cms/README.md

@@ -6,15 +6,13 @@ Built upon the open source [Netlify CMS](https://www.netlifycms.org/) and [Netli
 
 ## Install
 
-1. Edit `config/_default/config.toml` to install the `wowchemy-cms` Hugo Module so that you have something like:
-
-   ```toml
-   [module]
-     # Any existing modules here...
-     [[module.imports]]
-       path = "github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms"
-     [[module.imports]]
-       path = "github.com/wowchemy/wowchemy-hugo-modules/wowchemy"
+1. Edit `config/_default/config.yaml` to install the `wowchemy-cms` Hugo Module so that you have something like:
+
+   ```yaml
+   module:
+     imports:
+       - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5
+       - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5
    ```
 
 2. Create a `content/admin/index.md` file containing:
@@ -22,6 +20,7 @@ Built upon the open source [Netlify CMS](https://www.netlifycms.org/) and [Netli
    ```yaml
    ---
    type: wowchemycms
+   private: true
    outputs:
      - wowchemycms_config
      - HTML
@@ -29,9 +28,9 @@ Built upon the open source [Netlify CMS](https://www.netlifycms.org/) and [Netli
 
    ```
 
-3. (Optional) If your Git repository's branch is **not** `main`, define it in `config/_default/params.toml`:
+3. (Optional) If your Git repository's branch is **not** `main`, define it in `config/_default/params.yaml`:
 
-   ```toml
-   [cms]
-     branch = "master"
+   ```yaml
+   cms:
+     branch: master
    ```

+ 1 - 1
wowchemy/assets/js/algolia-search.js

@@ -1,6 +1,6 @@
 /*************************************************
  *  Wowchemy
- *  https://github.com/wowchemy/wowchemy-hugo-modules
+ *  https://github.com/wowchemy/wowchemy-hugo-themes
  *
  *  Algolia based search algorithm.
  **************************************************/

+ 1 - 1
wowchemy/assets/js/wowchemy-animation.js

@@ -1,6 +1,6 @@
 /*************************************************
  *  Wowchemy
- *  https://github.com/wowchemy/wowchemy-hugo-modules
+ *  https://github.com/wowchemy/wowchemy-hugo-themes
  *
  *  Wowchemy Animation
  **************************************************/

+ 1 - 1
wowchemy/assets/js/wowchemy-init.js

@@ -1,6 +1,6 @@
 /*************************************************
  *  Wowchemy
- *  https://github.com/wowchemy/wowchemy-hugo-modules
+ *  https://github.com/wowchemy/wowchemy-hugo-themes
  *
  *  Wowchemy Initialization
  **************************************************/

+ 1 - 1
wowchemy/assets/js/wowchemy-search.js

@@ -1,6 +1,6 @@
 /*************************************************
  *  Wowchemy
- *  https://github.com/wowchemy/wowchemy-hugo-modules
+ *  https://github.com/wowchemy/wowchemy-hugo-themes
  *
  *  In-built Fuse based search algorithm.
  **************************************************/

+ 1 - 1
wowchemy/assets/js/wowchemy-theming.js

@@ -1,6 +1,6 @@
 /*************************************************
  *  Wowchemy
- *  https://github.com/wowchemy/wowchemy-hugo-modules
+ *  https://github.com/wowchemy/wowchemy-hugo-themes
  *
  *  Wowchemy Theming System
  *  Supported Modes: {0: Light, 1: Dark, 2: Auto}

+ 1 - 1
wowchemy/assets/js/wowchemy-utils.js

@@ -1,6 +1,6 @@
 /*************************************************
  *  Wowchemy
- *  https://github.com/wowchemy/wowchemy-hugo-modules
+ *  https://github.com/wowchemy/wowchemy-hugo-themes
  *
  *  Wowchemy Utilities
  **************************************************/

+ 1 - 1
wowchemy/assets/js/wowchemy.js

@@ -1,6 +1,6 @@
 /*************************************************
  *  Wowchemy
- *  https://github.com/wowchemy/wowchemy-hugo-modules
+ *  https://github.com/wowchemy/wowchemy-hugo-themes
  *
  *  Core JS functions and initialization.
  **************************************************/

+ 4 - 2
wowchemy/assets/scss/wowchemy/layouts/_book.scss

@@ -238,14 +238,16 @@ ul.toc-top {
 
 #TableOfContents li {
   display: block;
+  margin-bottom: 8px;  // Lighthouse: tap targets must be at least 8px apart
 }
 
 #TableOfContents li a,
 .toc-top li a {
   display: block;
-  padding: 0.125rem 1.5rem;
+  padding: 0 1.5rem;  // Override default padding
   color: rgba(0, 0, 0, 0.65);
-  font-size: 0.7rem;
+  line-height: 1.75;  // Lighthouse: min tap target size
+  font-size: 16px;  // Lighthouse: min tap target size
 }
 
 .dark #TableOfContents li a,

+ 28 - 0
wowchemy/assets/scss/wowchemy/widgets/_about.scss

@@ -100,3 +100,31 @@ ul.ul-edu li .description p.institution {
   font-size: 0.75rem;
   color: rgba(0, 0, 0, 0.6);
 }
+
+// For about.avatar widget
+.avatar-wrapper {
+  position: relative;
+  width: 150px;  // Match image size in about.avatar widget
+  height: 150px;
+  margin-left: auto;
+  margin-right: auto;
+
+  .avatar-emoji {
+    position: absolute;
+    width: 40px;
+    height: 40px;
+    line-height: 40px;
+    border-radius: 100%;
+    bottom: 0;
+    right: 0;
+    text-align: center;
+    font-size: 20px;
+    background-color: #fff;
+    color: #000;  // override parent alpha
+    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.04);
+  }
+}
+.dark .avatar-emoji {
+  background-color: #000;
+  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04), 0 0 1px rgba(255, 255, 255, 0.96);
+}

+ 1 - 1
wowchemy/assets/scss/wowchemy/wowchemy.scss

@@ -2,7 +2,7 @@
  *  Wowchemy: The Website Builder for Hugo
  *  Designed by @GeorgeCushen
  *  https://wowchemy.com/
- *  License: https://github.com/wowchemy/wowchemy-hugo-modules/blob/main/LICENSE.md
+ *  License: https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/LICENSE.md
  **************************************************/
 
 @import 'helpers/all';

+ 1 - 1
wowchemy/config.yaml

@@ -30,7 +30,7 @@ outputFormats:
     notAlternative: true
 module:
   hugoVersion:
-    min: '0.84.1'
+    min: '0.86.1'
     extended: true
   mounts:
     - source: content

+ 2 - 2
wowchemy/data/assets.toml

@@ -72,8 +72,8 @@
 # CSS
 
 [css.academicons]
-  version = "1.9.0"
-  sri = "sha512-W4yqoT1+8NLkinBLBZko+dFB2ZbHsYLDdr50VElllRcNt2Q4/GSs6u71UHKxB7S6JEMCp5Ve4xjh3eGQl/HRvg=="
+  version = "1.9.1"
+  sri = "sha512-b1ASx0WHgVFL5ZQhTgiPWX+68KjS38Jk87jg7pe+qC7q9YkEtFq0z7xCglv7qGIs/68d3mAp+StfC8WKC5SSAg=="
   url = "https://cdnjs.cloudflare.com/ajax/libs/academicons/%s/css/academicons.min.css"
 [css.leaflet]
   version = "1.7.1"

+ 1 - 1
wowchemy/data/fonts/classic.toml

@@ -2,7 +2,7 @@
 name = "Classic"
 
 # Optional Google font URL
-google_fonts = "Lato:400,700|Merriweather|Roboto+Mono"
+google_fonts = "family=Lato:wght@400;700&family=Merriweather&family=Roboto+Mono"
 
 # Font families
 heading_font = "Lato"

+ 15 - 15
wowchemy/i18n/zh-Hant.yaml

@@ -7,9 +7,9 @@
 - id: back_to_top
   translation: 回到頂端
 - id: home
-  translation: Home
+  translation: 主頁
 - id: close
-  translation: Close
+  translation: 關閉
 - id: languages
   translation: 語言
 - id: related
@@ -25,13 +25,13 @@
 - id: edit_page
   translation: 編輯本業
 - id: theme_selector
-  translation: Display preferences
+  translation: 顯示選項
 - id: theme_light
-  translation: Light
+  translation: 明亮
 - id: theme_dark
-  translation: Dark
+  translation: 暗黑
 - id: theme_auto
-  translation: Automatic
+  translation: 自動
 - id: btn_preprint
   translation: 影印預覽
 - id: btn_pdf
@@ -39,7 +39,7 @@
 - id: btn_cite
   translation: 引用
 - id: btn_slides
-  translation: 顯示 Slides
+  translation: 投影片
 - id: btn_video
   translation: 影片
 - id: btn_code
@@ -67,17 +67,17 @@
 - id: present
   translation: 現在
 - id: more_pages
-  translation: 查看全部
+  translation: 查看更多
 - id: more_posts
-  translation: 查看全部文章
+  translation: 查看更多文章
 - id: more_talks
-  translation: 查看全部演講
+  translation: 查看更多演講
 - id: more_publications
-  translation: 查看全部出版物
+  translation: 查看更多出版物
 - id: contact_name
   translation: 姓名
 - id: contact_email
-  translation: 
+  translation: 
 - id: contact_message
   translation: 訊息
 - id: contact_send
@@ -127,9 +127,9 @@
 - id: projects
   translation: 專案
 - id: slides
-  translation: Slides
+  translation: 投影片
 - id: authors
-  translation: Authors
+  translation: 作者
 - id: search
   translation: 搜尋
 - id: search_placeholder
@@ -151,4 +151,4 @@
 - id: cookie_learn
   translation: 了解更多
 - id: published_with
-  translation: 由{wowchemy}支持發布——免{repo_link}開源{/repo_link}網站,為創作者賦能。
+  translation: 由{wowchemy}支持發布——免{repo_link}開源{/repo_link}網站,為創作者賦能。

+ 0 - 0
wowchemy/v5/images/screenshot.png → wowchemy/images/screenshot.png


+ 0 - 0
wowchemy/v5/images/tn.png → wowchemy/images/tn.png


+ 1 - 1
wowchemy/layouts/_default/baseof.html

@@ -11,7 +11,7 @@
   {{/* Initialise Wowchemy. */}}
   {{ $js_license := printf "/*! Wowchemy v%s | https://wowchemy.com/ */\n" site.Data.wowchemy.version }}
   {{ $js_license := $js_license | printf "%s/*! Copyright 2016-present George Cushen (https://georgecushen.com/) */\n" }}
-  {{ $js_license := $js_license | printf "%s/*! License: https://github.com/wowchemy/wowchemy-hugo-modules/blob/main/LICENSE.md */\n" }}
+  {{ $js_license := $js_license | printf "%s/*! License: https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/LICENSE.md */\n" }}
   {{ $js_bundle_head := $js_license | resources.FromString "js/bundle-head.js" }}
   {{ $wcDarkLightEnabled := site.Params.day_night | default false }}
   {{ $wcIsSiteThemeDark := not (.Scratch.Get "light") | default false }}

+ 30 - 0
wowchemy/layouts/_default/sitemap.xml

@@ -0,0 +1,30 @@
+{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+        xmlns:xhtml="http://www.w3.org/1999/xhtml">
+  {{/* Check that page is built (has a URL) and is not private. */}}
+  {{ range where (where .Data.Pages "Permalink" "!=" nil) "Params.private" "ne" true }}
+  <url>
+    <loc>{{ .Permalink }}</loc>
+    {{- if not .Lastmod.IsZero }}<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}
+    {{- with .Sitemap.ChangeFreq }}<changefreq>{{ . }}</changefreq>{{ end }}
+    {{- if ge .Sitemap.Priority 0.0 }}<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
+    {{- if .IsTranslated -}}
+
+    {{- range .Translations -}}
+    <xhtml:link
+      rel="alternate"
+      hreflang="{{ .Language.Lang }}"
+      href="{{ .Permalink }}"
+    />
+    {{- end -}}
+
+    <xhtml:link
+      rel="alternate"
+      hreflang="{{ .Language.Lang }}"
+      href="{{ .Permalink }}"
+    />
+
+    {{- end -}}
+  </url>
+  {{- end -}}
+</urlset>

+ 6 - 2
wowchemy/layouts/partials/navbar.html

@@ -20,7 +20,9 @@
     <div class="d-none d-lg-inline-flex">
       <a class="navbar-brand" href="{{ "/" | relLangURL }}">
         {{- if $has_logo -}}
-          <img src="{{ $logo.RelPermalink }}" alt="{{ site.Title }}">
+          <img src="{{ $logo.RelPermalink }}" alt="{{ site.Title }}"
+          {{with site.Params.header.image.width}}width="{{.}}"{{end}}
+          {{with site.Params.header.image.height}}height="{{.}}"{{end}}>
         {{- else -}}
           {{- site.Title -}}
         {{- end -}}
@@ -39,7 +41,9 @@
     <div class="navbar-brand-mobile-wrapper d-inline-flex d-lg-none">
       <a class="navbar-brand" href="{{ "/" | relLangURL }}">
       {{- if $has_logo -}}
-        <img src="{{ $logo.RelPermalink }}" alt="{{ site.Title }}">
+        <img src="{{ $logo.RelPermalink }}" alt="{{ site.Title }}"
+        {{with site.Params.header.image.width}}width="{{.}}"{{end}}
+        {{with site.Params.header.image.height}}height="{{.}}"{{end}}>
       {{- else -}}
         {{- site.Title -}}
       {{- end -}}

+ 2 - 2
wowchemy/layouts/partials/page_header.html

@@ -28,7 +28,7 @@
     {{- end -}}
   {{- end -}}
   {{ if $img }}
-    <img src="{{$img.RelPermalink}}" class="article-banner" alt="{{$alt}}">
+    <img src="{{$img.RelPermalink}}" width="{{$img.Width}}" height="{{$img.Height}}" class="article-banner" alt="{{$alt}}">
   {{ else }}
     <img src="{{ .Params.header.image }}" class="article-banner" alt="{{$alt}}">
   {{ end }}
@@ -75,7 +75,7 @@
 {{/* Featured image */}}
 <div class="article-header {{$image_container}} featured-image-wrapper mt-4 mb-4" style="max-width: {{$image.Width}}px; max-height: {{$image.Height}}px;">
   <div style="position: relative">
-    <img src="{{ $image.RelPermalink }}" alt="{{ with $.Params.image.alt_text }}{{.}}{{ end }}" class="featured-image">
+    <img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" alt="{{ with $.Params.image.alt_text }}{{.}}{{ end }}" class="featured-image">
     {{ with $.Params.image.caption }}<span class="article-header-caption">{{ . | markdownify | emojify }}</span>{{ end }}
   </div>
 </div>

+ 1 - 1
wowchemy/layouts/partials/page_links.html

@@ -153,6 +153,6 @@
   {{ end }}
   <a class="btn btn-outline-primary btn-page-header{{ if $is_list }} btn-sm{{end}}" href="{{ $link | safeURL }}" {{ $target | safeHTMLAttr }}>
     {{ if .icon }}<i class="{{ $pack }} {{ $pack_prefix }}-{{ .icon }} {{if .name}}mr-1{{end}}"></i>{{end}}
-    {{ with .name }}{{ . | safeHTML }}{{end}}
+    {{- with .name }}{{ . | safeHTML }}{{ end -}}
   </a>
 {{ end }}

+ 2 - 2
wowchemy/layouts/partials/share.html

@@ -1,5 +1,5 @@
 {{ if and site.Params.sharing (ne .Params.share false) }}
-<div class="share-box" aria-hidden="true">
+<div class="share-box">
   <ul class="share">
     {{ range where site.Data.page_sharer.buttons "enable" true }}
       {{ $pack := or .icon_pack "fas" }}
@@ -10,7 +10,7 @@
       {{ $link := replace .url "{url}" ($.Permalink | htmlEscape) }}
       {{ $link = replace $link "{title}" ($.Title | htmlEscape) }}
       <li>
-        <a href="{{$link|safeURL}}" target="_blank" rel="noopener" class="share-btn-{{.id}}">
+        <a href="{{$link|safeURL}}" target="_blank" rel="noopener" class="share-btn-{{.id}}" aria-label="{{.icon}}">
           <i class="{{$pack}} {{$pack_prefix}}-{{.icon}}"></i>
         </a>
       </li>

+ 1 - 1
wowchemy/layouts/partials/site_footer.html

@@ -44,7 +44,7 @@
         {{ $i18n_published_with = $default }}
       {{ end }}
       {{ $i18n_published_with = replace $i18n_published_with "{wowchemy}" "<a href=\"https://wowchemy.com/?utm_campaign=poweredby\" target=\"_blank\" rel=\"noopener\">Wowchemy</a>" | safeHTML }}
-      {{ $i18n_published_with = replace $i18n_published_with "{repo_link}" "<a href=\"https://github.com/wowchemy/wowchemy-hugo-modules\" target=\"_blank\" rel=\"noopener\">" | safeHTML }}
+      {{ $i18n_published_with = replace $i18n_published_with "{repo_link}" "<a href=\"https://github.com/wowchemy/wowchemy-hugo-themes\" target=\"_blank\" rel=\"noopener\">" | safeHTML }}
       {{ $i18n_published_with = replace $i18n_published_with "{/repo_link}" "</a>" | safeHTML }}
       {{ $i18n_published_with | markdownify | emojify }}
     {{ end }}

+ 36 - 27
wowchemy/layouts/partials/site_head.html

@@ -1,3 +1,4 @@
+{{ $scr := .Scratch }}
 <head>
   <meta charset="utf-8" />
   <meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -8,6 +9,30 @@
     <meta name="generator" content="Wowchemy {{ site.Data.wowchemy.version }} for Hugo" />
   {{ end }}
 
+  {{ if .Params.private }}
+    <meta name="robots" content="noindex" />
+  {{- end -}}
+
+  {{/* Parse theme and font */}}
+  {{ partial "functions/parse_theme" . }}
+
+  {{/* Pre-connect to Google Fonts if the site's Font Theme uses them. */}}
+  {{ with ($scr.Get "google_fonts") }}
+  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
+  {{ end }}
+
+  {{/* Load Google Fonts if the site's Font Theme uses them. */}}
+  {{/* Note: we cannot use SRI with Google Fonts because the CSS is dynamically generated according to the user agent. */}}
+  {{ with ($scr.Get "google_fonts") }}
+    {{ if hasPrefix . "family=" }}
+      {{/* If `google_fonts` starts with "family=", use API v2 (https://developers.google.com/fonts/docs/css2) */}}
+      <link rel="preload" as="style" {{ printf "href=\"https://fonts.googleapis.com/css2?%s&display=swap\"" . | safeHTMLAttr }}>
+      <link rel="stylesheet" {{ printf "href=\"https://fonts.googleapis.com/css2?%s&display=swap\"" . | safeHTMLAttr }} media="print" onload="this.media='all'">
+    {{ else }}
+      {{ errorf "There is a new version of Google Fonts. Learn how to upgrade your font pack at https://wowchemy.com/docs/customization/#custom-font" }}
+    {{ end }}
+  {{ end }}
+
   {{ if site.Params.marketing.google_optimize | and hugo.IsProduction }}
     <script src="https://www.googleoptimize.com/optimize.js?id={{ site.Params.marketing.google_optimize }}"></script>
   {{- end -}}
@@ -22,8 +47,6 @@
     <meta name="msvalidate.01" content="{{ . }}" />
   {{- end -}}
 
-  {{ $scr := .Scratch }}
-
   {{/* Attempt to load superuser. */}}
   {{ $superuser_name := "" }}
   {{ $superuser_username := "" }}
@@ -57,13 +80,6 @@
   {{ end }}
   <link rel="alternate" hreflang="{{ site.LanguageCode | default "en-us" }}" href="{{ .Permalink }}" />
 
-  {{ partial "functions/parse_theme" . }}
-
-  {{/* Pre-connect to Google Fonts if the site's Font Theme uses them. */}}
-  {{ with ($scr.Get "google_fonts") }}
-    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
-  {{ end }}
-
   {{ $css := site.Data.assets.css }}
   {{ $js := site.Data.assets.js }}
   {{ if ne ($scr.Get "primary") "#fff" }}
@@ -175,24 +191,9 @@
     {{ end }}
   {{ end }}
 
-  {{/* Load Google Fonts if the site's Font Theme uses them. */}}
-  {{/* Note: we cannot use SRI with Google Fonts because the CSS is dynamically generated according to the user agent. */}}
-  {{ with ($scr.Get "google_fonts") }}
-    {{ if hasPrefix . "family=" }}
-      {{/* If `google_fonts` starts with "family=", use API v2 (https://developers.google.com/fonts/docs/css2) */}}
-      <link rel="preload" as="style" {{ printf "href=\"https://fonts.googleapis.com/css2?%s&display=swap\"" . | safeHTMLAttr }}>
-      <link rel="stylesheet" {{ printf "href=\"https://fonts.googleapis.com/css2?%s&display=swap\"" . | safeHTMLAttr }} media="print" onload="this.media='all'">
-    {{ else }}
-      {{/* Otherwise, use API v1 */}}
-      {{/* Hugo's htmlEscape cannot escape "|" in Google Font URIs so we implement our own escape functionality. */}}
-      <link rel="stylesheet" {{ printf "href=\"https://fonts.googleapis.com/css?family=%s&display=swap\"" . | replaceRE "\\|" "%7C" | safeHTMLAttr }}>
-      {{ warnf "There is a new version of Google Fonts. Learn how to upgrade your font pack at https://wowchemy.com/docs/customization/#custom-font" }}
-    {{ end }}
-  {{ end }}
-
   {{ $license := printf "/*! Wowchemy v%s | https://wowchemy.com/ */\n" site.Data.wowchemy.version }}
   {{ $license := $license | printf "%s/*! Copyright 2016-present George Cushen (https://georgecushen.com/) */\n" }}
-  {{ $license := $license | printf "%s/*! License: https://github.com/wowchemy/wowchemy-hugo-modules/blob/main/LICENSE.md */\n" }}
+  {{ $license := $license | printf "%s/*! License: https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/LICENSE.md */\n" }}
   {{ $css_bundle_head := $license | resources.FromString "css/bundle-head.css" }}
   {{ $css_options := dict "targetPath" "css/wowchemy.css" }}
   {{- if hugo.IsProduction -}}
@@ -263,6 +264,14 @@
     {{ $twitter_card = "summary" }}
   {{ end }}
   {{ $scr.Set "og_image" $og_image }}{{/* Set `og_image` globally for `rss.xml`. */}}
+
+  {{ $title := "" }}
+  {{ with .Params.seo.title }}
+    {{ $title = replace . "{brand}" site.Title }}
+  {{ else }}
+    {{ $title = .Title | default site.Title }}
+    {{ if ne $title site.Title }}{{ $title = printf "%s | %s" $title site.Title }}{{ end }}
+  {{ end }}
   <meta property="twitter:card" content="{{ $twitter_card }}" />
   {{ with site.Params.twitter }}
     <meta property="twitter:site" content="@{{ . }}" />
@@ -270,7 +279,7 @@
   {{ end }}
   <meta property="og:site_name" content="{{ site.Title }}" />
   <meta property="og:url" content="{{ .Permalink }}" />
-  <meta property="og:title" content="{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ site.Title }}" />
+  <meta property="og:title" content="{{ $title }}" />
   <meta property="og:description" content="{{ $desc }}" />
   {{- with $og_image -}}
     <meta property="og:image" content="{{ . }}" />
@@ -297,5 +306,5 @@
   {{ partial "cookie_consent" . }}
   {{ partial "custom_head" . }}
 
-  <title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ site.Title }}</title>
+  <title>{{$title}}</title>
 </head>

+ 2 - 2
wowchemy/layouts/partials/site_js.html

@@ -17,7 +17,7 @@
     {{ if not ($scr.Get "use_cdn") }}
       <script src="{{ printf "/js/vendor/%s" ($scr.Get "vendor_js_filename") | relURL }}"></script>
     {{ else }}
-      {{ $require_isotope := site.Params.require_isotope | default true }}
+      {{ $require_isotope := .Params.require_isotope | default site.Params.require_isotope | default true }}
       {{ if $require_isotope }}
         {{ printf "<script src=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" (printf $js.imagesLoaded.url $js.imagesLoaded.version) $js.imagesLoaded.sri | safeHTML }}
         {{ printf "<script src=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" (printf $js.isotope.url $js.isotope.version) $js.isotope.sri | safeHTML }}
@@ -125,7 +125,7 @@
 
     {{ $js_license := printf "/*! Wowchemy v%s | https://wowchemy.com/ */\n" site.Data.wowchemy.version }}
     {{ $js_license := $js_license | printf "%s/*! Copyright 2016-present George Cushen (https://georgecushen.com/) */\n" }}
-    {{ $js_license := $js_license | printf "%s/*! License: https://github.com/wowchemy/wowchemy-hugo-modules/blob/main/LICENSE.md */\n" }}
+    {{ $js_license := $js_license | printf "%s/*! License: https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/LICENSE.md */\n" }}
     {{ $js_bundle_head := $js_license | resources.FromString "js/bundle-head.js" }}
     {{ $js_params := dict "hugoEnvironment" hugo.Environment "codeHighlighting" ($scr.Get "highlight_enabled" | default false) "searchEnabled" (in (slice "wowchemy" "algolia") $search_provider) }}
     {{ $js_academic := resources.Get "js/wowchemy.js" | js.Build (dict "targetPath" (printf "%s/js/wow-core.js" .Lang ) "params" $js_params) }}

+ 1 - 1
wowchemy/layouts/partials/widget_page.html

@@ -21,7 +21,7 @@
     {{ warnf "Hugo cannot find a Widget Page at %s!" $page }}
     {{ warnf "If the page exists, Hugo Server may need restarting due to file changes." }}
     {{ warnf "View the Widget Page documentation at https://wowchemy.com/docs/managing-content/#create-a-widget-page ." }}
-    {{ warnf "If the Hugo version is between 0.65 and 0.68, it may be a confirmed Hugo bug that is expected to be fixed in Hugo v0.69: https://github.com/wowchemy/wowchemy-hugo-modules/issues/1595#issuecomment-605514973 ." }}
+    {{ warnf "If the Hugo version is between 0.65 and 0.68, it may be a confirmed Hugo bug that is expected to be fixed in Hugo v0.69: https://github.com/wowchemy/wowchemy-hugo-themes/issues/1595#issuecomment-605514973 ." }}
   {{ end }}
 {{ end }}
 

+ 66 - 0
wowchemy/layouts/partials/widgets/about.avatar.html

@@ -0,0 +1,66 @@
+{{ $ := .root }}
+{{ $page := .page }}
+
+{{ $author := "" }}
+{{ if .author }}
+{{ $author = .author }}
+{{ else }}
+{{ $author = $page.Params.author }}
+{{end}}
+
+{{ $person_page_path := (printf "/authors/%s" $author) }}
+{{ $person_page := site.GetPage $person_page_path }}
+{{ if not $person_page }}
+{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://wowchemy.com/docs/page-builder/#about " $person_page_path }}
+{{end}}
+{{ $person := $person_page.Params }}
+{{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}
+{{ $avatar_shape := site.Params.avatar.shape | default "circle" }}
+
+<div id="profile">
+
+  {{ if $avatar }}
+  <div class="avatar-wrapper">
+    {{ $avatar_image := $avatar.Fill "150x150 Center" }}
+    <img class="avatar {{if eq $avatar_shape "square"}}avatar-square{{else}}avatar-circle{{end}}" src="{{ $avatar_image.RelPermalink }}" alt="{{$person_page.Title}}">
+    {{with $person.status.icon}}<span class="avatar-emoji">{{.|emojify}}</span>{{end}}
+  </div>
+  {{ end }}
+
+  <div class="portrait-title">
+    <h2>{{ $person_page.Title }}</h2>
+    {{ with $person.role }}<h3>{{ . | markdownify | emojify }}</h3>{{ end }}
+
+    {{ range $person.organizations }}
+    <h3>
+      {{ with .url }}<a href="{{ . }}" target="_blank" rel="noopener">{{ end }}
+      <span>{{ .name }}</span>
+      {{ if .url }}</a>{{ end }}
+    </h3>
+    {{ end }}
+  </div>
+
+  <ul class="network-icon" aria-hidden="true">
+    {{ range $person.social }}
+    {{ $pack := or .icon_pack "fas" }}
+    {{ $pack_prefix := $pack }}
+    {{ if in (slice "fab" "fas" "far" "fal") $pack }}
+      {{ $pack_prefix = "fa" }}
+    {{ end }}
+    {{ $link := .link }}
+    {{ $scheme := (urls.Parse $link).Scheme }}
+    {{ $target := "" }}
+    {{ if not $scheme }}
+      {{ $link = .link | relLangURL }}
+    {{ else if in (slice "http" "https") $scheme }}
+      {{ $target = "target=\"_blank\" rel=\"noopener\"" }}
+    {{ end }}
+    <li>
+      <a href="{{ $link | safeURL }}" {{ $target | safeHTMLAttr }} aria-label="{{ .icon }}">
+        <i class="{{ $pack }} {{ $pack_prefix }}-{{ .icon }} big-icon"></i>
+      </a>
+    </li>
+    {{ end }}
+  </ul>
+
+</div>

+ 36 - 0
wowchemy/layouts/shortcodes/table.html

@@ -0,0 +1,36 @@
+{{/* Table Shortcode for Wowchemy. */}}
+{{/* Load a CSV table from page dir falling back back to remote URL */}}
+{{/* Defaults to expecting a comma-separated CSV with a header row. */}}
+
+{{ $src := .Get "path" }}
+{{ $delimiter := .Get "delimiter" | default "," }}
+{{ $useHeaderRow := .Get "header" | default true }}
+{{ $caption := .Get "caption" }}
+
+{{ $is_remote := strings.HasPrefix $src "http" }}
+{{ if not $is_remote }}
+  {{ $src = path.Join  "content" $.Page.File.Dir $src }}
+{{ end }}
+{{ $rows := getCSV $delimiter $src }}
+
+<table>
+  {{ if $useHeaderRow }}
+    {{ $headerRow := index $rows 0 }}
+    {{ $rows = after 1 $rows }}
+    <tr> {{ range $headerRow }} <th>{{ . | markdownify | emojify }}</th> {{ end }} </tr>
+  {{ end }}
+  {{ range $rows }}
+    <tr>
+      {{ range . }}
+        {{ if (findRE "^\\d+$" .) }}
+          <td data-table-dtype="number">{{ . }}</td>
+        {{ else }}
+          <td data-table-dtype="text">{{ . | markdownify | emojify }}</td>
+        {{ end }}
+      {{ end }}
+    </tr>
+  {{ end }}
+  {{ if $caption }}
+    <caption>{{ $caption | markdownify | emojify }}</caption>
+  {{ end }}
+</table>

+ 3 - 3
wowchemy/v5/theme.toml → wowchemy/theme.toml

@@ -1,9 +1,9 @@
 name = "Wowchemy Widget Pages"
 license = "MIT"
-licenselink = "https://github.com/wowchemy/wowchemy-hugo-modules/blob/main/LICENSE.md"
+licenselink = "https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/LICENSE.md"
 description = "Create any kind of website with fully customizable widgets - 50+ light/dark color themes, language packs, and widgets included."
-homepage = "https://github.com/wowchemy/wowchemy-hugo-modules"
-demosite = "https://online-fitness-coach.netlify.app/"
+homepage = "https://github.com/wowchemy/wowchemy-hugo-themes"
+demosite = "https://hugo-academic-pages.netlify.app/"
 tags = ["widgets",
         "portfolio",
         "responsive",