Skip to content

Commit 0ba1faf

Browse files
committed
modules: update + convert config from TOML to YAML
Poll results 11 YAML to 6 TOML: https://discord.com/channels/722225264733716590/738922126966521907/809481717031239700
1 parent 8f37279 commit 0ba1faf

File tree

14 files changed

+293
-459
lines changed

14 files changed

+293
-459
lines changed
File renamed without changes.
File renamed without changes.

config/_default/config.toml

-103
This file was deleted.

config/_default/config.yaml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Configuration of Hugo
2+
# Guide: https://wowchemy.com/docs/getting-started/
3+
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
4+
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
5+
6+
title: Academic # Website name
7+
baseurl: '' # Website URL
8+
copyright: '' # Footer text, e.g. '© {year} Me'
9+
10+
############################
11+
## LANGUAGE
12+
############################
13+
14+
defaultContentLanguage: en
15+
hasCJKLanguage: false
16+
defaultContentLanguageInSubdir: false
17+
removePathAccents: true
18+
19+
############################
20+
## MODULES
21+
############################
22+
23+
module:
24+
imports:
25+
- path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms
26+
- path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy
27+
28+
############################
29+
## ADVANCED
30+
############################
31+
32+
enableGitInfo: false
33+
summaryLength: 30
34+
paginate: 10
35+
enableEmoji: true
36+
enableRobotsTXT: true
37+
footnotereturnlinkcontents: <sup>^</sup>
38+
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
39+
permalinks:
40+
event: '/talk/:slug/'
41+
tags: '/tag/:slug/'
42+
categories: '/category/:slug/'
43+
publication_types: '/publication-type/:slug/'
44+
disableAliases: true
45+
outputs:
46+
home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
47+
section: [HTML, RSS]
48+
markup:
49+
defaultMarkdownHandler: goldmark
50+
goldmark:
51+
renderer:
52+
unsafe: true
53+
highlight:
54+
codeFences: false
55+
tableOfContents:
56+
startLevel: 2
57+
endLevel: 3
58+
imaging:
59+
resampleFilter: lanczos
60+
quality: 75
61+
anchor: smart
62+
timeout: 600000
63+
taxonomies:
64+
tag: tags
65+
category: categories
66+
publication_type: publication_types
67+
author: authors
68+
related:
69+
threshold: 80
70+
includeNewer: true
71+
toLower: true
72+
indices:
73+
- name: tags
74+
weight: 100
75+
- name: categories
76+
weight: 70

config/_default/languages.toml

-20
This file was deleted.

config/_default/languages.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Languages
2+
# Create a section for each of your site's languages.
3+
# Documentation: https://wowchemy.com/docs/guide/language/
4+
5+
# Default language
6+
en:
7+
languageCode: en-us
8+
# Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
9+
#contentDir: content/en
10+
11+
# Uncomment the lines below to configure your website in a second language.
12+
#zh:
13+
# languageCode: zh-Hans
14+
# contentDir: content/zh
15+
# title: Chinese website title...
16+
# params:
17+
# description: Site description in Chinese...
18+
# menu:
19+
# main:
20+
# - name: 传
21+
# url: '#about'
22+
# weight: 1
23+

config/_default/menus.toml

-41
This file was deleted.

config/_default/menus.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Navigation Links
2+
# To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
3+
# desired widget in your `content/home/` folder.
4+
# The weight parameter defines the order that the links will appear in.
5+
6+
main:
7+
- name: Home
8+
url: '#about'
9+
weight: 10
10+
- name: Posts
11+
url: '#posts'
12+
weight: 20
13+
- name: Projects
14+
url: '#projects'
15+
weight: 30
16+
- name: Talks
17+
url: '#talks'
18+
weight: 40
19+
- name: Publications
20+
url: '#featured'
21+
weight: 50
22+
- name: Contact
23+
url: '#contact'
24+
weight: 60
25+
26+
# Link to a PDF of your resume/CV from the menu.
27+
# To enable, copy your resume/CV to `static/uploads/resume.pdf` and uncomment the lines below.
28+
# - name: CV
29+
# url: uploads/resume.pdf
30+
# weight: 70

0 commit comments

Comments
 (0)