Skip to content

Commit 80895ba

Browse files
committed
theme: upgrade to latest master
1 parent 018be3b commit 80895ba

File tree

4 files changed

+40
-5
lines changed

4 files changed

+40
-5
lines changed

config/_default/config.toml

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Configuration of Academic
2-
# Documentation: https://sourcethemes.com/academic/
1+
# Configuration of Hugo
2+
# Guide: https://sourcethemes.com/academic/docs/get-started/
3+
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
34
#
45
# This file is formatted using TOML syntax - learn more at https://learnxinyminutes.com/docs/toml/
56
# Each configuration section is defined by a name in square brackets (e.g. `[outputs]`).
@@ -55,6 +56,7 @@ ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "
5556
mediaType = "application/manifest+json"
5657
rel = "manifest"
5758

59+
# Configure the Markdown renderer.
5860
[markup]
5961
defaultMarkdownHandler = "goldmark"
6062
[markup.goldmark]
@@ -77,3 +79,29 @@ ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "
7779
category = "categories"
7880
publication_type = "publication_types"
7981
author = "authors"
82+
83+
# Related content.
84+
[related]
85+
threshold = 80.0
86+
includeNewer = true
87+
toLower = true
88+
89+
[[related.indices]]
90+
name = "title"
91+
weight = 60.0
92+
93+
[[related.indices]]
94+
name = "summary"
95+
weight = 50.0
96+
97+
[[related.indices]]
98+
name = "tags"
99+
weight = 80.0
100+
101+
[[related.indices]]
102+
name = "categories"
103+
weight = 70.0
104+
105+
[[related.indices]]
106+
name = "authors"
107+
weight = 20.0

config/_default/params.toml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# SITE SETUP
2-
# Documentation: https://sourcethemes.com/academic/
2+
# Guide: https://sourcethemes.com/academic/docs/get-started/
3+
# Documentation: https://sourcethemes.com/academic/docs/
4+
#
5+
# This file is formatted using TOML syntax - learn more at https://learnxinyminutes.com/docs/toml/
6+
# Each configuration section is defined by a name in square brackets (e.g. `[search]`).
37

48
############################
59
## Theme
@@ -73,6 +77,9 @@ privacy_pack = false
7377
# `repo` defines the repository URL. `editable` defines which page types can be edited.
7478
edit_page = {repo_url = "https://github.com/gcushen/hugo-academic", content_dir = "", repo_branch = "master", editable = {docs = true, page = false, post = false}}
7579

80+
# Show related content at the bottom of pages?
81+
show_related = {docs = true, page = false, post = true, project = true, publication = true, talk = true}
82+
7683
############################
7784
## Contact details
7885
##

data/page_sharer.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
[[buttons]]
3737
id = "whatsapp"
38-
url = "https://web.whatsapp.com/send?text={title}%20{url}"
38+
url = "whatsapp://send?text={title}%20{url}"
3939
title = "WhatsApp"
4040
icon_pack = "fab"
4141
icon = "whatsapp"

themes/academic

0 commit comments

Comments
 (0)