diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 574c0a2..0000000 --- a/.editorconfig +++ /dev/null @@ -1,20 +0,0 @@ -# editorconfig.org - -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_size = 2 -indent_style = space -insert_final_newline = true -trim_trailing_whitespace = true - -[*.toml] -max_line_length = 100 - -[*.md] -trim_trailing_whitespace = false - -[layouts/shortcodes/*.html] -insert_final_newline = false diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index baa6cdf..a805692 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,12 +1,2 @@ -# These are supported funding model platforms - -github: gcushen # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: cushen -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: https://paypal.me/cushen +github: gcushen +custom: https://wowchemy.com/sponsor/ diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index 44a215a..0000000 --- a/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021-present George Cushen - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index 20553df..f5042eb 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,34 @@ -# [Hugo Theme for Creating Online Courses](https://github.com/wowchemy/starter-hugo-online-course) +# [Hugo Online Course Theme](https://github.com/wowchemy/starter-hugo-online-course) -The **Online Course Template** empowers you easily create an online course or coaching business with our customizable yet simple all-in-one [**Wowchemy Website Builder**](https://wowchemy.com/) for [Hugo](https://github.com/gohugoio/hugo). +[![Screenshot](./preview.png)](https://wowchemy.com/hugo-themes/) -[Check out the latest demo](https://hugo-online-course.netlify.app/) of what you'll get in less than 10 minutes, or [view the showcase](https://wowchemy.com/user-stories/). +The **Online Course Template** empowers you easily create an online course or coaching business with the open source [**Wowchemy Website Builder**](https://wowchemy.com/) for [Hugo](https://github.com/gohugoio/hugo). This Hugo learning theme helps you to teach the way that you want to learn! -[**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. +[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://wowchemy.com/hugo-themes/) +[![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138) +[![Twitter Follow](https://img.shields.io/twitter/follow/wowchemy?label=Follow%20on%20Twitter)](https://twitter.com/wowchemy) -- 👉 [**Get Started**](https://wowchemy.com/templates/) +[Check out the latest demo](https://wowchemy.com/docs/) of what you'll get in less than 10 minutes, or [get inspired by how others are using this template](https://wowchemy.com/creators/). + +The integrated [**Wowchemy**](https://wowchemy.com) website builder and CMS makes it easy to create a beautiful website for free. Edit your site in the CMS (or your favorite editor), generate it with [Hugo](https://github.com/gohugoio/hugo), and deploy with GitHub or Netlify. Customize anything on your site with widgets, light/dark themes, and language packs. + +- 👉 [**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) +- 💬 [Chat with the **Wowchemy research 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?** View the [Update Guide](https://wowchemy.com/docs/guide/update/) and [Release Notes](https://wowchemy.com/updates/) +- ⬇️ **Automatically import citations from BibTeX** with the [Hugo Academic CLI](https://github.com/wowchemy/hugo-academic-cli) +- 🚀 [Contribute improvements](./.github/contributing.md) or [suggest improvements](https://github.com/wowchemy/wowchemy-hugo-themes/issues) +- ⬆️ **Updating?** View the [Update Guide](https://wowchemy.com/docs/hugo-tutorials/update/) and [Release Notes](https://github.com/wowchemy/wowchemy-hugo-themes/releases) + +## 💙 We ask you, humbly, to support this open source movement -## Crowd-funded open-source software +Today we ask you to defend the open source independence of the Wowchemy website builder and themes 🐧 -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. +We're an open source movement that depends on your support to stay online and thriving, but 99.9% of our creators don't give; they simply look the other way. -### [❤️ Click here to unlock rewards with sponsorship](https://wowchemy.com/sponsor/) +### [️😍 Click here to become a GitHub Sponsor, unlocking awesome perks such as _exclusive academic templates and widgets_](https://github.com/sponsors/gcushen) ## Demo image credits - [Demo course image](https://unsplash.com/photos/JKUTrJ4vK00) - [Hero elearning icon](https://www.flaticon.com/packs/online-education-25) - - -[![Analytics](https://ga-beacon.appspot.com/UA-78646709-2/starter-online-course/readme?pixel)](https://github.com/igrigorik/ga-beacon) diff --git a/assets/scss/custom.scss b/assets/scss/template.scss similarity index 100% rename from assets/scss/custom.scss rename to assets/scss/template.scss diff --git a/config/_default/config.yaml b/config/_default/config.yaml index 418d5fa..c74d562 100644 --- a/config/_default/config.yaml +++ b/config/_default/config.yaml @@ -3,9 +3,23 @@ # Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings # This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/ -title: Online Courses # Website name -baseurl: '' # Website URL -copyright: '' # Footer text, e.g. '© {year} Me' +title: 'My Online Courses' # Website name +baseURL: 'https://example.com/' # Website URL + +############################ +## PAGE OPTIONS +############################ + +cascade: + # Docs folder options + - _target: + path: /course/** + editable: true + show_breadcrumb: true + # Blog post folder options + - _target: + path: /post/** + show_related: true ############################ ## LANGUAGE @@ -22,8 +36,8 @@ removePathAccents: true module: imports: - - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms - - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy + - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5 + - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5 ############################ ## ADVANCED @@ -37,24 +51,13 @@ enableRobotsTXT: true footnotereturnlinkcontents: ^ ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$] permalinks: - event: '/talk/:slug/' + authors: '/author/:slug/' tags: '/tag/:slug/' categories: '/category/:slug/' - publication_types: '/publication-type/:slug/' disableAliases: true outputs: home: [HTML, RSS, JSON, WebAppManifest, headers, redirects] section: [HTML, RSS] -markup: - defaultMarkdownHandler: goldmark - goldmark: - renderer: - unsafe: true - highlight: - codeFences: false - tableOfContents: - startLevel: 2 - endLevel: 3 imaging: resampleFilter: lanczos quality: 75 @@ -63,8 +66,9 @@ timeout: 600000 taxonomies: tag: tags category: categories - publication_type: publication_types author: authors +markup: + _merge: deep related: threshold: 80 includeNewer: true @@ -74,3 +78,7 @@ related: weight: 100 - name: categories weight: 70 +security: + _merge: deep +sitemap: + _merge: deep diff --git a/config/_default/params.yaml b/config/_default/params.yaml index 01661b2..7ab4fa9 100644 --- a/config/_default/params.yaml +++ b/config/_default/params.yaml @@ -5,114 +5,96 @@ # Appearance -theme: custom -day_night: false -font: '' -font_size: L +appearance: + theme_day: custom + theme_night: + font: minimal + font_size: L # SEO -site_type: Organization -local_business_type: '' -org_name: '' -description: '' -twitter: '' +marketing: + seo: + site_type: Organization + local_business_type: '' + org_name: '' + description: 'A highly-customizable Hugo learning theme powered by Wowchemy website builder.' + twitter: 'wowchemy' + analytics: + google_analytics: '' + baidu_tongji: '' + verification: + google: '' + baidu: '' -# Contact (edit or remove options as required) +# Site header -email: test@example.org -appointment_url: 'https://calendly.com' -contact_links: - - icon: comments - icon_pack: fas - name: Discuss on the forum - link: 'https://github.com/wowchemy/wowchemy-hugo-modules/discussions' +header: + navbar: + enable: true + align: l + show_logo: true + show_language: false + show_day_night: true + show_search: true + highlight_active_link: true -# Site header +# Site footer -main_menu: - enable: true - align: l - show_logo: true - show_language: false - show_day_night: true - show_search: true - highlight_active_link: true +footer: + copyright: + notice: '© {year} Me. This work is licensed under {license}' + license: + enable: true + allow_derivatives: false + share_alike: true + allow_commercial: false # Localization -date_format: 'Jan 2, 2006' -time_format: '3:04 PM' -address_format: en-us +locale: + date_format: 'Jan 2, 2006' + time_format: '3:04 PM' # Site features -highlight: false -highlight_languages: [] -math: false -diagram: false -privacy_pack: false -edit_page: - repo_url: '' - content_dir: '' - repo_branch: main - editable: - page: false - post: false - book: false -show_related: - book: true - page: false - post: true - project: true - publication: true - event: true -reading_time: true -section_pager: false -docs_section_pager: true -sharing: true -copyright_license: - enable: false - allow_derivatives: false - share_alike: true - allow_commercial: false - notice: 'This work is licensed under {license}' -abstract_length: 135 -plugins_js: [] -avatar: - gravatar: false - shape: circle -breadcrumb: - page_types: - book: true -comments: - provider: '' - commentable: - post: true - book: true - project: true - publication: true - event: true - disqus: - shortname: '' - show_count: true - commento: - url: '' -search: - provider: wowchemy - algolia: - app_id: '' - api_key: '' - index_name: '' - show_logo: false -marketing: - google_analytics: '' - google_tag_manager: '' - google_site_verification: '' - baidu_site_verification: '' - baidu_tongji: '' -cms: - local_backend: false -icon: - pack: - ai: false +features: + syntax_highlighter: + enable: true + extra_languages: + - r + - latex + math: + enable: false + diagram: + enable: false + privacy_pack: + enable: false + repository: + url: 'https://github.com/wowchemy/starter-hugo-online-course' + content_dir: content + branch: main + comment: + provider: '' + disqus: + shortname: '' + show_count: true + commento: + url: '' + search: + provider: wowchemy + algolia: + app_id: '' + api_key: '' + index_name: '' + show_logo: false + +extensions: + cms: + branch: main + local_backend: false + isotope: + # Enable if you use the Portfolio widget or Publication filter + enable: true + academicons: + enable: false diff --git a/content/admin/index.md b/content/admin/index.md index 04c96f8..a396fea 100644 --- a/content/admin/index.md +++ b/content/admin/index.md @@ -1,6 +1,7 @@ --- # Generate Wowchemy CMS type: wowchemycms +private: true outputs: - wowchemycms_config - HTML diff --git a/content/contact/contact.md b/content/contact/contact.md index 05e3136..a7b0947 100644 --- a/content/contact/contact.md +++ b/content/contact/contact.md @@ -13,6 +13,15 @@ title: Contact subtitle: content: + # Contact (edit or remove options as required) + email: test@example.org + appointment_url: 'https://calendly.com' + contact_links: + - icon: comments + icon_pack: fas + name: Discuss on the forum + link: 'https://github.com/wowchemy/wowchemy-hugo-themes/discussions' + # Automatically link email and phone or display as text? autolink: true diff --git a/content/course/_index.md b/content/course/_index.md index 6007347..dde6b9d 100644 --- a/content/course/_index.md +++ b/content/course/_index.md @@ -2,6 +2,8 @@ title: 📚 Courses type: page +view: compact + header: caption: "" image: "" diff --git a/data/themes/custom.toml b/data/themes/custom.toml index 50b4c46..1e0e85b 100644 --- a/data/themes/custom.toml +++ b/data/themes/custom.toml @@ -1,22 +1,20 @@ # Theme metadata name = "Custom Theme" -# Is theme light or dark? -is_light = true +[light] + # Primary + primary = "#0072ff" -# Primary -primary = "#0072ff" + # Links + link = "#3273dc" + link_hover = "rgb(54, 54, 54)" -# Links -link = "#3273dc" -link_hover = "rgb(54, 54, 54)" + # Menu + menu_primary = "rgb(153,238,255)" + menu_text = "#000" + menu_text_active = "#0072ff" + menu_title = "#000" -# Menu -menu_primary = "rgb(153,238,255)" -menu_text = "#000" -menu_text_active = "#0072ff" -menu_title = "#000" - -# Home sections -home_section_odd = "rgb(255, 255, 255)" -home_section_even = "rgb(255, 255, 255)" + # Home sections + home_section_odd = "rgb(255, 255, 255)" + home_section_even = "rgb(255, 255, 255)" diff --git a/go.mod b/go.mod index 24ab09f..ca7f220 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/wowchemy/starter-academic go 1.15 require ( - github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210526223849-81ba17522966 // indirect - github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210526223849-81ba17522966 // indirect + github.com/wowchemy/wowchemy-hugo-modules/v5 v5.3.0 + github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5 v5.0.0-20220220182731-98d590223d88 // indirect + github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5 v5.0.0-20220220182731-98d590223d88 // indirect ) diff --git a/go.sum b/go.sum deleted file mode 100644 index e70f758..0000000 --- a/go.sum +++ /dev/null @@ -1,4 +0,0 @@ -github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210526223849-81ba17522966 h1:qQ+BOah36CL2HMtG4NLZGhZ0MGBwq7CPy9DPll1U8Yk= -github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210526223849-81ba17522966/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= -github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210526223849-81ba17522966 h1:WZer9Efx+RVA6ywDcyWNdQyZi3j/Sr77AVy1oHKEu7s= -github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210526223849-81ba17522966/go.mod h1:AKpYbqUVlj0VYsc7Jsxe1o8Ko2yV31A5ZPdfpACcXJw= diff --git a/netlify.toml b/netlify.toml index a75ffd2..e5df8dc 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.83.1" + HUGO_VERSION = "0.91.2" HUGO_ENABLEGITINFO = "true" [context.production.environment] diff --git a/preview.png b/preview.png new file mode 100644 index 0000000..0f52938 Binary files /dev/null and b/preview.png differ