Browse Source

starters: add Minimal template

George Cushen 2 years ago
parent
commit
e34e6372b1

+ 2 - 0
.github/workflows/split-packages.yaml

@@ -27,6 +27,8 @@ jobs:
             split_repository: 'starter-hugo-portfolio-theme'
             split_repository: 'starter-hugo-portfolio-theme'
           - local_path: 'course'
           - local_path: 'course'
             split_repository: 'starter-hugo-online-course'
             split_repository: 'starter-hugo-online-course'
+          - local_path: 'minimal'
+            split_repository: 'hugo-minimal-theme'
 
 
     steps:
     steps:
       -   uses: actions/checkout@v2
       -   uses: actions/checkout@v2

+ 2 - 0
starters/minimal/.github/FUNDING.yml

@@ -0,0 +1,2 @@
+github: gcushen
+custom: https://wowchemy.com/sponsor/

+ 7 - 0
starters/minimal/.gitignore

@@ -0,0 +1,7 @@
+# IDEs
+.idea/
+
+# Hugo
+/resources/
+public/
+assets/jsconfig.json

+ 29 - 0
starters/minimal/README.md

@@ -0,0 +1,29 @@
+# [Hugo Minimal Theme](https://github.com/wowchemy/hugo-minimal-theme)
+
+[![Screenshot](./preview.png)](https://wowchemy.com/hugo-themes/)
+
+The **Minimal Template** empowers you to easily create a simple one-page site **without any code**, just using **widgets**.
+
+[![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)
+
+[Check out the latest demo](https://hugo-minimal-theme.netlify.app/) of what you'll get in less than 60 seconds, 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 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)
+- ⬇️ **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
+
+Today we ask you to defend the open source independence of the Wowchemy website builder and themes 🐧
+
+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 become a GitHub Sponsor, unlocking awesome perks such as _exclusive academic templates and widgets_](https://github.com/sponsors/gcushen)

BIN
starters/minimal/assets/media/hello.jpg


BIN
starters/minimal/assets/media/icon.png


+ 0 - 0
starters/minimal/assets/media/icons/.gitkeep


+ 3 - 1
themes/hello-world/assets/scss/template.scss → starters/minimal/assets/scss/template.scss

@@ -1,4 +1,6 @@
-// Narrower container for Hello World sections (primarily Blank widget content).
+// Minimal template style
+
+// Narrower container for homepage sections (primarily Blank widget content).
 @media (min-width: 1200px) {
 @media (min-width: 1200px) {
   .home-section .container {
   .home-section .container {
     max-width: 880px;
     max-width: 880px;

+ 69 - 0
starters/minimal/config/_default/config.yaml

@@ -0,0 +1,69 @@
+# Configuration of Hugo
+# Guide: https://wowchemy.com/docs/getting-started/
+# 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: Hugo Minimal Theme # Website name
+baseURL: 'https://example.com/' # Website URL
+
+############################
+## LANGUAGE
+############################
+
+defaultContentLanguage: en
+hasCJKLanguage: false
+defaultContentLanguageInSubdir: false
+removePathAccents: true
+
+############################
+## MODULES
+############################
+
+module:
+  imports:
+    - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5
+    - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5
+
+############################
+## ADVANCED
+############################
+
+enableGitInfo: false
+summaryLength: 30
+paginate: 10
+enableEmoji: true
+enableRobotsTXT: true
+footnotereturnlinkcontents: <sup>^</sup>
+ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
+permalinks:
+  authors: '/author/:slug/'
+  tags: '/tag/:slug/'
+  categories: '/category/:slug/'
+disableAliases: true
+outputs:
+  home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
+  section: [HTML, RSS]
+imaging:
+  resampleFilter: lanczos
+  quality: 75
+  anchor: smart
+timeout: 600000
+taxonomies:
+  tag: tags
+  category: categories
+  author: authors
+markup:
+  _merge: deep
+related:
+  threshold: 80
+  includeNewer: true
+  toLower: true
+  indices:
+    - name: tags
+      weight: 100
+    - name: categories
+      weight: 70
+security:
+  _merge: deep
+sitemap:
+  _merge: deep

+ 22 - 0
starters/minimal/config/_default/languages.yaml

@@ -0,0 +1,22 @@
+# Languages
+#   Create a section for each of your site's languages.
+#   Documentation: https://wowchemy.com/docs/guide/language/
+
+# Default language
+en:
+  languageCode: en-us
+  # Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
+  #contentDir: content/en
+
+# Uncomment the lines below to configure your website in a second language.
+#zh:
+#  languageCode: zh-Hans
+#  contentDir: content/zh
+#  title: Chinese website title...
+#  params:
+#    description: Site description in Chinese...
+#  menu:
+#    main:
+#      - name: 传
+#        url: '#about'
+#        weight: 1

+ 12 - 0
starters/minimal/config/_default/menus.yaml

@@ -0,0 +1,12 @@
+# Navigation Links
+#   To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
+  #     desired widget in your `content/home/` folder.
+  #   The weight parameter defines the order that the links will appear in.
+
+main:
+  - name: Home
+    url: /
+    weight: 10
+  - name: About
+    url: about/
+    weight: 20

+ 105 - 0
starters/minimal/config/_default/params.yaml

@@ -0,0 +1,105 @@
+# SITE SETUP
+# Guide: https://wowchemy.com/docs/getting-started/
+# Documentation: https://wowchemy.com/docs/
+# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
+
+# Appearance
+
+appearance:
+  theme_day:
+  theme_night: minimal
+  font: native
+  font_size: L
+
+# SEO
+
+marketing:
+  seo:
+    site_type: Person
+    local_business_type: ''
+    org_name: ''
+    description: 'A highly-customizable Hugo minimal theme powered by Wowchemy website builder.'
+    twitter: 'wowchemy'
+  analytics:
+    google_analytics: ''
+    baidu_tongji: ''
+  verification:
+    google: ''
+    baidu: ''
+
+# Site header
+
+header:
+  navbar:
+    enable: false
+    align: r
+    show_logo: false
+    show_language: false
+    show_day_night: true
+    show_search: true
+    highlight_active_link: false
+
+footer:
+  copyright:
+    notice: '© {year} Me. This work is licensed under {license}'
+    license:
+      enable: true
+      allow_derivatives: false
+      share_alike: true
+      allow_commercial: false
+
+# Localization
+
+locale:
+  date_format: 'Jan 2, 2006'
+  time_format: '3:04 PM'
+
+# Site features
+
+features:
+  syntax_highlighter:
+    enable: false
+    extra_languages:
+      - r
+      - latex
+  math:
+    enable: false
+  diagram:
+    enable: false
+  privacy_pack:
+    enable: false
+  repository:
+    url: 'https://github.com/<username>/<repository>'
+    content_dir: content
+    branch: main
+  avatar:
+    gravatar: false
+    shape: circle
+  comment:
+    provider: ''
+    disqus:
+      shortname: ''
+      show_count: true
+    commento:
+      url: ''
+  search:
+    provider: wowchemy
+    algolia:
+      app_id: ''
+      api_key: ''
+      index_name: ''
+      show_logo: false
+  map:
+    provider: ''
+    api_key: ''
+    zoom: 15
+
+extensions:
+  cms:
+    branch: main
+    local_backend: false
+  isotope:
+    # Enable if you use the Portfolio widget or Publication filter
+    enable: false
+  academicons:
+    enable: false

+ 69 - 0
starters/minimal/content/home/homepage.md

@@ -0,0 +1,69 @@
+---
+# A Demo section created with the Blank widget.
+# 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.
+
+widget: blank  # See https://wowchemy.com/docs/page-builder/
+headless: true  # This file represents a page section.
+weight: 10  # Order that this section will appear.
+
+title: "👋 Hollie Beau is the Chief Data Officer at Tidbit Games in Shanghai."
+subtitle: ""
+
+design:
+  # Choose how many columns the section has. Valid values: 1 or 2.
+  columns: '1'
+  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.
+    color: black
+    # gradient_start: DarkGreen
+    # gradient_end: ForestGreen
+    image: hello.jpg  # Name of image in `static/media/`.
+    image_darken: 0.4
+    image_size: cover
+    image_position: right
+    image_parallax: true
+    text_color_light: true
+advanced:
+  css_style:
+  css_class: fullscreen
+---
+
+## My Mission
+
+Use this area to speak to your mission. Maecenas a varius odio egestas auctor. Praesent facilisis, ex a gravida ultricies, quam sed magna placerat eros, et vehicula lectus ligula id dui. Aliquam uto cursus velit ut eros lorem ipsum ullamcorper iaculis.
+
+## Specialties
+
+Analytics & Data, Leadership, Programming, Strategic Planning, Writing & Editing
+
+## Experience
+
+### Tidbit Games
+#### Chief Data Officer • Jan 2015 - Current • Shanghai
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+
+
+### AI Soup
+#### Research Manager • Jan 2010 - Jan 2015 • Beijing
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+
+## Education
+
+### Tsinghua University
+#### PhD AI • Jan 2005 - Jan 2010 • Beijing
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+
+
+## Get in Touch
+
+[{{< icon name="envelope" pack="fas" >}}Email](mailto:me@example.com)  
+[{{< icon name="twitter" pack="fab" >}}Twitter](https://twitter.com/wowchemy)  
+{{< icon name="weixin" pack="fab" >}}微信用户名  
+
+## Credits
+
+[Demo background image](https://unsplash.com/photos/mNSOLgnDGzA)

+ 7 - 0
starters/minimal/content/home/index.md

@@ -0,0 +1,7 @@
+---
+# Files in this folder represent a Widget Page (homepage)
+type: widget_page
+
+# Homepage is headless, other widget pages are not.
+headless: true
+---

+ 8 - 0
starters/minimal/go.mod

@@ -0,0 +1,8 @@
+module github.com/wowchemy/starter-minimal
+
+go 1.14
+
+require (
+	github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5 v5.0.0-20220216215925-d0da1f21994f // indirect
+	github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5 v5.0.0-20220216215925-d0da1f21994f // indirect
+)

+ 21 - 0
starters/minimal/netlify.toml

@@ -0,0 +1,21 @@
+[build]
+  command = "hugo --gc --minify -b $URL"
+  publish = "public"
+
+[build.environment]
+  HUGO_VERSION = "0.91.2"
+  HUGO_ENABLEGITINFO = "true"
+
+[context.production.environment]
+  HUGO_ENV = "production"
+
+[context.deploy-preview]
+  command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
+
+[context.branch-deploy]
+  command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
+
+[[plugins]]
+  package = "netlify-plugin-hugo-cache-resources"
+  [plugins.inputs]
+    debug = true

BIN
starters/minimal/preview.png


+ 0 - 0
starters/minimal/static/uploads/.gitkeep


+ 0 - 16
themes/hello-world/config.yaml

@@ -1,16 +0,0 @@
-module:
-  mounts:
-    - source: content
-      target: content
-    - source: static
-      target: static
-    - source: layouts
-      target: layouts
-    - source: data
-      target: data
-    - source: assets
-      target: assets
-    - source: i18n
-      target: i18n
-    - source: archetypes
-      target: archetypes

+ 0 - 3
themes/hello-world/go.mod

@@ -1,3 +0,0 @@
-module github.com/wowchemy/wowchemy-hugo-modules/themes/hello-world
-
-go 1.15