Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaud Lepretre <thibaud.lepretre@gmail.com>2021-08-14 20:51:10 +0300
committerThibaud Lepretre <thibaud.lepretre@gmail.com>2021-08-14 20:51:10 +0300
commit8573ce7af2dd949cab653d823bea625a808e77f8 (patch)
tree4501c57ece9bb0e5e728260f99b566487ace226e
parent1b1b6fe661002d7fb97ed5129cb70fa9706a19ca (diff)
Add Breaking changes
-rw-r--r--CHANGELOG.md194
1 files changed, 194 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8ccfba9..2acbae3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -39,6 +39,200 @@ If you'd like to start helping you can firstly look on that list of labelled iss
<b id="fnt1">*</b> I'm not using Math's stuffs at all, so it's hard for me to check no-regression. That why I'm looking for some help by creating a new post that expose Math feature. See issue [#478](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/478). [↩](#fnr1)
+### Breaking changes
+
+#### Update Font Awesome to v5
+
+Hugo Tranquilpeak now uses Font Awesome v5. In this new version, Font Awesome has separated web fonts in 3 categories: regular, solid and brands. Because of that, you now have to update your icons in the sidebar configuration and sharing options in the theme configuration to tell Font Awesome in which web fonts your icons are:
+
+- fa: for regular and solid icon
+ - fas: for solid icon only
+ - far: for regular icon only
+- fab: for brand icons
+
+Some icon names have also changed, so if at the end of the process, some icons are not displayed, make sure they still exist here: Font Awesome v5 - icons
+
+Here is an example to help you upgrade to the new version:
+
+**Before (`config.toml`):**
+
+```toml
+# ------------
+# Sidebar menu
+# ------------
+[[menu.main]]
+ weight = 1
+ identifier = "home"
+ name = "Home"
+ pre = "<i class=\"sidebar-button-icon fa fa-lg fa-home\"></i>"
+ url = "/"
+[[menu.main]]
+ weight = 2
+ identifier = "categories"
+ name = "Categories"
+ pre = "<i class=\"sidebar-button-icon fa fa-lg fa-bookmark\"></i>"
+ url = "/categories"
+[[menu.main]]
+ weight = 3
+ identifier = "tags"
+ name = "Tags"
+ pre = "<i class=\"sidebar-button-icon fa fa-lg fa-tags\"></i>"
+ url = "/tags"
+[[menu.main]]
+ weight = 4
+ identifier = "archives"
+ name = "Archives"
+ pre = "<i class=\"sidebar-button-icon fa fa-lg fa-archive\"></i>"
+ url = "/archives"
+[[menu.main]]
+ weight = 5
+ identifier = "about"
+ name = "About"
+ pre = "<i class=\"sidebar-button-icon fa fa-lg fa-question\"></i>"
+ url = "/#about"
+
+[[menu.links]]
+ weight = 1
+ identifier = "github"
+ name = "GitHub"
+ pre = "<i class=\"sidebar-button-icon fa fa-lg fa-github\"></i>"
+ url = "https://github.com/kakawait"
+[[menu.links]]
+ weight = 2
+ identifier = "stackoverflow"
+ name = "Stack Overflow"
+ pre = "<i class=\"sidebar-button-icon fa fa-lg fa-stack-overflow\"></i>"
+ url = "https://stackoverflow.com/users/636472/kakawait"
+
+[[menu.misc]]
+ weight = 1
+ identifier = "rss"
+ name = "RSS"
+ pre = "<i class=\"sidebar-button-icon fa fa-lg fa-rss\"></i>"
+ url = "/index.xml"
+
+[params]
+ # Sharing options
+ # Comment and uncomment to enable or disable sharing options
+ # If you wanna add a sharing option, read user documentation :
+ # Tranquilpeak configuration > Theme configuration > sharing-options
+ [[params.sharingOptions]]
+ name = "Facebook"
+ icon = "fa-facebook-official"
+ url = "https://www.facebook.com/sharer/sharer.php?u=%s"
+
+ [[params.sharingOptions]]
+ name = "Twitter"
+ icon = "fa-twitter"
+ url = "https://twitter.com/intent/tweet?text=%s"
+
+ [[params.sharingOptions]]
+ name = "Google+"
+ icon = "fa-google-plus"
+ url = "https://plus.google.com/share?url=%s"
+```
+
+**After (`config.toml`):**
+
+```toml
+# ------------
+# Sidebar menu
+# ------------
+[[menu.main]]
+ weight = 1
+ identifier = "home"
+ name = "Home"
+ pre = "<i class=\"sidebar-button-icon fas fa-lg fa-home\" aria-hidden=\"true\"></i>"
+ url = "/"
+[[menu.main]]
+ weight = 2
+ identifier = "categories"
+ name = "Categories"
+ pre = "<i class=\"sidebar-button-icon fas fa-lg fa-bookmark\" aria-hidden=\"true\"></i>"
+ url = "/categories"
+[[menu.main]]
+ weight = 3
+ identifier = "tags"
+ name = "Tags"
+ pre = "<i class=\"sidebar-button-icon fas fa-lg fa-tags\" aria-hidden=\"true\"></i>"
+ url = "/tags"
+[[menu.main]]
+ weight = 4
+ identifier = "archives"
+ name = "Archives"
+ pre = "<i class=\"sidebar-button-icon fas fa-lg fa-archive\" aria-hidden=\"true\"></i>"
+ url = "/archives"
+[[menu.main]]
+ weight = 5
+ identifier = "about"
+ name = "About"
+ pre = "<i class=\"sidebar-button-icon fas fa-lg fa-question\" aria-hidden=\"true\"></i>"
+ url = "/#about"
+
+[[menu.links]]
+ weight = 1
+ identifier = "github"
+ name = "GitHub"
+ pre = "<i class=\"sidebar-button-icon fab fa-lg fa-github\" aria-hidden=\"true\"></i>"
+ url = "https://github.com/kakawait"
+[[menu.links]]
+ weight = 2
+ identifier = "stackoverflow"
+ name = "Stack Overflow"
+ pre = "<i class=\"sidebar-button-icon fab fa-lg fa-stack-overflow\" aria-hidden=\"true\"></i>"
+ url = "https://stackoverflow.com/users/636472/kakawait"
+
+[[menu.misc]]
+ weight = 1
+ identifier = "rss"
+ name = "RSS"
+ pre = "<i class=\"sidebar-button-icon fas fa-lg fa-rss\" aria-hidden=\"true\"></i>"
+ url = "/index.xml"
+
+[params]
+ # ---------------
+ # Sharing options
+ # ---------------
+ # Comment and uncomment to enable or disable sharing options
+ # If you wanna add a sharing option, read user documentation :
+ # Tranquilpeak configuration > Theme configuration > sharing-options
+ [[params.sharingOptions]]
+ name = "Facebook"
+ icon = "fab fa-facebook-square"
+ url = "https://www.facebook.com/sharer/sharer.php?u=%s"
+
+ [[params.sharingOptions]]
+ name = "Twitter"
+ icon = "fab fa-twitter"
+ url = "https://twitter.com/intent/tweet?text=%s"
+
+ # Removed Google+ because service was shutdown
+```
+
+#### Main section
+
+Until now, Hugo Tranquilpeak was using hardcoded main section `post`. That force you to have the following content structure:
+
+```
+content/
+ post/
+ your-post.md
+ other-post.md
+```
+
+Since `0.5.0-BETA` Hugo tranquilpeak will now follow official recommendation https://gohugo.io/functions/where/#mainsections.
+
+You can configure your main(s) section(s) from `config.toml`
+
+```toml
+[params]
+ mainSections = ['posts']
+```
+
+but by default
+
+> If the user has not set this config parameter in their site config, it will default to the section with the most pages.
+
## [0.4.8-BETA](https://github.com/kakawait/hugo-tranquilpeak-theme/milestone/23) - 29 may 2020
- Fix regression from Hugo 0.71 ([#429](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/429))