finally integrated bootsstrap

This commit is contained in:
Robin Müller 2023-12-08 12:05:04 +01:00
parent f4ed8a3987
commit 45a6b0967c
Signed by: muellerr
GPG Key ID: A649FB78196E3849
7 changed files with 13 additions and 31 deletions

1
layouts/index.html Normal file
View File

@ -0,0 +1 @@
<h1>Test</h1>

View File

@ -0,0 +1,2 @@
@import "node_modules/bootstrap/scss/bootstrap.scss";
@import "styles.scss";

View File

@ -1,7 +0,0 @@
languageCode = 'en-us'
title = 'Custom minimal theme'
[module]
[module.hugoVersion]
extended = false
min = "0.116.0"

View File

@ -3,4 +3,6 @@
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
{{ partialCached "head/css.html" . }}
<!--
{{ partialCached "head/js.html" . }}
-->

View File

@ -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" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{- else }}

View File

@ -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"