mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2025-05-10 06:26:00 +02:00
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
98f68004b4
|
|||
b83065eb7d
|
|||
4a846731ee
|
|||
4721b523ca
|
|||
702b68c5dd | |||
233899fbfd | |||
f52497443b | |||
5581929151 | |||
2981031e4f
|
|||
ca4c64298b
|
|||
9a88f1943f
|
@ -53,6 +53,6 @@ There are several ways to help with the development of the theme:
|
|||||||
- Fork [the repository](https://github.com/alanorth/hugo-theme-bootstrap4-blog) on GitHub, add features on a "feature" branch like `update-bootstrap`, and then send a [pull request](https://github.com/alanorth/hugo-theme-bootstrap4-blog/compare) with your changes
|
- Fork [the repository](https://github.com/alanorth/hugo-theme-bootstrap4-blog) on GitHub, add features on a "feature" branch like `update-bootstrap`, and then send a [pull request](https://github.com/alanorth/hugo-theme-bootstrap4-blog/compare) with your changes
|
||||||
|
|
||||||
## License
|
## License
|
||||||
This repository contains the code of [Bootstrap](http://getbootstrap.com), which is licensed under the [MIT license](https://tldrlegal.com/license/mit-license), and [Font Awesome](http://fontawesome.io/), which uses [various licenses](http://fontawesome.io/license/).
|
This repository contains the code of [Bootstrap](https://getbootstrap.com), which is licensed under the [MIT license](https://tldrlegal.com/license/mit-license), and [Font Awesome](https://fontawesome.com/), which uses [various licenses](https://fontawesome.com/license/).
|
||||||
|
|
||||||
Otherwise, the contents are [GPLv3](https://www.gnu.org/licenses/gpl-3.0.txt).
|
Otherwise, the contents are [GPLv3](https://www.gnu.org/licenses/gpl-3.0.txt).
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
style = "sha384-0eEcVRNdgiKhIHlMYcIhtDgldz2K2jMxU3jAJfqFjf5kp7X6WUsWfM+5dncGxM0m"
|
style = "sha384-6+EGfPoOzk/n2DVJSlglKT8TV1TgIMvVcKI73IZgBswLasPBn94KommV6ilJqCXE"
|
||||||
cookieconsentcss = "sha384-Ul1H8jNudxII4JYT6VbQzsJj2XTAqp3zPv1YJwsTd19vCwtNBq+dgWS3DHuulhVe"
|
cookieconsentcss = "sha384-Ul1H8jNudxII4JYT6VbQzsJj2XTAqp3zPv1YJwsTd19vCwtNBq+dgWS3DHuulhVe"
|
||||||
cookieconsentjs = "sha384-MUoyijeybCtm4GFBhubnlrS2TscWkBDFkwCzXMofOGhiTYxVzoSfwaCM7HtNFzwN"
|
cookieconsentjs = "sha384-MUoyijeybCtm4GFBhubnlrS2TscWkBDFkwCzXMofOGhiTYxVzoSfwaCM7HtNFzwN"
|
||||||
|
@ -37,6 +37,9 @@ paginate = 5
|
|||||||
# Description/subtitle for homepage (can be Markdown)
|
# Description/subtitle for homepage (can be Markdown)
|
||||||
description = "A simple Hugo theme based on the Bootstrap v4 blog example."
|
description = "A simple Hugo theme based on the Bootstrap v4 blog example."
|
||||||
|
|
||||||
|
# Show header (default: true)
|
||||||
|
#header_visible = true
|
||||||
|
|
||||||
# Format dates with Go's time formatting
|
# Format dates with Go's time formatting
|
||||||
date_format = "Mon Jan 02, 2006"
|
date_format = "Mon Jan 02, 2006"
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ block "header" . }}
|
{{ block "header" . }}
|
||||||
|
{{ if (ne .Site.Params.header_visible false) }}
|
||||||
<header class="blog-header">
|
<header class="blog-header">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="blog-title"><a href="{{ .Site.BaseURL }}" rel="home">{{ .Site.Title | safeHTML }}</a></h1>
|
<h1 class="blog-title"><a href="{{ .Site.BaseURL }}" rel="home">{{ .Site.Title | safeHTML }}</a></h1>
|
||||||
@ -54,6 +55,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ block "body" . }}
|
{{ block "body" . }}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
{{ $truncate := default true .Site.Params.truncate }}
|
{{ $truncate := default true .Site.Params.truncate }}
|
||||||
{{ $paginator := .Paginate (where .Site.Pages "Section" "in" .Site.Params.mainSections) }}
|
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
{{ if $truncate }}
|
{{ if $truncate }}
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hugo-theme-bootstrap4-blog",
|
"name": "hugo-theme-bootstrap4-blog",
|
||||||
"version": "1.1.3",
|
"version": "1.1.5",
|
||||||
"description": "A Bootstrap v4 theme for the Hugo static site generator.",
|
"description": "A Bootstrap v4 theme for the Hugo static site generator.",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -18,10 +18,10 @@
|
|||||||
"author": "Alan Orth",
|
"author": "Alan Orth",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bootstrap": "4.1.2",
|
"bootstrap": "4.1.3",
|
||||||
"clean-css-cli": "^4.1.11",
|
"clean-css-cli": "^4.2.1",
|
||||||
"cookieconsent": "^3.0.4",
|
"cookieconsent": "^3.0.4",
|
||||||
"font-awesome": "^4.7.0",
|
"font-awesome": "^4.7.0",
|
||||||
"node-sass": "^4.9.1"
|
"node-sass": "^4.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
source/scss/bootstrap.scss
vendored
2
source/scss/bootstrap.scss
vendored
@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap v4.1.2 (https://getbootstrap.com/)
|
* Bootstrap v4.1.3 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2018 The Bootstrap Authors
|
* Copyright 2011-2018 The Bootstrap Authors
|
||||||
* Copyright 2011-2018 Twitter, Inc.
|
* Copyright 2011-2018 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user