start conversion to hugo-academic 4.3.1

This commit is contained in:
Carl Pearson
2019-05-20 13:58:48 -05:00
parent 3507556d9d
commit aec5cf32e6
4 changed files with 274 additions and 161 deletions

View File

@@ -4,29 +4,41 @@
# 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 = "Carl Pearson"
# The URL of your website.
# End your URL with a `/` trailing slash, e.g. `https://example.com/`.
baseurl = "https://cwpearson.github.io/"
# Title of your site
title = "Carl Pearson"
# Your copyright notice - appears in site footer.
# To display a copyright symbol, type `©`.
copyright = "© 2018 Carl Pearson"
copyright = "© 2019 Carl Pearson"
theme = "academic"
enableEmoji = true
footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
preserveTaxonomyNames = true
paginate = 10
# Enable analytics by entering your Google Analytics tracking ID
googleAnalytics = "UA-54975774-2"
# Enable comments by entering your Disqus shortname
disqusShortname = ""
# Enable analytics by entering your Google Analytics tracking ID
googleAnalytics = "UA-54975774-2"
# Name of Academic theme folder in `themes/`.
theme = "academic"
# 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
paginate = 10 # Number of items per page in paginated lists.
enableEmoji = true
footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
# Default language to use (if you setup multilingual support)
defaultContentLanguage = "en"
@@ -37,16 +49,28 @@ defaultContentLanguageInSubdir = false
enableGitInfo = false
[outputs]
home = [ "HTML", "CSS", "RSS", "JSON" ]
home = [ "HTML", "RSS", "JSON" ]
section = [ "HTML", "RSS" ]
# Configure BlackFriday Markdown rendering.
# See: https://gohugo.io/getting-started/configuration/#configure-blackfriday
[blackfriday]
hrefTargetBlank = true # `true` opens external links in a new tab.
fractions = true # `false` disables smart fractions (e.g. 5/12 formatted as a fraction).
smartypants = true # `false` disables all smart punctuation substitutions (e.g. smart quotes, dashes, fractions).
extensions = ["backslashLineBreak"]
hrefTargetBlank = true # `true` opens external links in a new tab. See https://github.com/gohugoio/hugo/issues/2424
angledQuotes = false
latexDashes = true
extensions = ["backslashLineBreak"]
[imaging]
resampleFilter = "lanczos"
quality = 90
anchor = "smart" # Anchor for cropping. Options include Smart and Center.
# Taxonomies.
[taxonomies]
tag = "tags"
category = "categories"
publication_type = "publication_types"
author = "authors"
[params]
@@ -60,76 +84,14 @@ enableGitInfo = false
# Separate multiple entries with a comma, using the form: `[ {name="Org1", url=""}, {name="Org2", url=""} ]`.
organizations = [ { name = "University of Illinois Urbana-Champaign", url = "http://www.ece.illinois.edu/" } ]
gravatar = false # Get your avatar from Gravatar.com? (true/false)
avatar = "headshot.jpg" # Specify an avatar image (in `static/img/` folder) or delete value to disable avatar.
# Details for the Contact Widget
email = "pearson@illinois.edu"
address = "222 Coordinated Science Lab, 1308 W. Main St., Urbana, Illinois 61801"
office_hours = "email to book an appointment"
phone = ""
skype = ""
telegram = ""
keybase = "" # Your keybase.io username.
# Enter an optional link for booking appointments (e.g. calendly.com).
appointment_url = ""
# Discussion link (e.g. link to a forum, mailing list, or chat).
# Uncomment line below to use.
# discussion = { name = "Discuss", url = "https://discourse.gohugo.io" }
# Enable/disable map in Contact widget.
# To show your address on a map in the contact widget, you need to enter your latitude, longitude and choose
# a map provider below.
# To use Google Maps, set `map = 1` and enter your API key that can be obtained here:
# https://developers.google.com/maps/documentation/javascript/get-api-key
# To use OpenStreetMap tiles, set `map = 2`.
# To use OpenStreetMap on a high traffic site, set `map = 3` and enter your API key that can be obtained here:
# https://www.mapbox.com/studio/account/tokens
# To get your coordinates, right-click on Google Maps and choose "What's here?". The coords will show up at the bottom.
#
# Map provider:
# 0: No map
# 1: Google Maps
# 2: OpenStreetMap (Mapnik)
# 3: OpenStreetMap (Mapbox)
map = 0
map_api_key = ""
latitude = "40.114879"
longitude = "-88.226713"
zoom = 15
# SITE SETUP
# Color theme.
# Choose from `default`, `ocean`, `forest`, `dark`, `apogee`, `1950s`, `coffee`, `cupcake`.
color_theme = "default"
# Enable users to switch between day and night mode?
day_night = true
# Font style.
# Choose from `default`, `classic`, or `playfair`.
font = "default"
# Description for social sharing and search engines. If undefined, author role is used in place.
description = ""
# Default image for social sharing and search engines. Place image in `static/img/` folder and specify image name here.
sharing_image = ""
# Twitter username (without @). Used when a vistor shares your site on Twitter.
twitter = ""
# Diplay a logo in navigation bar rather than title (optional).
# To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "".
logo = ""
# Date and time format (refer to https://sourcethemes.com/academic/docs/customization/#date-format )
# Examples: "Mon, Jan 2, 2006" or "2006-01-02"
date_format = "Mon, Jan 2, 2006"
# Examples: "3:04 pm" or "15:04"
time_format = "3:04 PM"
# Show estimated reading time for posts?
reading_time = false
@@ -140,51 +102,13 @@ enableGitInfo = false
# Display next/previous section pager?
section_pager = false
# Enable global LaTeX math rendering?
# If false, you can enable it locally on a per page basis.
math = false
# Highlight.js options
# highlight
# Enable global source code highlighting? If false, you can
# override it for a particular page in that page's preamble.
#
# Example: highlight = true
#
# highlight_languages
# Add support for highlighting additional languages. Support for
# languages mentioned here will be included in all pages.
#
# Example: highlight_languages = ["go", "lisp", "ocaml"]
#
# highlight_style
# Choose a different CSS style for highlighting source
# code. Setting this option in a page's preamble has no
# effect.
#
# Example: highlight_style = "github-gist"
#
# For the list of supported languages and styles, see:
# https://cdnjs.com/libraries/highlight.js/
#
# For more info on the highlighting options, see:
# https://sourcethemes.com/academic/docs/writing-markdown-latex/#highlighting-options
highlight = true
highlight_languages = []
# highlight_style = "github"
# Enable native social sharing buttons?
sharing = false
# Privacy pack
# Show a cookie consent message to visitors
# Anonymize IP in Google Analytics (if enabled)
privacy_pack = false
# Link custom CSS and JS assets
# (relative to /static/css and /static/js respectively)
custom_css = []
custom_js = []
# Publication types.
# Used to categorize publications.
@@ -292,50 +216,8 @@ enableGitInfo = false
# Align the main menu to the right of the page? (true/false)
align_right = true
[[menu.main]]
name = "Home"
url = "#about"
weight = 1
[[menu.main]]
name = "Publications"
url = "#publications_selected"
weight = 2
[[menu.main]]
name = "Projects"
url = "#projects"
weight = 3
[[menu.main]]
name = "Positions"
url = "#positions"
weight = 4
[[menu.main]]
name = "Talks"
url = "#talks"
weight = 5
[[menu.main]]
name = "Recognition"
url = "#awards"
weight = 6
[[menu.main]]
name = "Patents"
url = "#patents"
weight = 7
[[menu.main]]
name = "Posts"
url = "#posts"
weight = 8
[[menu.main]]
name = "Contact"
url = "#contact"
weight = 9
# Link to a PDF of your resume/CV from the menu.
# To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below.

