From 58c0d2e6cb98bd12ed379a1e214339aab2ad4474 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 11 Sep 2019 13:28:36 +0100 Subject: [PATCH] theme: upgrade to latest v4.5-dev - get new params structure --- config/_default/params.toml | 157 +++++++++++++++++++++++------------- themes/academic | 2 +- 2 files changed, 104 insertions(+), 55 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index b29198e..5794026 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -1,6 +1,10 @@ # SITE SETUP # Documentation: https://sourcethemes.com/academic/ +############################ +## Theme +############################ + # Choose a theme. # Latest themes (may require updating): https://sourcethemes.com/academic/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) 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 = "" -# 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). # To enable, place an image in `static/img/` and reference its filename below. To disable, set the value to "". logo = "" +############################ +## Site Features +############################ + # Enable source code highlighting? true/false # Documentation: https://sourcethemes.com/academic/docs/writing-markdown-latex/#highlighting-options highlight = true @@ -53,27 +74,34 @@ diagram = false privacy_pack = false # Enable visitors to edit pages? -# `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}} - -# 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" +# `repo` defines the repository URL. `editable` defines which page types can be edited. +edit_page = {repo_url = "https://github.com/gcushen/hugo-academic", repo_branch = "master", editable = {docs = true, page = false, post = false}} ############################ -## 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 "". email = "test@example.org" phone = "888 888 88 88" -address = "Building 1 Room 1, Stanford University, California, 90210, USA" -# Office hours: use `
` to insert a line break, or set to "" to remove office hours -office_hours = """Monday 10:00 to 13:00
- Wednesday 09:00 to 10:00""" +# Address +# For country_code, use the 2-letter ISO code (see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ) +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). appointment_url = "https://calendly.com" @@ -88,43 +116,32 @@ contact_links = [ # {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 -# 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 +############################ +## Social +############################ -# 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), "
" (new line), " " (space) -address_delimiter = ", " +list_delimiter = ", " ############################ -## 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 ## +## Advanced ############################ # 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) 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. [publications] # Date format (refer to https://sourcethemes.com/academic/docs/customization/#date-format ) @@ -163,7 +186,9 @@ sharing = true publication_view = 2 talk_view = 2 -# Comments. +############################ +## Comments +############################ [comments] # Comment provider: # 0: Disabled @@ -179,7 +204,9 @@ sharing = true shortname = "" # Paste the shortname from your Disqus dashboard. show_count = true # Show comment count in page header? (true/false) -# Search. +############################ +## Search +############################ [search] # Search provider: # 0: No search engine @@ -194,3 +221,25 @@ sharing = true api_key = "" index_name = "" 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 diff --git a/themes/academic b/themes/academic index e9a7925..55106c1 160000 --- a/themes/academic +++ b/themes/academic @@ -1 +1 @@ -Subproject commit e9a79251526425b769dbcac6816882b998564371 +Subproject commit 55106c1ff641243b068f3fb4e34d5ea6d4d53232