diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..e583759 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1 @@ +

Test

diff --git a/themes/minimal-theme/assets/sass/main.scss b/themes/minimal-theme/assets/sass/main.scss new file mode 100644 index 0000000..d56de16 --- /dev/null +++ b/themes/minimal-theme/assets/sass/main.scss @@ -0,0 +1,2 @@ +@import "node_modules/bootstrap/scss/bootstrap.scss"; +@import "styles.scss"; diff --git a/themes/minimal-theme/assets/sass/styles.scss b/themes/minimal-theme/assets/sass/styles.scss new file mode 100644 index 0000000..e69de29 diff --git a/themes/minimal-theme/hugo.toml b/themes/minimal-theme/hugo.toml deleted file mode 100644 index 7e5629f..0000000 --- a/themes/minimal-theme/hugo.toml +++ /dev/null @@ -1,7 +0,0 @@ -languageCode = 'en-us' -title = 'Custom minimal theme' - -[module] - [module.hugoVersion] - extended = false - min = "0.116.0" diff --git a/themes/minimal-theme/layouts/partials/head.html b/themes/minimal-theme/layouts/partials/head.html index 08a250e..552ebda 100644 --- a/themes/minimal-theme/layouts/partials/head.html +++ b/themes/minimal-theme/layouts/partials/head.html @@ -3,4 +3,6 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} {{ partialCached "head/css.html" . }} + diff --git a/themes/minimal-theme/layouts/partials/head/css.html b/themes/minimal-theme/layouts/partials/head/css.html index 1c08f61..f9826c5 100644 --- a/themes/minimal-theme/layouts/partials/head/css.html +++ b/themes/minimal-theme/layouts/partials/head/css.html @@ -1,4 +1,6 @@ -{{- with resources.Get "sass/main.scss" | toCSS $options | minify }} +{{ $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed") }} +{{ $style := resources.Get "sass/main.scss" | toCSS $options | minify }} +{{- with $style }} {{- if eq hugo.Environment "development" }} {{- else }} diff --git a/themes/minimal-theme/theme.toml b/themes/minimal-theme/theme.toml index 3ba3164..7a7a24f 100644 --- a/themes/minimal-theme/theme.toml +++ b/themes/minimal-theme/theme.toml @@ -3,29 +3,11 @@ license = 'MIT' licenselink = 'https://github.com/owner/repo/LICENSE' description = 'Theme description' -# The home page of the theme, where the source can be found -homepage = 'https://github.com/owner/repo' - -# If you have a running demo of the theme -demosite = 'https://owner.github.io/repo' - -# Taxonomy terms -tags = ['blog', 'company'] -features = ['some', 'awesome', 'features'] - -# If the theme has multiple authors -authors = [ - {name = 'Name of author', homepage = 'Website of author'}, - {name = 'Name of author', homepage = 'Website of author'} -] - # If the theme has a single author [author] - name = 'Your name' - homepage = 'Your website' + name = 'Robin Mueller' -# If porting an existing theme -[original] - author = 'Name of original author' - homepage = 'Website of original author' - repo = 'https://github.com/owner/repo' +[module] +[[module.mounts]] + source = "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js" + target = "assets/js/bootstrap.bundle.min.js"