From 5b2d67bdb4eafd5ddbc67ab72c6af54230baa63e Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 22 Jul 2019 21:33:38 +0100 Subject: [PATCH] theme: upgrade to v4.5-dev --- config/_default/config.toml | 3 --- config/_default/params.toml | 21 +++++++++++++++++---- content/home/projects.md | 1 + data/page_sharer.toml | 8 ++++++++ themes/academic | 2 +- 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index 3dcac10..fc88706 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -18,9 +18,6 @@ copyright = "" # Enable analytics by entering your Google Analytics tracking ID googleAnalytics = "" -# Enable comments by entering your Disqus shortname -disqusShortname = "" - ############################ ## Advanced options below ## ############################ diff --git a/config/_default/params.toml b/config/_default/params.toml index 4ea7712..877dd39 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -45,7 +45,7 @@ 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 = "", editable = {docs = true}} +edit_page = {repo_url = "", 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" @@ -123,9 +123,6 @@ menu_align_right = false # 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)? @@ -153,6 +150,22 @@ sharing = true publication_view = 2 talk_view = 2 +# Comments. +[comments] + # Comment provider: + # 0: Disabled + # 1: Disqus (https://disqus.com) + # 2: Commento (https://commento.io) + engine = 0 + + # Which page types are commentable? + commentable = {page = true, post = true, docs = true} + + # Configuration of Disqus. + [comments.disqus] + shortname = "" # Paste the shortname from your Disqus dashboard. + show_count = true # Show comment count in page header? (true/false) + # Search. [search] # Search provider: diff --git a/content/home/projects.md b/content/home/projects.md index c01e8b8..660aa97 100644 --- a/content/home/projects.md +++ b/content/home/projects.md @@ -39,6 +39,7 @@ subtitle = "" # Toggle between the various page layout types. # 1 = List + # 2 = Compact # 3 = Card # 5 = Showcase view = 3 diff --git a/data/page_sharer.toml b/data/page_sharer.toml index e0e5aad..8eb3670 100644 --- a/data/page_sharer.toml +++ b/data/page_sharer.toml @@ -56,3 +56,11 @@ icon_pack = "fab" icon = "reddit-alien" enable = false + +[[buttons]] + id = "pinterest" + url = "https://pinterest.com/pin/create/link/?url={url}&description={title}" + title = "Pinterest" + icon_pack = "fab" + icon = "pinterest" + enable = false diff --git a/themes/academic b/themes/academic index 5b4d118..a1ba678 160000 --- a/themes/academic +++ b/themes/academic @@ -1 +1 @@ -Subproject commit 5b4d11825e7c5ff3eb3125d049a34107e512d2ed +Subproject commit a1ba678e793edc2992f2202f228c9e3449ce3784