From 20e87403091d8c73049991af87aa76d7d3763d09 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 11 May 2022 08:47:21 +0200 Subject: Simplefied dev workflow, remove go.mod and go.sum --- exampleSite/config.toml | 24 ++++++++++++++---------- exampleSite/go.mod | 7 ------- exampleSite/go.sum | 0 3 files changed, 14 insertions(+), 17 deletions(-) delete mode 100644 exampleSite/go.mod delete mode 100644 exampleSite/go.sum (limited to 'exampleSite') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fcc72f5..29aa2de 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -3,8 +3,7 @@ baseURL = 'https://example.com/' languageCode = 'en-us' defaultContentLanguage = 'en' title = 'Ed.' -theme = ['github.com/sergeyklay/gohugo-theme-ed'] -resourceDir = '../resources' +theme = 'ed' [languages] [languages.en] @@ -33,7 +32,7 @@ resourceDir = '../resources' readmore = true [params.assets] - # Relative paths to icons + # Site icons, relative to ./static favicon = '' # favicon.ico for legacy browsers svgicon = '' # A single SVG icon with a light/dark version for modern browsers apple_touch_icon = '' # 180×180 PNG image for Apple devices @@ -46,12 +45,13 @@ resourceDir = '../resources' facebook_admin = '' facebook_id = '' +# https://gohugo.io/content-management/menus/ [menu] - [[menu.main]] - identifier = 'home' - name = 'Home' - url = '/' - weight = 1 + [[menu.main]] # sections in the website sidebar + identifier = 'home' # section id + name = 'Home' # section display title + url = '/' # path to the section + weight = 1 # order of sections [[menu.main]] identifier = 'about' name = 'About' @@ -75,10 +75,14 @@ resourceDir = '../resources' [menu.main.params] external = true +# https://gohugo.io/getting-started/configuration-markup/ [markup] + defaultMarkdownHandler = 'goldmark' + [markup.highlight] - # Syntax highlighting theme - style = 'monokailight' + # Syntax highlight style, see https://xyproto.github.io/splash/docs/ + style = 'emacs' + [markup.goldmark] [markup.goldmark.parser] [markup.goldmark.parser.attribute] diff --git a/exampleSite/go.mod b/exampleSite/go.mod deleted file mode 100644 index b284689..0000000 --- a/exampleSite/go.mod +++ /dev/null @@ -1,7 +0,0 @@ -module github.com/sergeyklay/gohugo-theme-ed/exampleSite - -go 1.18 - -replace github.com/sergeyklay/gohugo-theme-ed => ../ - -require github.com/sergeyklay/gohugo-theme-ed v0.0.0-20220424201054-c40490eb087e // indirect diff --git a/exampleSite/go.sum b/exampleSite/go.sum deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3