From 935c169bed1334dc98f90b402dd0fe91ed65c1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Alvari=C3=B1o?= Date: Fri, 5 Jul 2024 18:44:08 +0200 Subject: [PATCH] dev: update of config files to last FixIt release --- config/_default/author.toml | 8 -------- config/_default/markup.toml | 1 + config/_default/menus.toml | 24 +++++++++++++++++++++++- config/_default/outputFormats.toml | 26 ++++++++++++++++++++++++-- config/_default/outputs.toml | 11 ++++++++--- config/_default/params.toml | 1 - 6 files changed, 56 insertions(+), 15 deletions(-) delete mode 100644 config/_default/author.toml diff --git a/config/_default/author.toml b/config/_default/author.toml deleted file mode 100644 index eb51c25..0000000 --- a/config/_default/author.toml +++ /dev/null @@ -1,8 +0,0 @@ -# ------------------------------------------------------------------------------------- -# Author Configuration -# ------------------------------------------------------------------------------------- - -name = "salvari" -email = "salvari@protonmail.com" -link = "https://comacero.com/" -avatar = "" diff --git a/config/_default/markup.toml b/config/_default/markup.toml index a994cf8..cfe499a 100644 --- a/config/_default/markup.toml +++ b/config/_default/markup.toml @@ -39,5 +39,6 @@ # Table Of Contents settings [tableOfContents] + ordered = false startLevel = 2 endLevel = 6 diff --git a/config/_default/menus.toml b/config/_default/menus.toml index a750d43..c8f1d95 100644 --- a/config/_default/menus.toml +++ b/config/_default/menus.toml @@ -24,6 +24,28 @@ icon = "fa-solid fa-archive" # FixIt 0.2.16 | NEW set menu item type, optional values: ["mobile", "desktop"] type = "" + [[main]] + identifier = "archives" + parent = "" + # you can add extra information before the name (HTML format is supported), such as icons + pre = "" + # you can add extra information after the name (HTML format is supported), such as icons + post = "" + name = "Archives" + url = "/archives/" + # title will be shown when you hover on this menu link + title = "" + weight = 10 + # FixIt 0.2.14 | NEW add user-defined content to menu items + [main.params] + # add css class to a specific menu item + class = "" + # whether set as a draft menu item whose function is similar to a draft post/page + draft = false + # FixIt 0.2.16 | NEW add fontawesome icon to a specific menu item + icon = "fa-solid fa-archive" + # FixIt 0.2.16 | NEW set menu item type, optional values: ["mobile", "desktop"] + type = "" [[main]] identifier = "categories" pre = "" @@ -81,6 +103,6 @@ name = "Acerca de" url = "/about/" title = "" - weight = 10 + weight = 11 [main.params] icon = "fa-solid fa-info-circle" diff --git a/config/_default/outputFormats.toml b/config/_default/outputFormats.toml index 4353b24..371ffc4 100644 --- a/config/_default/outputFormats.toml +++ b/config/_default/outputFormats.toml @@ -8,8 +8,30 @@ mediaType = "text/markdown" isPlainText = true isHTML = false -# Options to make output baidu_urls.txt file -[BaiduUrls] +# FixIt 0.3.0 | NEW Options to make output /archives/index.html file +[archives] + path = "archives" + baseName = "index" + mediaType = "text/html" + isPlainText = false + isHTML = true + permalinkable = true +# FixIt 0.3.0 | NEW Options to make output /offline/index.html file +[offline] + path = "offline" + baseName = "index" + mediaType = "text/html" + isPlainText = false + isHTML = true + permalinkable = true +# FixIt 0.3.0 | NEW Options to make output readme.md file +[README] + baseName = "readme" + mediaType = "text/markdown" + isPlainText = true + isHTML = false +# FixIt 0.3.0 | CHANGED Options to make output baidu_urls.txt file +[baidu_urls] baseName = "baidu_urls" mediaType = "text/plain" isPlainText = true diff --git a/config/_default/outputs.toml b/config/_default/outputs.toml index a28ad84..3ef3837 100644 --- a/config/_default/outputs.toml +++ b/config/_default/outputs.toml @@ -3,9 +3,14 @@ # See: https://gohugo.io/templates/output-formats/#customizing-output-formats # ------------------------------------------------------------------------------------- -# Options to make hugo output files -home = ["HTML", "RSS", "JSON", "BaiduUrls"] +# Options to make hugo output files, the optional values are below: +# home: ["HTML", "RSS", "JSON", "archives", "offline", "README", "baidu_urls"] +# page: ["HTML", "MarkDown"] +# section: ["HTML", "RSS"] +# taxonomy: ["HTML", "RSS"] +# term: ["HTML", "RSS"] +home = ["HTML", "RSS", "JSON", "archives", "offline"] page = ["HTML", "MarkDown"] section = ["HTML", "RSS"] taxonomy = ["HTML"] -Term = ["HTML", "RSS"] +term = ["HTML", "RSS"] diff --git a/config/_default/params.toml b/config/_default/params.toml index de5071a..2156cb7 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -38,7 +38,6 @@ indexWithSubtitle = false # You can turn it off, but we would really appreciate if you don’t, as this is a good way to watch FixIt's popularity on the rise. disableThemeInject = false - # Author Configuration [author] name = "salvari"