diff options
| -rw-r--r-- | .gitattributes | 3 | ||||
| -rw-r--r-- | exampleSite/config.toml | 24 | ||||
| -rw-r--r-- | exampleSite/go.mod | 7 | ||||
| -rw-r--r-- | exampleSite/go.sum | 0 | ||||
| -rw-r--r-- | go.mod | 3 | ||||
| -rw-r--r-- | package.json | 4 |
6 files changed, 16 insertions, 25 deletions
diff --git a/.gitattributes b/.gitattributes index 723031e..ab8c7f1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -12,9 +12,6 @@ .gitignore export-ignore .github export-ignore -go.mod export-ignore -go.sum export-ignore - exampleSite/** linguist-vendored resources/_gen/** linguist-vendored 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 --- a/exampleSite/go.sum +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/sergeyklay/gohugo-theme-ed - -go 1.18 diff --git a/package.json b/package.json index 84c6f0c..3b968eb 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "url": "git+https://github.com/sergeyklay/gohugo-theme-ed.git" }, "scripts": { - "deploy": "cd exampleSite; hugo;", - "server": "cd exampleSite; hugo server -D --disableFastRender", + "build": "hugo --contentDir=exampleSite/content --gc --minify --themesDir=..", + "server": "hugo server --contentDir=exampleSite/content --disableFastRender --themesDir=..", "lint:editorconfig": "editorconfig-checker", "lint:js": "eslint static/js/*.js", "lint": "npm run lint:js && npm run lint:editorconfig" |
