finally integrated bootsstrap
This commit is contained in:
parent
f4ed8a3987
commit
45a6b0967c
1
layouts/index.html
Normal file
1
layouts/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h1>Test</h1>
|
2
themes/minimal-theme/assets/sass/main.scss
Normal file
2
themes/minimal-theme/assets/sass/main.scss
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@import "node_modules/bootstrap/scss/bootstrap.scss";
|
||||||
|
@import "styles.scss";
|
0
themes/minimal-theme/assets/sass/styles.scss
Normal file
0
themes/minimal-theme/assets/sass/styles.scss
Normal file
@ -1,7 +0,0 @@
|
|||||||
languageCode = 'en-us'
|
|
||||||
title = 'Custom minimal theme'
|
|
||||||
|
|
||||||
[module]
|
|
||||||
[module.hugoVersion]
|
|
||||||
extended = false
|
|
||||||
min = "0.116.0"
|
|
@ -3,4 +3,6 @@
|
|||||||
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
||||||
|
|
||||||
{{ partialCached "head/css.html" . }}
|
{{ partialCached "head/css.html" . }}
|
||||||
|
<!--
|
||||||
{{ partialCached "head/js.html" . }}
|
{{ partialCached "head/js.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" }}
|
{{- if eq hugo.Environment "development" }}
|
||||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
@ -3,29 +3,11 @@ license = 'MIT'
|
|||||||
licenselink = 'https://github.com/owner/repo/LICENSE'
|
licenselink = 'https://github.com/owner/repo/LICENSE'
|
||||||
description = 'Theme description'
|
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
|
# If the theme has a single author
|
||||||
[author]
|
[author]
|
||||||
name = 'Your name'
|
name = 'Robin Mueller'
|
||||||
homepage = 'Your website'
|
|
||||||
|
|
||||||
# If porting an existing theme
|
[module]
|
||||||
[original]
|
[[module.mounts]]
|
||||||
author = 'Name of original author'
|
source = "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
|
||||||
homepage = 'Website of original author'
|
target = "assets/js/bootstrap.bundle.min.js"
|
||||||
repo = 'https://github.com/owner/repo'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user