From 0e48c7d58653b158d11cdcc909ce308b0b232da3 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Sun, 4 Sep 2022 19:00:58 +0800 Subject: [PATCH] add config for github pages --- exampleSite/config-exmaple.toml | 82 +++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 exampleSite/config-exmaple.toml diff --git a/exampleSite/config-exmaple.toml b/exampleSite/config-exmaple.toml new file mode 100644 index 0000000..aed30e3 --- /dev/null +++ b/exampleSite/config-exmaple.toml @@ -0,0 +1,82 @@ +title = "Flat theme" +theme = "hugo-theme-flat" +themesDir = "../.." +enableRobotsTXT = true +hasCJKLanguage = true +paginate = 6 +baseURL = "https://leafee98.github.io/hugo-theme-flat/" + +# these values are hugo built in markup config +[markup.highlight] +anchorLineNos = false +codeFences = true +guessSyntax = false +hl_Lines = '' +lineAnchors = '' +lineNoStart = 1 +lineNos = false +lineNumbersInTable = false +noClasses = false +noHl = false +style = 'monokailight' +tabWidth = 4 + +[params] +mainSections = ['posts'] + +## uncomment belows and set proper values to enable remark42 +# [params.remark42] +# host='' +# site_id='' +# max_shown_comments=100 +# theme='light' +# locale='en' +# show_email_subscription=false +# simple_view=true + + +# you can set multi row of footers like these +[[params.footer_rows]] +[[params.footer_rows.items]] +name = "Creative Commons Attribution 4.0 International" +url = "https://creativecommons.org/licenses/by/4.0/" +pre = "Copyright CC BY-4.0" + +[[params.footer_rows]] +[[params.footer_rows.items]] +name = "Hugo" +url = "https://gohugo.io" +pre = "Powered by Hugo" +[[params.footer_rows.items]] +name = "theme flat" +url = "https://cgit.leafee98.com/hugo-theme-flat.git" +pre = "Theme hugo-theme-flat" + + +[[menus.main]] +name = "Posts" +url = "/posts/" +weight = 30 + +[[menus.main]] +name = "Essays" +url = "/essays/" +weight = 40 + +[[menus.main]] +pageref = "about" +name = "About" +weight = 80 + +# 2-level sub menus are supported +[[menus.main]] +name = "Services" +weight = 60 +[[menus.main]] +parent = "Services" +name = "Service A" +url = "#" +[[menus.main]] +parent = "Services" +name = "Service B" +url = "#"