View File

@@ -0,0 +1,20 @@
# Languages
# Create a `[X]` block for each language you want, where X is the language ID.
# Refer to https://sourcethemes.com/academic/docs/language/
# Configure the English version of the site.
[en]
languageCode = "en-us"
# contentDir = "content/en" # Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
# Uncomment the lines below to configure your website in a second language.
#[zh]
# languageCode = "zh-Hans"
# contentDir = "content/zh"
# title = "Chinese website title..."
# [zh.params]
# description = "Site description in Chinese..."
# [[zh.menu.main]]
# name = "Wo"
# url = "#about"
# weight = 1

View File

@@ -0,0 +1,56 @@
# 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
[[main]]
name = "Publications"
url = "#publications_selected"
weight = 20
[[main]]
name = "Projects"
url = "#projects"
weight = 30
[[main]]
name = "Positions"
url = "#positions"
weight = 40
[[main]]
name = "Talks"
url = "#talks"
weight = 50
[[main]]
name = "Recognition"
url = "#awards"
weight = 60
[[main]]
name = "Patents"
url = "#patents"
weight = 70
[[main]]
name = "Posts"
url = "#posts"
weight = 80
[[main]]
name = "Contact"
url = "#contact"
weight = 90
# Link to a PDF of your resume/CV from the menu.
# To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below.
# [[main]]
# name = "CV"
# url = "files/cv.pdf"
# weight = 70

155
config/_default/params.toml Normal file
View File

