From 1c81695625399d9b5725f72e9111732f0be51832 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Sun, 2 Jan 2022 04:11:14 +0100 Subject: [PATCH] updated configuration for use with hugo >0.90 Signed-off-by: Toshaan Bharvani --- config/_default/config.toml | 53 ++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index bd414bb..2820d87 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -5,16 +5,19 @@ theme = "openpowerfoundation" languageCode = "en-us" dataDir = "data" assetDir = "assets" -PaginatePath = "blog" +PaginatePath = "" sectionPagesMenu = "main" buildDrafts = false pygmentsUseClasses = true enableGitInfo = true enableRobotsTXT = true +disableHugoGeneratorInject = false +enableEmoji = true [outputs] - home = [ "HTML", "Calendar", "JSON" , "RSS" ] + home = [ "HTML", "JSON" , "RSS" ] specifications = [ "HTML", "JSON" ] + ready = [ "HTML", "JSON" ] schedule = [ "HTML", "Calendar" , "RSS" ] [outputFormats] @@ -22,6 +25,48 @@ enableRobotsTXT = true mediatype = "application/rss" baseName = "feed" suffix = "xml" - +[outputFormats.JSON] + mediaType = "application/json" + baseName = "index" + isPlainText = true + notAlternative = true + +[markup] +[markup.goldmark] [markup.goldmark.renderer] -unsafe = true + hardWraps = true + unsafe = true + xHTML = true +[markup.highlight] + codeFences = true + lineNos = true + lineNumbersInTable = true + noClasses = false +[markup.tableOfContents] + endLevel = 4 + ordered = false + startLevel = 2 + +[imaging] + resampleFilter = "MitchellNetravali" + quality = 100 + anchor = "smart" + bgColor = "#ffffff" +[imaging.exif] + includeFields = "" + excludeFields = ".*" + disableDate = false + disableLatLong = false + +[sitemap] + changefreq = "weekly" + filename = "sitemap.xml" + priority = 0.5 + +[taxonomies] + tag = "tags" + +[minify] +[minify.tdewolff] +[minify.tdewolff.html] + keepWhitespace = false