modules(demo): update + convert config.toml to config.yaml
Poll results 11 YAML to 6 TOML: https://discord.com/channels/722225264733716590/738922126966521907/809481717031239700 Disable CMS in demo. Add Netlify `resources/` caching to demo.
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
@@ -1,103 +0,0 @@
|
|||||||
# Configuration of Hugo
|
|
||||||
# Guide: https://wowchemy.com/docs/get-started/
|
|
||||||
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
|
|
||||||
#
|
|
||||||
# This file is formatted using TOML syntax - learn more at https://learnxinyminutes.com/docs/toml/
|
|
||||||
# Each configuration section is defined by a name in square brackets (e.g. `[outputs]`).
|
|
||||||
|
|
||||||
# Title of your site
|
|
||||||
title = "Academic"
|
|
||||||
|
|
||||||
# The URL of your site.
|
|
||||||
# End your URL with a `/` trailing slash, e.g. `https://example.com/`.
|
|
||||||
baseurl = ""
|
|
||||||
|
|
||||||
# Enter a copyright notice to display in the site footer.
|
|
||||||
# To display a copyright symbol, type `©`. For current year, type `{year}`.
|
|
||||||
copyright = ""
|
|
||||||
|
|
||||||
############################
|
|
||||||
## Advanced options below ##
|
|
||||||
############################
|
|
||||||
|
|
||||||
# Get last modified date for content from Git?
|
|
||||||
enableGitInfo = false
|
|
||||||
|
|
||||||
# Default language to use (if you setup multilingual support)
|
|
||||||
defaultContentLanguage = "en"
|
|
||||||
hasCJKLanguage = false # Set `true` for Chinese/Japanese/Korean languages.
|
|
||||||
defaultContentLanguageInSubdir = false
|
|
||||||
removePathAccents = true # Workaround for https://github.com/gohugoio/hugo/issues/5687
|
|
||||||
|
|
||||||
summaryLength = 30 # Listing summary length in words. Also, see `abstract_length` in `params.toml`.
|
|
||||||
paginate = 10 # Number of items per page in paginated lists.
|
|
||||||
enableEmoji = true
|
|
||||||
enableRobotsTXT = true
|
|
||||||
footnotereturnlinkcontents = "<sup>^</sup>"
|
|
||||||
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_cache$"]
|
|
||||||
|
|
||||||
[permalinks]
|
|
||||||
# If only creating events which are talks, we can optimize event URLs for talks.
|
|
||||||
event = "/talk/:slug/"
|
|
||||||
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
|
|
||||||
authors = "/author/:slug/"
|
|
||||||
tags = "/tag/:slug/"
|
|
||||||
categories = "/category/:slug/"
|
|
||||||
publication_types = "/publication-type/:slug/"
|
|
||||||
|
|
||||||
[outputs]
|
|
||||||
home = ["HTML", "RSS", "JSON", "WebAppManifest", "headers"]
|
|
||||||
section = ["HTML", "RSS"]
|
|
||||||
|
|
||||||
# Configure the Markdown renderer.
|
|
||||||
[markup]
|
|
||||||
defaultMarkdownHandler = "goldmark"
|
|
||||||
[markup.goldmark]
|
|
||||||
[markup.goldmark.renderer]
|
|
||||||
unsafe = true # Enable user to embed HTML snippets in Markdown content.
|
|
||||||
[markup.highlight]
|
|
||||||
codeFences = false # Disable Hugo's code highlighter as it conflicts with Academic's highligher.
|
|
||||||
[markup.tableOfContents]
|
|
||||||
startLevel = 2
|
|
||||||
endLevel = 3
|
|
||||||
|
|
||||||
[imaging]
|
|
||||||
resampleFilter = "lanczos"
|
|
||||||
quality = 75
|
|
||||||
anchor = "smart" # Anchor for cropping. Options include Smart and Center.
|
|
||||||
|
|
||||||
# Taxonomies.
|
|
||||||
[taxonomies]
|
|
||||||
tag = "tags"
|
|
||||||
category = "categories"
|
|
||||||
publication_type = "publication_types"
|
|
||||||
author = "authors"
|
|
||||||
|
|
||||||
# Related content.
|
|
||||||
[related]
|
|
||||||
threshold = 80.0
|
|
||||||
includeNewer = true
|
|
||||||
toLower = true
|
|
||||||
|
|
||||||
[[related.indices]]
|
|
||||||
name = "title"
|
|
||||||
weight = 60.0
|
|
||||||
|
|
||||||
[[related.indices]]
|
|
||||||
name = "summary"
|
|
||||||
weight = 50.0
|
|
||||||
|
|
||||||
[[related.indices]]
|
|
||||||
name = "tags"
|
|
||||||
weight = 80.0
|
|
||||||
|
|
||||||
[[related.indices]]
|
|
||||||
name = "categories"
|
|
||||||
weight = 70.0
|
|
||||||
|
|
||||||
# Install Wowchemy
|
|
||||||
[module]
|
|
||||||
[[module.imports]]
|
|
||||||
path = "github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms"
|
|
||||||
[[module.imports]]
|
|
||||||
path = "github.com/wowchemy/wowchemy-hugo-modules/wowchemy"
|
|
||||||
78
exampleSite/config/_default/config.yaml
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
# 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: Academic # Website name
|
||||||
|
baseurl: '' # Website URL
|
||||||
|
copyright: '' # Footer text, e.g. '© {year} Me'
|
||||||
|
|
||||||
|
############################
|
||||||
|
## LANGUAGE
|
||||||
|
############################
|
||||||
|
|
||||||
|
defaultContentLanguage: en
|
||||||
|
hasCJKLanguage: false
|
||||||
|
defaultContentLanguageInSubdir: false
|
||||||
|
removePathAccents: true
|
||||||
|
|
||||||
|
############################
|
||||||
|
## MODULES
|
||||||
|
############################
|
||||||
|
|
||||||
|
module:
|
||||||
|
imports:
|
||||||
|
- path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms
|
||||||
|
disable: true
|
||||||
|
- path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy
|
||||||
|
|
||||||
|
############################
|
||||||
|
## ADVANCED
|
||||||
|
############################
|
||||||
|
|
||||||
|
enableGitInfo: false
|
||||||
|
summaryLength: 30
|
||||||
|
paginate: 10
|
||||||
|
enableEmoji: true
|
||||||
|
enableRobotsTXT: true
|
||||||
|
footnotereturnlinkcontents: <sup>^</sup>
|
||||||
|
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
|
||||||
|
anchor: smart
|
||||||
|
timeout: 600000
|
||||||
|
taxonomies:
|
||||||
|
tag: tags
|
||||||
|
category: categories
|
||||||
|
publication_type: publication_types
|
||||||
|
author: authors
|
||||||
|
related:
|
||||||
|
threshold: 80
|
||||||
|
includeNewer: true
|
||||||
|
toLower: true
|
||||||
|
indices:
|
||||||
|
- name: tags
|
||||||
|
weight: 100
|
||||||
|
- name: categories
|
||||||
|
weight: 70
|
||||||
@@ -3,6 +3,6 @@ module github.com/wowchemy/starter-academic/exampleSite
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210219133516-05c772f38946 // indirect
|
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210226164504-3952bfc85cee // indirect
|
||||||
github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210219133516-05c772f38946 // indirect
|
github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210226164504-3952bfc85cee // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210219133516-05c772f38946 h1:PPkYFJCSyAMp9J5z9e5k/3CRHrCaWcQdw/hsM2SYqN4=
|
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210226164504-3952bfc85cee h1:fzgNvnmzCL2gjkMPme48DVakKsRw/iWKJIRgXyYI/bg=
|
||||||
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210219133516-05c772f38946/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=
|
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210226164504-3952bfc85cee/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=
|
||||||
github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210219133516-05c772f38946 h1:dxvDlibakOxlK4d0ZYcErGJsqQewJwR0gCB+0+77kQU=
|
github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210226164504-3952bfc85cee h1:NMXbMGtvC1+JMYFceNLhin1Or002v0/aGfQ/WlUhD1o=
|
||||||
github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210219133516-05c772f38946/go.mod h1:AKpYbqUVlj0VYsc7Jsxe1o8Ko2yV31A5ZPdfpACcXJw=
|
github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210226164504-3952bfc85cee/go.mod h1:AKpYbqUVlj0VYsc7Jsxe1o8Ko2yV31A5ZPdfpACcXJw=
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
publish = "public"
|
publish = "public"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.80.0"
|
HUGO_VERSION = "0.81.0"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
@@ -14,3 +14,8 @@
|
|||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-hugo-cache-resources"
|
||||||
|
[plugins.inputs]
|
||||||
|
debug = true
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 940 B |
|
Before Width: | Height: | Size: 1006 B |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 915 B |
|
Before Width: | Height: | Size: 963 B |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 536 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 991 B |
|
Before Width: | Height: | Size: 912 B |
|
Before Width: | Height: | Size: 987 B |
|
Before Width: | Height: | Size: 957 B |
|
Before Width: | Height: | Size: 962 B |
|
Before Width: | Height: | Size: 967 B |
|
Before Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 988 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1000 B |