@@ -0,0 +1,155 @@
# SITE SETUP
# Documentation: https://sourcethemes.com/academic/
# Color theme.
# Choose from `default`, `ocean`, `forest`, `dark`, `apogee`, `1950s`, `coffee`, `cupcake`, `strawberry`.
color_theme = "default"
# Enable users to switch between day and night mode?
day_night = true
# Font style.
# Choose from `default`, `classic`, or `playfair`.
font = "default"
# Description for social sharing and search engines. If undefined, superuser role is used in place.
description = ""
# Default image for social sharing and search engines. Place image in `static/img/` folder and specify image name here.
sharing_image = ""
# Twitter username (without @). Used when a vistor shares your site on Twitter.
twitter = ""
# Diplay a logo in navigation bar rather than title (optional).
# To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "".
logo = ""
# Enable global source code highlighting? true/false
# Documentation: https://sourcethemes.com/academic/docs/writing-markdown-latex/#highlighting-options
highlight = true
# highlight_languages = ["r"] # Add support for highlighting additional languages
# highlight_style = "github" # For supported styles, see https://cdnjs.com/libraries/highlight.js/
# Enable global LaTeX math rendering?
# If false, you can enable it locally on a per page basis.
math = false
# Privacy pack
# Show a cookie consent message to visitors
# Anonymize IP in Google Analytics (if enabled)
privacy_pack = false
# Date and time format (refer to https://sourcethemes.com/academic/docs/customization/#date-format )
# Examples: "Mon, Jan 2, 2006" or "2006-01-02"
date_format = "Jan 2, 2006"
# Examples: "3:04 pm" or "15:04"
time_format = "3:04 PM"
############################
## Contact Widget setup ##
############################
# Enter contact details (optional). To hide a field, clear it to "".
email = "pearson@illinois.edu"
phone = ""
address = "222 Coordinated Science Lab, 1308 W. Main St., Urbana, Illinois 61801"
# Office hours: use `<br>` to insert a line break, or set to "" to remove office hours
office_hours = "email to book an appointment"
# Enter an optional link for booking appointments (e.g. calendly.com).
appointment_url = ""
# Contact links
# Set to `[]` to disable, or comment out unwanted lines with a hash `#`.
contact_links = []
# Display a map.
# To show your address on a map in the contact widget, you need to enter your latitude, longitude and choose
# a map provider below.
# To use Google Maps, set `map = 1` and enter your API key that can be obtained here:
# https://developers.google.com/maps/documentation/javascript/get-api-key
# To use OpenStreetMap tiles, set `map = 2`.
# To use OpenStreetMap on a high traffic site, set `map = 3` and enter your API key that can be obtained here:
# https://www.mapbox.com/studio/account/tokens
# To get your coordinates, right-click on Google Maps and choose "What's here?". The coords will show up at the bottom.
#
# Map provider:
# 0: No map
# 1: Google Maps
# 2: OpenStreetMap (Mapnik)
# 3: OpenStreetMap (Mapbox)
map = 0
map_api_key = ""
latitude = "40.114879"
longitude = "-88.226713"
zoom = 15
############################
## Plugins ##
############################
# Load CSS and JS plugins
# E.g. To load `/assets/css/custom.css`, set `plugins_css = ["custom"]`.
# E.g. To load `/assets/js/custom.js`, set `plugins_js = ["custom"]`.
plugins_css = []
plugins_js = []
############################
## Advanced options ##
############################
# Get user avatars from Gravatar.com? (true/false)
gravatar = false
# Align the main menu to the right of the page? (true/false)
menu_align_right = true
# Show estimated reading time for posts? (true/false)
reading_time = true
# Display comment count (if commenting enabled in config.toml)? (true/false)
comment_count = true
# Display next/previous section pager? (true/false)
section_pager = false
docs_section_pager = true # Display pager in Docs layout (e.g. tutorials)?
# Enable in-built social sharing buttons? (true/false)
sharing = false
# Configuration of publication pages.
[publications]
# Date format (refer to https://sourcethemes.com/academic/docs/customization/#date-format )
# Examples: "Mon, Jan 2, 2006" or "2006-01-02"
date_format = "January 2006"
# Citation style ("apa" or "mla")
citation_style = "apa"
# Configuration of project pages.
[projects]
# Views for associated content.
# 1: List
# 2: Compact
# 3: Card
# 4: Citation (publications only)
post_view = 2
publication_view = 2
talk_view = 2
# Search.
[search]
# Search provider:
# 0: No search engine
# 1: Academic (built-in)
# 2: Algolia (https://www.algolia.com)
engine = 1
# Configuration of Algolia search engine.
# Paste the values from your Algolia dashboard.
[search.algolia]
app_id = ""
api_key = ""
index_name = ""
show_logo = false