theme: upgrade to latest v4.5-dev - get new params structure

This commit is contained in:
George Cushen 2019-09-11 13:28:36 +01:00
parent 8a5e40d952
commit 58c0d2e6cb
2 changed files with 104 additions and 55 deletions

View file

@ -1,6 +1,10 @@
# SITE SETUP # SITE SETUP
# Documentation: https://sourcethemes.com/academic/ # Documentation: https://sourcethemes.com/academic/
############################
## Theme
############################
# Choose a theme. # Choose a theme.
# Latest themes (may require updating): https://sourcethemes.com/academic/themes/ # Latest themes (may require updating): https://sourcethemes.com/academic/themes/
# Browse built-in themes in `themes/academic/data/themes/` # Browse built-in themes in `themes/academic/data/themes/`
@ -20,19 +24,36 @@ font = ""
# Sizes: XS (extra small), S (small), M (medium), L (large - DEFAULT), XL (extra large) # Sizes: XS (extra small), S (small), M (medium), L (large - DEFAULT), XL (extra large)
font_size = "L" font_size = "L"
############################
## Basic Info
############################
# Website type
# Improve how search engines understand your site.
# For personal sites, choose "Person".
# For organizations and projects, choose from https://schema.org/Organization#subtypes
# E.g. Person, Organization, LocalBusiness, Project, EducationalOrganization
site_type = "Person"
# Local business type (optional)
# If you entered "LocalBusiness" above, choose the type of business from https://schema.org/LocalBusiness#subtypes
local_business_type = ""
# Organization name (optional)
# Enter an organization or project name. Defaults to the site title from `config.toml`.
org_name = ""
# Description for social sharing and search engines. If undefined, superuser role is used in place. # Description for social sharing and search engines. If undefined, superuser role is used in place.
description = "" 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 visitor shares your site on Twitter.
twitter = ""
# Display a logo in navigation bar rather than title (optional). # Display 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 "". # To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "".
logo = "" logo = ""
############################
## Site Features
############################
# Enable source code highlighting? true/false # Enable source code highlighting? true/false
# Documentation: https://sourcethemes.com/academic/docs/writing-markdown-latex/#highlighting-options # Documentation: https://sourcethemes.com/academic/docs/writing-markdown-latex/#highlighting-options
highlight = true highlight = true
@ -54,26 +75,33 @@ privacy_pack = false
# Enable visitors to edit pages? # Enable visitors to edit pages?
# `repo` defines the repository URL. `editable` defines which page types can be edited. # `repo` defines the repository URL. `editable` defines which page types can be edited.
edit_page = {repo_url = "", repo_branch = "master", editable = {docs = true, page = false, post = false}} edit_page = {repo_url = "https://github.com/gcushen/hugo-academic", repo_branch = "master", editable = {docs = true, page = false, post = 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 ## ## Contact details
##
## These details power the Contact widget (if enabled).
## Additionally, for organizations, these details may be used to enrich search engine results.
############################ ############################
# Enter contact details (optional). To hide a field, clear it to "". # Enter contact details (optional). To hide a field, clear it to "".
email = "test@example.org" email = "test@example.org"
phone = "888 888 88 88" phone = "888 888 88 88"
address = "Building 1 Room 1, Stanford University, California, 90210, USA"
# Office hours: use `<br>` to insert a line break, or set to "" to remove office hours # Address
office_hours = """Monday 10:00 to 13:00<br> # For country_code, use the 2-letter ISO code (see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 )
Wednesday 09:00 to 10:00""" address = {street = "450 Serra Mall", city = "Stanford", region = "CA", postcode = "94305", country = "United States", country_code = "US"}
# Geographic coordinates
# To get your coordinates, right-click on Google Maps and choose "What's here?". The coords will show up at the bottom.
coordinates = {latitude = "37.4275", longitude = "-122.1697"}
# Directions for visitors to locate you.
directions = "Enter Building 1 and take the stairs to Office 200 on Floor 2"
# Office hours
# A list of your office hours. To remove, set to an empty list `[]`.
office_hours = ["Monday 10:00 to 13:00", "Wednesday 09:00 to 10:00"]
# Enter an optional link for booking appointments (e.g. calendly.com). # Enter an optional link for booking appointments (e.g. calendly.com).
appointment_url = "https://calendly.com" appointment_url = "https://calendly.com"
@ -88,43 +116,32 @@ contact_links = [
# {icon = "telegram", icon_pack = "fab", name = "Telegram Me", link = "https://telegram.me/@Telegram"}, # {icon = "telegram", icon_pack = "fab", name = "Telegram Me", link = "https://telegram.me/@Telegram"},
] ]
# Display a map. ############################
# To show your address on a map in the contact widget, you need to enter your latitude, longitude and choose ## Social
# 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 = "37.4275"
longitude = "-122.1697"
zoom = 15
# Address line delimiter # 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 visitor shares your site on Twitter.
twitter = ""
############################
## Regional Settings
############################
# 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"
# List delimiter (separates parts of an address)
# Popular separators are ", " (comma), "<br>" (new line), " " (space) # Popular separators are ", " (comma), "<br>" (new line), " " (space)
address_delimiter = ", " list_delimiter = ", "
############################ ############################
## Plugins ## ## Advanced
############################
# 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) # Get user avatars from Gravatar.com? (true/false)
@ -143,6 +160,12 @@ docs_section_pager = true # Display pager in Docs layout (e.g. tutorials)?
# Enable in-built social sharing buttons? (true/false) # Enable in-built social sharing buttons? (true/false)
sharing = true sharing = true
# 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 = []
# Configuration of publication pages. # Configuration of publication pages.
[publications] [publications]
# Date format (refer to https://sourcethemes.com/academic/docs/customization/#date-format ) # Date format (refer to https://sourcethemes.com/academic/docs/customization/#date-format )
@ -163,7 +186,9 @@ sharing = true
publication_view = 2 publication_view = 2
talk_view = 2 talk_view = 2
# Comments. ############################
## Comments
############################
[comments] [comments]
# Comment provider: # Comment provider:
# 0: Disabled # 0: Disabled
@ -179,7 +204,9 @@ sharing = true
shortname = "" # Paste the shortname from your Disqus dashboard. shortname = "" # Paste the shortname from your Disqus dashboard.
show_count = true # Show comment count in page header? (true/false) show_count = true # Show comment count in page header? (true/false)
# Search. ############################
## Search
############################
[search] [search]
# Search provider: # Search provider:
# 0: No search engine # 0: No search engine
@ -194,3 +221,25 @@ sharing = true
api_key = "" api_key = ""
index_name = "" index_name = ""
show_logo = false show_logo = false
############################
## Maps
############################
[map]
# To show your address on a map in the Contact widget, enter your latitude and longitude (above)
# and choose a map provider below.
#
# To use Google Maps, set `engine` to 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 `engine` to 2.
# To use OpenStreetMap on a high traffic site, set `engine` to 3 and enter your API key that can be obtained here:
# https://www.mapbox.com/studio/account/tokens
#
# Map provider:
# 0: No map
# 1: Google Maps
# 2: OpenStreetMap (Mapnik)
# 3: OpenStreetMap (Mapbox)
engine = 2
api_key = ""
zoom = 15

@ -1 +1 @@
Subproject commit e9a79251526425b769dbcac6816882b998564371 Subproject commit 55106c1ff641243b068f3fb4e34d5ea6d4d53232