Skip to content

Commit

Permalink
modules: update + convert config from TOML to YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed Mar 1, 2021
1 parent 8f37279 commit 0ba1faf
Show file tree
Hide file tree
Showing 14 changed files with 293 additions and 459 deletions.
File renamed without changes.
File renamed without changes
103 changes: 0 additions & 103 deletions config/_default/config.toml

This file was deleted.

76 changes: 76 additions & 0 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# 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
- 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/'
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
20 changes: 0 additions & 20 deletions config/_default/languages.toml

This file was deleted.

23 changes: 23 additions & 0 deletions config/_default/languages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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

41 changes: 0 additions & 41 deletions config/_default/menus.toml

This file was deleted.

30 changes: 30 additions & 0 deletions config/_default/menus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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: '#about'
weight: 10
- name: Posts
url: '#posts'
weight: 20
- name: Projects
url: '#projects'
weight: 30
- name: Talks
url: '#talks'
weight: 40
- name: Publications
url: '#featured'
weight: 50
- name: Contact
url: '#contact'
weight: 60

# Link to a PDF of your resume/CV from the menu.
# To enable, copy your resume/CV to `static/uploads/resume.pdf` and uncomment the lines below.
# - name: CV
# url: uploads/resume.pdf
# weight: 70
Loading

0 comments on commit 0ba1faf

Please sign in to comment.