Merge branch 'master' of ssh://git.duckland.org:2202/don/www.donaldharper.com
3
.gitmodules
vendored
|
|
@ -1,3 +0,0 @@
|
|||
[submodule "themes/Bleach"]
|
||||
path = themes/Bleach
|
||||
url = https://github.com/digivend/bleach-theme
|
||||
15
config.toml
|
|
@ -9,6 +9,11 @@ theme = "Bleach"
|
|||
[author]
|
||||
name = "don"
|
||||
|
||||
[taxonomies]
|
||||
category = "categories"
|
||||
tag = "tags"
|
||||
series = "series"
|
||||
|
||||
[params]
|
||||
paginate = 5
|
||||
copyright = "All Rights Reserved - 2006 -"
|
||||
|
|
@ -26,8 +31,14 @@ theme = "Bleach"
|
|||
# set true if you are not proud of using Hugo (true will hide the footer note "Proudly published with HUGO.....")
|
||||
hideHUGOSupport = false
|
||||
showtoc = false
|
||||
[params.footer]
|
||||
company = "Donald Harper Photographs"
|
||||
[params.footer]
|
||||
company = "Donald Harper Photographs"
|
||||
[params.social]
|
||||
# facebook = "https://facebooke.com"
|
||||
twitter = "https://twitter.com/duckunix"
|
||||
instagram = "https://instagram.com/duckunix"
|
||||
github = "https://github.com/duckunix"
|
||||
# linkedin = "https://linkedin.com"
|
||||
|
||||
[outputs]
|
||||
home = [ "RSS", "HTML"]
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-01-05T10:05:00-07:00"
|
||||
title = "P52-1 : Butterfly"
|
||||
image = "/wp-content/uploads/2019/01/20190101182342.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-01-11T22:05:00-07:00"
|
||||
title = "P52-2 : Power Colors"
|
||||
image = "/wp-content/uploads/2019/01/20190109065804.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-01-17T22:05:00-07:00"
|
||||
title = "P52-3 : Oil Rig Sign"
|
||||
image = "/wp-content/uploads/2019/01/20190117074054.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-01-26T11:02:00-07:00"
|
||||
title = "P52-4 : Friday Sunrise"
|
||||
image = "/wp-content/uploads/2019/01/20190125075731.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-02-02T04:00:00-07:00"
|
||||
title = "P52-5 : Devil Duck Sitting Pretty"
|
||||
image = "/wp-content/uploads/2019/02/20190126141820.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-02-09T04:00:00-07:00"
|
||||
title = "P52-6 : I See You"
|
||||
image = "/wp-content/uploads/2019/02/20190202144335.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-02-15T04:00:00-07:00"
|
||||
title = "P52-6 : Royal Legos"
|
||||
image = "/wp-content/uploads/2019/02/20190210154207.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-02-22T04:00:00-07:00"
|
||||
title = "P52-7 : Reflections from the Roots"
|
||||
image = "/wp-content/uploads/2019/02/20190221154455.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-03-01T04:00:00-07:00"
|
||||
title = "P52-8 : Duck!"
|
||||
image = "/wp-content/uploads/2019/03/20190228184848.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-03-08T04:00:00-07:00"
|
||||
title = "P52-9 : Lost Reminder"
|
||||
image = "/wp-content/uploads/2019/03/20190307075921.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-03-15T04:00:00-07:00"
|
||||
title = "P52-10 : Small Devil Duck"
|
||||
image = "/wp-content/uploads/2019/03/20190312085038.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-03-22T04:00:00-07:00"
|
||||
title = "P52-11 : Let Sleeping Ducks Lie"
|
||||
image = "/wp-content/uploads/2019/03/20190316160220.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-03-29T04:00:00-07:00"
|
||||
title = "P52-13 : Tiny Duck, Big Universe"
|
||||
image = "/wp-content/uploads/2019/03/20190323155127218.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-04-04T04:00:00-07:00"
|
||||
title = "P52-13 : Reflections of Parking"
|
||||
image = "/wp-content/uploads/2019/04/20190404114452.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-04-12T04:00:00-07:00"
|
||||
title = "P52-14 : Coreopsis and Friend"
|
||||
image = "/wp-content/uploads/2019/04/20190412150030.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-04-18T04:00:00-07:00"
|
||||
title = "P52-15 : Sunrise Through Trees"
|
||||
image = "/wp-content/uploads/2019/04/20190414070453.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-04-26T04:00:00-07:00"
|
||||
title = "P52-16 : Cow and Tailgate"
|
||||
image = "/wp-content/uploads/2019/04/20190421083848.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-05-03T04:00:00-07:00"
|
||||
title = "P52-17 : Exploration in monocolor"
|
||||
image = "/wp-content/uploads/2019/05/20190430074526.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-05-10T04:00:00-07:00"
|
||||
title = "P52-18 : Blanket Flower"
|
||||
image = "/wp-content/uploads/2019/05/20190510143759.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-05-17T04:00:00-07:00"
|
||||
title = "P52-19 : Lots of dice"
|
||||
image = "/wp-content/uploads/2019/05/20190511110636.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-05-24T04:00:00-07:00"
|
||||
title = "P52-20 : McKinney Falls"
|
||||
image = "/wp-content/uploads/2019/05/20190518120737.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-05-31T04:00:00-07:00"
|
||||
title = "P52-21 : Blanket Flower"
|
||||
image = "/wp-content/uploads/2019/05/20190531072716106561.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
date = "2019-06-08T04:00:00-07:00"
|
||||
title = "P52-23 : Sunrise over Bournemouth"
|
||||
image = "/wp-content/uploads/2019/06/20190606055217.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
|
|
|
|||
7
content/posts/2019/06/14/p52-23-the-underground,-busy.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
date = "2019-06-14T04:00:00-07:00"
|
||||
title = "P52-23 : The Underground, Busy"
|
||||
image = "/wp-content/uploads/2019/06/20190612103041809355.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
7
content/posts/2019/06/21/p52-24-lego-astronaut.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
date = "2019-06-21T04:00:00-07:00"
|
||||
title = "P52-24 : Lego Astronaut"
|
||||
image = "/wp-content/uploads/2019/06/20190617210928889249.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
7
content/posts/2019/06/28/p52-25-signs-at-play.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
date = "2019-06-28T04:00:00-07:00"
|
||||
title = "P52-25 : Signs at Play"
|
||||
image = "/wp-content/uploads/2019/06/20190624183911.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
7
content/posts/2019/07/05/p52-26-monkey-fourth.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
date = "2019-07-05T04:00:00-07:00"
|
||||
title = "P52-26 : Monkey Fourth"
|
||||
image = "/wp-content/uploads/2019/07/20190704090028550645.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
7
content/posts/2019/07/12/p52-27-chairs-at-sunset.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
date = "2019-07-12T04:00:00-07:00"
|
||||
title = "P52-27 : Chairs at Sunset"
|
||||
image = "/wp-content/uploads/2019/07/20190708193632919222.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
7
content/posts/2019/07/19/p52-28-duck-swiming.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
date = "2019-07-19T04:00:00-07:00"
|
||||
title = "P52-28 : Duck Swiming"
|
||||
image = "/wp-content/uploads/2019/07/20190713163337.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
7
content/posts/2019/07/26/p52-29-work-tools.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
date = "2019-07-26T04:00:00-07:00"
|
||||
title = "P52-29 : Work Tools"
|
||||
image = "/wp-content/uploads/2019/07/20190726071800027136.jpg"
|
||||
series = ["Project 52"]
|
||||
+++
|
||||

|
||||
BIN
content/wp-content/uploads/2019/06/20190612103041809355.jpg
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
content/wp-content/uploads/2019/06/20190617210928889249.jpg
Normal file
|
After Width: | Height: | Size: 850 KiB |
BIN
content/wp-content/uploads/2019/06/20190624183911.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
content/wp-content/uploads/2019/07/20190704090028550645.jpg
Normal file
|
After Width: | Height: | Size: 2.2 MiB |
BIN
content/wp-content/uploads/2019/07/20190708193632919222.jpg
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
content/wp-content/uploads/2019/07/20190713163337.jpg
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
content/wp-content/uploads/2019/07/20190726071800027136.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
4
static/.htaccess
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
RewriteEngine On
|
||||
RewriteCond %{SERVER_PORT} 80
|
||||
RewriteRule ^(.*)$ https://www.donaldharper.com/$1 [R,L]
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 1a2fd1b40cb422b532dac13476250a22061456d6
|
||||
9
themes/Bleach/LICENSE
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 digiVend UG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
19
themes/Bleach/README.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Bleach for Hugo
|
||||
|
||||

|
||||
|
||||
Bleach is an HTML5 and Bootstrap based blog template for Hugo. It provides a simple and clean look for a modern and professional blog.
|
||||
|
||||
## Features
|
||||
|
||||
- Fully Responsive
|
||||
- Bootstrap
|
||||
- Lightweight
|
||||
|
||||
## License
|
||||
|
||||
This Template is released under [the MIT License](https://opensource.org/licenses/MIT).
|
||||
|
||||
## Installation
|
||||
|
||||
[Getting Started Guide](https://gohugo.io/getting-started/installing/)
|
||||
2
themes/Bleach/archetypes/default.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
+++
|
||||
+++
|
||||
475
themes/Bleach/assets/css/style.css
Normal file
|
|
@ -0,0 +1,475 @@
|
|||
/*= Basics =*/
|
||||
@import url(
|
||||
https://fonts.googleapis.com/css?family=Roboto:400,
|
||||
300,
|
||||
100,
|
||||
500,
|
||||
700
|
||||
);
|
||||
@import url(
|
||||
https://fonts.googleapis.com/css?family=Roboto+Condensed:400,
|
||||
300,
|
||||
700
|
||||
);
|
||||
@import url(https://fonts.googleapis.com/css?family=Glegoo);
|
||||
|
||||
body {
|
||||
font-family: "Roboto", sans-serif;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
font-size: 20px;
|
||||
line-height: 1.4;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
div {
|
||||
display: block;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
max-width: 90%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: rgba(100, 100, 100, 0.8);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
display: block;
|
||||
font-size: 1.5em;
|
||||
margin-block-start: 0.83em;
|
||||
margin-block-end: 0.83em;
|
||||
margin-inline-start: 0px;
|
||||
margin-inline-end: 0px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h3 {
|
||||
display: block;
|
||||
font-size: 1.17em;
|
||||
margin-block-start: 1em;
|
||||
margin-block-end: 1em;
|
||||
margin-inline-start: 0px;
|
||||
margin-inline-end: 0px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.clear {
|
||||
display: table;
|
||||
content: " ";
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.lightText {
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
fill: rgba(0, 0, 0, 0.54);
|
||||
}
|
||||
|
||||
.line-spacer {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
height: 0.5pt;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.content {
|
||||
}
|
||||
|
||||
.fof {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/*= Topbar =*/
|
||||
.topbar {
|
||||
top: 0;
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
color: #fff;
|
||||
transition: all 0.2s ease-out 0s;
|
||||
box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.1);
|
||||
border-bottom: 1px solid #dedede;
|
||||
z-index: 10;
|
||||
height: 67px;
|
||||
}
|
||||
|
||||
.topbar.animated-header {
|
||||
padding: 20px 0;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.brand {
|
||||
margin: 10px;
|
||||
height: 47px;
|
||||
}
|
||||
|
||||
.brand-title,
|
||||
.brand-title a {
|
||||
position: relative;
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
font-weight: 600;
|
||||
font-size: 26px;
|
||||
line-height: 1.6;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navbar.bg-light {
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
.navbar .nav-item .nav-link {
|
||||
color: #444 !important;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
transition: 0.3s all;
|
||||
text-transform: uppercase;
|
||||
padding: 5px 15px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.navbar .nav-item .nav-link:hover {
|
||||
color: #02bdd5 !important;
|
||||
}
|
||||
|
||||
.navbar .nav-item:last-child .nav-link {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.head-spacer {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
/*= Collection Body =*/
|
||||
|
||||
.collection {
|
||||
margin-bottom: 40px !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.collection-item-large {
|
||||
max-width: 1072px !important;
|
||||
width: 100vw;
|
||||
margin-bottom: 15px !important;
|
||||
box-sizing: border-box;
|
||||
max-height: 350px;
|
||||
}
|
||||
|
||||
.collection-item-large-thumb,
|
||||
.collection-item-large-content {
|
||||
position: relative;
|
||||
min-height: 1px;
|
||||
max-height: 350px;
|
||||
}
|
||||
|
||||
.collection-item-large-content {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.collection-item-large-thumb {
|
||||
width: 100%;
|
||||
height: 350px !important;
|
||||
}
|
||||
|
||||
.collection-item-large-headline {
|
||||
font-weight: 600;
|
||||
font-size: 34px;
|
||||
line-height: 1;
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
.collection-item-large-description,
|
||||
.collection-item-description {
|
||||
font-weight: 400 !important;
|
||||
font-size: 20px !important;
|
||||
line-height: 1.2 !important;
|
||||
}
|
||||
|
||||
.collection-item-clearfix {
|
||||
margin-top: 20px;
|
||||
font-size: 15px;
|
||||
line-height: 1.4px;
|
||||
padding-left: 10px;
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
.collection-item {
|
||||
margin-top: 15px !important;
|
||||
margin-bottom: 15px !important;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.collection-item-thumb,
|
||||
.collection-item-large-thumb {
|
||||
display: block;
|
||||
background-origin: border-box !important;
|
||||
background-size: cover !important;
|
||||
}
|
||||
|
||||
.collection-item-thumb {
|
||||
height: 172px;
|
||||
}
|
||||
|
||||
.collection-item-content {
|
||||
position: relative;
|
||||
min-height: 1px;
|
||||
}
|
||||
|
||||
.collection-item-headline {
|
||||
word-break: break-word;
|
||||
word-wrap: break-word;
|
||||
text-overflow: ellipsis !important;
|
||||
|
||||
line-height: 1.1;
|
||||
font-size: 26px;
|
||||
font-weight: 600;
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
/*= Footer =*/
|
||||
|
||||
.footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100vw;
|
||||
height: 40px;
|
||||
color: #000;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.copyright,
|
||||
.impressum,
|
||||
.social {
|
||||
margin-top: 10px !important;
|
||||
margin-bottom: 10px !important;
|
||||
font-size: 18px;
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
.impressum {
|
||||
float: right;
|
||||
margin-right: 40px;
|
||||
}
|
||||
|
||||
.impressum a {
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
.copyright {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.social {
|
||||
font-size: 20px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
margin-left: auto;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.social a {
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
/*= Post =*/
|
||||
|
||||
.post {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.post-header {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 60%;
|
||||
max-width: 1072px;
|
||||
}
|
||||
|
||||
.maintitle {
|
||||
padding-top: 16px !important;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 400;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 22px;
|
||||
font-size: 28px;
|
||||
line-height: 1.22;
|
||||
letter-spacing: -0.012em;
|
||||
}
|
||||
|
||||
.figure {
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
margin-top: 22px;
|
||||
margin-bottom: 40px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.figure img {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transition: visibility 0s linear 0s, opacity 0.4s 0s;
|
||||
}
|
||||
|
||||
/*= Paginator =*/
|
||||
|
||||
.paginator {
|
||||
margin-top: 40px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.paginator .paginator-item {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.paginator .paginator-item a[disabled] {
|
||||
cursor: pointer;
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.paginator .paginator-item a.active {
|
||||
border: 1px solid rgba(0, 0, 0, 0.6);
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.paginator .paginator-item a:hover:not(.active) {
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
/*= Resize =*/
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.collection-latest {
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) and (max-width: 1199px) {
|
||||
.collection-latest {
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.collection-item-large-thumb {
|
||||
width: 100%;
|
||||
height: 350px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) and (max-width: 991px) {
|
||||
.collection-latest {
|
||||
height: 700px;
|
||||
}
|
||||
|
||||
.collection-item-large-thumb {
|
||||
max-width: 690px;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.collection-item-large-content {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) and (max-width: 767px) {
|
||||
.collection-item-large-thumb {
|
||||
width: 510px;
|
||||
height: 172px !important;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.collection-item-large-content {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.collection-item-large-headline {
|
||||
word-break: break-word;
|
||||
word-wrap: break-word;
|
||||
text-overflow: ellipsis !important;
|
||||
line-height: 1.1;
|
||||
font-size: 26px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.collection-item-large-description {
|
||||
font-weight: 400 !important;
|
||||
font-size: 20px !important;
|
||||
line-height: 1.2 !important;
|
||||
}
|
||||
|
||||
.line-spacer {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 575px) {
|
||||
.collection-item-large-thumb {
|
||||
margin-right: 47px;
|
||||
height: 172px !important;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.collection-item-large-content {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.collection-item-large-headline {
|
||||
word-break: break-word;
|
||||
word-wrap: break-word;
|
||||
text-overflow: ellipsis !important;
|
||||
line-height: 1.1;
|
||||
font-size: 26px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.collection-item-large-description {
|
||||
font-weight: 400 !important;
|
||||
font-size: 20px !important;
|
||||
line-height: 1.2 !important;
|
||||
}
|
||||
|
||||
.line-spacer {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 300px) {
|
||||
.brand-title {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
23
themes/Bleach/exampleSite/config.toml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
baseURL = "https://example.com"
|
||||
languageCode = "en-us"
|
||||
defaultContentLanguage = "en"
|
||||
title = "Bleach Example"
|
||||
theme = "Bleach"
|
||||
|
||||
[params]
|
||||
description = "A simple and lightweight Hugo theme for a blazing fast static blog!"
|
||||
author = "Your Name"
|
||||
logo = "images/logo.jpg"
|
||||
dateFormat = "Jan 2, 2006"
|
||||
googleAnalitycsID = "Your ID"
|
||||
|
||||
[params.footer]
|
||||
impressum = false
|
||||
company = "example Inc."
|
||||
|
||||
[params.social]
|
||||
facebook = "https://facebooke.com"
|
||||
twitter = "https://twitter.com"
|
||||
instagram = "https://instagram.com"
|
||||
# github = "https://github.com"
|
||||
# linkedin = "https://linkedin.com"
|
||||
10
themes/Bleach/exampleSite/content/impressum.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
title: "Impressum"
|
||||
date: "2019-03-07"
|
||||
type: "impressum"
|
||||
author: Daniel Igel
|
||||
---
|
||||
|
||||
# Impressum
|
||||
|
||||
This site is really only necessary for German users. Do learn more about an Impressum click [here](https://www.e-recht24.de/artikel/datenschutz/209.html) (German).
|
||||
8
themes/Bleach/exampleSite/content/posts/blog1.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: "Basic Block Post"
|
||||
date: "2019-03-07"
|
||||
description: "This is an example blog post."
|
||||
tags: ["basic", "templates", "example"]
|
||||
---
|
||||
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
325
themes/Bleach/exampleSite/content/posts/goisforlovers.md
Normal file
|
|
@ -0,0 +1,325 @@
|
|||
---
|
||||
date: "2014-04-02"
|
||||
tags: ["go", "templates", "hugo"]
|
||||
title: "(Hu)go Template Primer"
|
||||
image: "images/program.jpeg"
|
||||
---
|
||||
|
||||
Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for
|
||||
its template engine. It is an extremely lightweight engine that provides a very
|
||||
small amount of logic. In our experience that it is just the right amount of
|
||||
logic to be able to create a good static website. If you have used other
|
||||
template systems from different languages or frameworks you will find a lot of
|
||||
similarities in Go templates.
|
||||
|
||||
This document is a brief primer on using Go templates. The [Go docs][gohtmltemplate]
|
||||
provide more details.
|
||||
|
||||
## Introduction to Go Templates
|
||||
|
||||
Go templates provide an extremely simple template language. It adheres to the
|
||||
belief that only the most basic of logic belongs in the template or view layer.
|
||||
One consequence of this simplicity is that Go templates parse very quickly.
|
||||
|
||||
A unique characteristic of Go templates is they are content aware. Variables and
|
||||
content will be sanitized depending on the context of where they are used. More
|
||||
details can be found in the [Go docs][gohtmltemplate].
|
||||
|
||||
## Basic Syntax
|
||||
|
||||
Golang templates are HTML files with the addition of variables and
|
||||
functions.
|
||||
|
||||
**Go variables and functions are accessible within {{ }}**
|
||||
|
||||
Accessing a predefined variable "foo":
|
||||
|
||||
{{ foo }}
|
||||
|
||||
**Parameters are separated using spaces**
|
||||
|
||||
Calling the add function with input of 1, 2:
|
||||
|
||||
{{ add 1 2 }}
|
||||
|
||||
**Methods and fields are accessed via dot notation**
|
||||
|
||||
Accessing the Page Parameter "bar"
|
||||
|
||||
{{ .Params.bar }}
|
||||
|
||||
**Parentheses can be used to group items together**
|
||||
|
||||
{{ if or (isset .Params "alt") (isset .Params "caption") }} Caption {{ end }}
|
||||
|
||||
## Variables
|
||||
|
||||
Each Go template has a struct (object) made available to it. In hugo each
|
||||
template is passed either a page or a node struct depending on which type of
|
||||
page you are rendering. More details are available on the
|
||||
[variables](/layout/variables) page.
|
||||
|
||||
A variable is accessed by referencing the variable name.
|
||||
|
||||
<title>{{ .Title }}</title>
|
||||
|
||||
Variables can also be defined and referenced.
|
||||
|
||||
{{ $address := "123 Main St."}}
|
||||
{{ $address }}
|
||||
|
||||
## Functions
|
||||
|
||||
Go template ship with a few functions which provide basic functionality. The Go
|
||||
template system also provides a mechanism for applications to extend the
|
||||
available functions with their own. [Hugo template
|
||||
functions](/layout/functions) provide some additional functionality we believe
|
||||
are useful for building websites. Functions are called by using their name
|
||||
followed by the required parameters separated by spaces. Template
|
||||
functions cannot be added without recompiling hugo.
|
||||
|
||||
**Example:**
|
||||
|
||||
{{ add 1 2 }}
|
||||
|
||||
## Includes
|
||||
|
||||
When including another template you will pass to it the data it will be
|
||||
able to access. To pass along the current context please remember to
|
||||
include a trailing dot. The templates location will always be starting at
|
||||
the /layout/ directory within Hugo.
|
||||
|
||||
**Example:**
|
||||
|
||||
{{ template "chrome/header.html" . }}
|
||||
|
||||
## Logic
|
||||
|
||||
Go templates provide the most basic iteration and conditional logic.
|
||||
|
||||
### Iteration
|
||||
|
||||
Just like in Go, the Go templates make heavy use of range to iterate over
|
||||
a map, array or slice. The following are different examples of how to use
|
||||
range.
|
||||
|
||||
**Example 1: Using Context**
|
||||
|
||||
{{ range array }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
|
||||
**Example 2: Declaring value variable name**
|
||||
|
||||
{{range $element := array}}
|
||||
{{ $element }}
|
||||
{{ end }}
|
||||
|
||||
**Example 2: Declaring key and value variable name**
|
||||
|
||||
{{range $index, $element := array}}
|
||||
{{ $index }}
|
||||
{{ $element }}
|
||||
{{ end }}
|
||||
|
||||
### Conditionals
|
||||
|
||||
If, else, with, or, & and provide the framework for handling conditional
|
||||
logic in Go Templates. Like range, each statement is closed with `end`.
|
||||
|
||||
Go Templates treat the following values as false:
|
||||
|
||||
- false
|
||||
- 0
|
||||
- any array, slice, map, or string of length zero
|
||||
|
||||
**Example 1: If**
|
||||
|
||||
{{ if isset .Params "title" }}<h4>{{ index .Params "title" }}</h4>{{ end }}
|
||||
|
||||
**Example 2: If -> Else**
|
||||
|
||||
{{ if isset .Params "alt" }}
|
||||
{{ index .Params "alt" }}
|
||||
{{else}}
|
||||
{{ index .Params "caption" }}
|
||||
{{ end }}
|
||||
|
||||
**Example 3: And & Or**
|
||||
|
||||
{{ if and (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
|
||||
|
||||
**Example 4: With**
|
||||
|
||||
An alternative way of writing "if" and then referencing the same value
|
||||
is to use "with" instead. With rebinds the context `.` within its scope,
|
||||
and skips the block if the variable is absent.
|
||||
|
||||
The first example above could be simplified as:
|
||||
|
||||
{{ with .Params.title }}<h4>{{ . }}</h4>{{ end }}
|
||||
|
||||
**Example 5: If -> Else If**
|
||||
|
||||
{{ if isset .Params "alt" }}
|
||||
{{ index .Params "alt" }}
|
||||
{{ else if isset .Params "caption" }}
|
||||
{{ index .Params "caption" }}
|
||||
{{ end }}
|
||||
|
||||
## Pipes
|
||||
|
||||
One of the most powerful components of Go templates is the ability to
|
||||
stack actions one after another. This is done by using pipes. Borrowed
|
||||
from unix pipes, the concept is simple, each pipeline's output becomes the
|
||||
input of the following pipe.
|
||||
|
||||
Because of the very simple syntax of Go templates, the pipe is essential
|
||||
to being able to chain together function calls. One limitation of the
|
||||
pipes is that they only can work with a single value and that value
|
||||
becomes the last parameter of the next pipeline.
|
||||
|
||||
A few simple examples should help convey how to use the pipe.
|
||||
|
||||
**Example 1 :**
|
||||
|
||||
{{ if eq 1 1 }} Same {{ end }}
|
||||
|
||||
is the same as
|
||||
|
||||
{{ eq 1 1 | if }} Same {{ end }}
|
||||
|
||||
It does look odd to place the if at the end, but it does provide a good
|
||||
illustration of how to use the pipes.
|
||||
|
||||
**Example 2 :**
|
||||
|
||||
{{ index .Params "disqus_url" | html }}
|
||||
|
||||
Access the page parameter called "disqus_url" and escape the HTML.
|
||||
|
||||
**Example 3 :**
|
||||
|
||||
{{ if or (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
|
||||
Stuff Here
|
||||
{{ end }}
|
||||
|
||||
Could be rewritten as
|
||||
|
||||
{{ isset .Params "caption" | or isset .Params "title" | or isset .Params "attr" | if }}
|
||||
Stuff Here
|
||||
{{ end }}
|
||||
|
||||
## Context (aka. the dot)
|
||||
|
||||
The most easily overlooked concept to understand about Go templates is that {{ . }}
|
||||
always refers to the current context. In the top level of your template this
|
||||
will be the data set made available to it. Inside of a iteration it will have
|
||||
the value of the current item. When inside of a loop the context has changed. .
|
||||
will no longer refer to the data available to the entire page. If you need to
|
||||
access this from within the loop you will likely want to set it to a variable
|
||||
instead of depending on the context.
|
||||
|
||||
**Example:**
|
||||
|
||||
{{ $title := .Site.Title }}
|
||||
{{ range .Params.tags }}
|
||||
<li> <a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a> - {{ $title }} </li>
|
||||
{{ end }}
|
||||
|
||||
Notice how once we have entered the loop the value of {{ . }} has changed. We
|
||||
have defined a variable outside of the loop so we have access to it from within
|
||||
the loop.
|
||||
|
||||
# Hugo Parameters
|
||||
|
||||
Hugo provides the option of passing values to the template language
|
||||
through the site configuration (for sitewide values), or through the meta
|
||||
data of each specific piece of content. You can define any values of any
|
||||
type (supported by your front matter/config format) and use them however
|
||||
you want to inside of your templates.
|
||||
|
||||
## Using Content (page) Parameters
|
||||
|
||||
In each piece of content you can provide variables to be used by the
|
||||
templates. This happens in the [front matter](/content/front-matter).
|
||||
|
||||
An example of this is used in this documentation site. Most of the pages
|
||||
benefit from having the table of contents provided. Sometimes the TOC just
|
||||
doesn't make a lot of sense. We've defined a variable in our front matter
|
||||
of some pages to turn off the TOC from being displayed.
|
||||
|
||||
Here is the example front matter:
|
||||
|
||||
```
|
||||
---
|
||||
title: "Permalinks"
|
||||
date: "2013-11-18"
|
||||
aliases:
|
||||
- "/doc/permalinks/"
|
||||
groups: ["extras"]
|
||||
groups_weight: 30
|
||||
notoc: true
|
||||
---
|
||||
```
|
||||
|
||||
Here is the corresponding code inside of the template:
|
||||
|
||||
{{ if not .Params.notoc }}
|
||||
<div id="toc" class="well col-md-4 col-sm-6">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
## Using Site (config) Parameters
|
||||
|
||||
In your top-level configuration file (eg, `config.yaml`) you can define site
|
||||
parameters, which are values which will be available to you in chrome.
|
||||
|
||||
For instance, you might declare:
|
||||
|
||||
```yaml
|
||||
params:
|
||||
CopyrightHTML: "Copyright © 2013 John Doe. All Rights Reserved."
|
||||
TwitterUser: "spf13"
|
||||
SidebarRecentLimit: 5
|
||||
```
|
||||
|
||||
Within a footer layout, you might then declare a `<footer>` which is only
|
||||
provided if the `CopyrightHTML` parameter is provided, and if it is given,
|
||||
you would declare it to be HTML-safe, so that the HTML entity is not escaped
|
||||
again. This would let you easily update just your top-level config file each
|
||||
January 1st, instead of hunting through your templates.
|
||||
|
||||
```
|
||||
{{if .Site.Params.CopyrightHTML}}<footer>
|
||||
<div class="text-center">{{.Site.Params.CopyrightHTML | safeHtml}}</div>
|
||||
</footer>{{end}}
|
||||
```
|
||||
|
||||
An alternative way of writing the "if" and then referencing the same value
|
||||
is to use "with" instead. With rebinds the context `.` within its scope,
|
||||
and skips the block if the variable is absent:
|
||||
|
||||
```
|
||||
{{with .Site.Params.TwitterUser}}<span class="twitter">
|
||||
<a href="https://twitter.com/{{.}}" rel="author">
|
||||
<img src="/images/twitter.png" width="48" height="48" title="Twitter: {{.}}"
|
||||
alt="Twitter"></a>
|
||||
</span>{{end}}
|
||||
```
|
||||
|
||||
Finally, if you want to pull "magic constants" out of your layouts, you can do
|
||||
so, such as in this example:
|
||||
|
||||
```
|
||||
<nav class="recent">
|
||||
<h1>Recent Posts</h1>
|
||||
<ul>{{range first .Site.Params.SidebarRecentLimit .Site.Recent}}
|
||||
<li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
|
||||
{{end}}</ul>
|
||||
</nav>
|
||||
```
|
||||
|
||||
[go]: https://golang.org/
|
||||
[gohtmltemplate]: https://golang.org/pkg/html/template/
|
||||
79
themes/Bleach/exampleSite/content/posts/hugoisforlovers.md
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
---
|
||||
date: "2014-04-02"
|
||||
tags: ["hugo", "git", "fun"]
|
||||
title: "Getting Started with Hugo"
|
||||
image: "images/draw.jpeg"
|
||||
---
|
||||
|
||||
## Step 1. Install Hugo
|
||||
|
||||
Go to [Hugo releases](https://github.com/spf13/hugo/releases) and download the
|
||||
appropriate version for your OS and architecture.
|
||||
|
||||
Save it somewhere specific as we will be using it in the next step.
|
||||
|
||||
More complete instructions are available at [Install Hugo](https://gohugo.io/getting-started/installing/)
|
||||
|
||||
## Step 2. Build the Docs
|
||||
|
||||
Hugo has its own example site which happens to also be the documentation site
|
||||
you are reading right now.
|
||||
|
||||
Follow the following steps:
|
||||
|
||||
1. Clone the [Hugo repository](http://github.com/spf13/hugo)
|
||||
2. Go into the repo
|
||||
3. Run hugo in server mode and build the docs
|
||||
4. Open your browser to http://localhost:1313
|
||||
|
||||
Corresponding pseudo commands:
|
||||
|
||||
git clone https://github.com/spf13/hugo
|
||||
cd hugo
|
||||
/path/to/where/you/installed/hugo server --source=./docs
|
||||
> 29 pages created
|
||||
> 0 tags index created
|
||||
> in 27 ms
|
||||
> Web Server is available at http://localhost:1313
|
||||
> Press ctrl+c to stop
|
||||
|
||||
Once you've gotten here, follow along the rest of this page on your local build.
|
||||
|
||||
## Step 3. Change the docs site
|
||||
|
||||
Stop the Hugo process by hitting Ctrl+C.
|
||||
|
||||
Now we are going to run hugo again, but this time with hugo in watch mode.
|
||||
|
||||
/path/to/hugo/from/step/1/hugo server --source=./docs --watch
|
||||
> 29 pages created
|
||||
> 0 tags index created
|
||||
> in 27 ms
|
||||
> Web Server is available at http://localhost:1313
|
||||
> Watching for changes in /Users/spf13/Code/hugo/docs/content
|
||||
> Press ctrl+c to stop
|
||||
|
||||
|
||||
Open your [favorite editor](http://vim.spf13.com) and change one of the source
|
||||
content pages. How about changing this very file to *fix the typo*. How about changing this very file to *fix the typo*.
|
||||
|
||||
Content files are found in `docs/content/`. Unless otherwise specified, files
|
||||
are located at the same relative location as the url, in our case
|
||||
`docs/content/overview/quickstart.md`.
|
||||
|
||||
Change and save this file.. Notice what happened in your terminal.
|
||||
|
||||
> Change detected, rebuilding site
|
||||
|
||||
> 29 pages created
|
||||
> 0 tags index created
|
||||
> in 26 ms
|
||||
|
||||
Refresh the browser and observe that the typo is now fixed.
|
||||
|
||||
Notice how quick that was. Try to refresh the site before it's finished building. I double dare you.
|
||||
Having nearly instant feedback enables you to have your creativity flow without waiting for long builds.
|
||||
|
||||
## Step 4. Have fun
|
||||
|
||||
The best way to learn something is to play with it.
|
||||
9
themes/Bleach/exampleSite/content/posts/latest.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: "Example latest Post"
|
||||
date: 2019-03-07T00:00:01
|
||||
description: "This is an example latest post, for you to see how i looks."
|
||||
image: "images/latest.jpeg"
|
||||
tags: ["latest", "hugo", "example"]
|
||||
---
|
||||
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
BIN
themes/Bleach/exampleSite/static/images/draw.jpeg
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
themes/Bleach/exampleSite/static/images/latest.jpeg
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
themes/Bleach/exampleSite/static/images/program.jpeg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
themes/Bleach/images/screenshot.png
Normal file
|
After Width: | Height: | Size: 692 KiB |
BIN
themes/Bleach/images/tn.png
Normal file
|
After Width: | Height: | Size: 281 KiB |
5
themes/Bleach/layouts/404.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{{ define "main"}}
|
||||
<div class="d-flex justify-content-center align-content-center">
|
||||
404 PAGE NOT FOUND
|
||||
</div>
|
||||
{{ end }}
|
||||
15
themes/Bleach/layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ with.Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
||||
{{- partial "head.html" . -}}
|
||||
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div class="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
|
||||
{{- partial "scripts.html" . -}}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
1
themes/Bleach/layouts/_default/list.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
54
themes/Bleach/layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{{ define "main" }}
|
||||
|
||||
{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }}
|
||||
|
||||
<div class="container">
|
||||
<div class="post">
|
||||
<div class="post-header row">
|
||||
<div class="title-tile col-md-6">
|
||||
<h1 class="maintitle">
|
||||
{{ .Title }}
|
||||
</h1>
|
||||
<h2 class="subtitle lightText">
|
||||
{{ .Description }}
|
||||
</h2>
|
||||
|
||||
<div class="clearfix lightText">
|
||||
<i class="icon ion-md-calendar"></i> {{ dateFormat $dateFormat .Date }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="figure col-md-6">
|
||||
<img class="img-fluid"
|
||||
src="{{ absURL (default "images/default-img-header.jpeg" (default .Params.image .Params.thumbnail)) }}"
|
||||
alt="figure" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="post-content">
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{ if .Params.series }}
|
||||
{{ $name := index .Params.series 0 }}
|
||||
<hr/>
|
||||
<p><a href="" id="series"></a>This is a post in the
|
||||
<b>{{$name}}</b> series.<br/>
|
||||
Other posts in this series:</p>
|
||||
|
||||
{{ $name := $name | urlize }}
|
||||
{{ $series := index .Site.Taxonomies.series $name }}
|
||||
<ul class="series">
|
||||
{{ range $series.Pages }}
|
||||
<li>{{.Date.Format "Jan 02, 2006"}} -
|
||||
<a href="{{.Permalink}}">{{.LinkTitle}}</a></li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{end}}
|
||||
{{if .NextInSection}}<p>Next: <a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}}</a></p>{{end}}
|
||||
{{if .PrevInSection}}<p>Previous: <a href="{{.PrevInSection.Permalink}}">{{.PrevInSection.Title}}</a></p>{{end}}
|
||||
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
13
themes/Bleach/layouts/impressum/single.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<div class="container">
|
||||
<div class="post">
|
||||
<div class="post-content">
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
69
themes/Bleach/layouts/index.html
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{{ define "main" }}
|
||||
|
||||
{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }}
|
||||
{{ $posts := where .Pages.ByDate.Reverse "Section" "posts" }}
|
||||
{{ $paginator := .Paginate (after 1 $posts) 3 }}
|
||||
|
||||
<div class="collection">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="collection-latest">
|
||||
{{ range first 1 $posts }}
|
||||
<section class="collection-item-large">
|
||||
<div class="row">
|
||||
<a href="{{ .Permalink }}" class="col-lg-7 collection-item-large-thumb"
|
||||
style="background-image: url('{{ absURL (default "images/default-img-header.jpeg" (default .Params.image .Params.thumbnail)) }}'); background-position: 50% 50% !important;"></a>
|
||||
<div class="col-lg-5 collection-item-large-content">
|
||||
<a href="{{ .Permalink }}">
|
||||
<h3 class="collection-item-large-headline">
|
||||
{{ .Title }}
|
||||
</h3>
|
||||
<div class="collection-item-large-description lightText">
|
||||
{{ .Description | markdownify }}
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<div class="collection-item-clearfix lightText">
|
||||
<i class="icon ion-md-calendar"></i> {{ dateFormat $dateFormat .Date }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="line-spacer"></div>
|
||||
|
||||
<div class="collection-list">
|
||||
<div class="row">
|
||||
{{ range $paginator.Pages }}
|
||||
<div class="col-md-4 collection-item">
|
||||
<a href="{{ .Permalink }}" class="collection-item-thumb"
|
||||
style="background-image: url('{{ absURL (default "images/default-img-header.jpeg" (default .Params.image .Params.thumbnail)) }}'); background-position: 50% 50% !important;"></a>
|
||||
<div class="collection-item-content">
|
||||
<a href="{{ .Permalink }}">
|
||||
<h3 class="collection-item-headline">
|
||||
{{ .Title }}
|
||||
</h3>
|
||||
<div class="collection-item-description lightText">
|
||||
{{ .Description | markdownify }}
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<div class="collection-item-clearfix lightText">
|
||||
<i class="ion-md-calendar"></i> {{ dateFormat $dateFormat .Date }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ partial "paginator.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
81
themes/Bleach/layouts/partials/category.html
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
<div class="archive-header">
|
||||
<h1>
|
||||
Category: {{ .Title }}
|
||||
{{ if .Site.Params.social.rss }}
|
||||
<a href="{{ .RSSLink }}" data-animate-hover="pulse" class="in-page-rss" target="_blank">
|
||||
<i class="fas fa-rss" title="rss"></i>
|
||||
<span class="screen-reader-text">rss</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<h1 class="screen-reader-text">Posts</h1>
|
||||
<div id="loop-container" class="loop-container">
|
||||
{{ range $index, $element := (where .Data.Pages "Section" "post").ByDate.Reverse }}
|
||||
|
||||
{{ $scratch := newScratch }}
|
||||
{{ if .Site.Params.writers }}
|
||||
{{ $scratch.Set "writer" (index .Site.Params.writers (lower .Params.writer) | default dict) }}
|
||||
{{ else }}
|
||||
{{ $scratch.Set "writer" .Site.Params.social | default dict }}
|
||||
{{ end }}
|
||||
{{ $writer := $scratch.Get "writer" }}
|
||||
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
{{ if eq (mod $index 2) 0 }}
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured odd excerpt">
|
||||
{{ else }}
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured even excerpt">
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div class="post type-post status-publish format-standard hentry category-standard category-travel excerpt zoom full-without-featured odd excerpt">
|
||||
{{ end }}
|
||||
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
<a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' {{if isset .Site.Params "usepostimgfolder"}}data-background="{{ .Permalink }}{{ .Params.image }}"{{ else }}data-background="{{ .Params.image | absURL }}"{{ end }}></div></a>
|
||||
{{ end }}
|
||||
|
||||
<div class="excerpt-container">
|
||||
<div class="excerpt-meta">
|
||||
<span class="date">{{ .Date.Format "02 January" }}</span>
|
||||
|
||||
|
||||
|
||||
{{ if and (isset .Site.Params "authorlink") .Site.Params.authorLink }}
|
||||
{{ if and (isset .Site.Params "author") .Site.Params.author }}
|
||||
<span> / </span>
|
||||
<span class="author">
|
||||
<a href="{{ $writer.link | default .Site.Params.authorlink | absURL }}" title="Posts by {{ .Params.writer | default .Site.Params.author }}" rel="author">{{ .Params.writer | default .Site.Params.author }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<span class="author">
|
||||
{{ .Params.writer | default .Site.Params.author }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ range .Params.categories }}
|
||||
<span> / </span>
|
||||
<span class="category">
|
||||
<a href="/categories/{{ . | urlize }}">{{ . }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class='excerpt-header'>
|
||||
<h2 class='excerpt-title'>
|
||||
<a href="{{ .Permalink }} "> {{ .Title }} </a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class='excerpt-content'>
|
||||
<article>
|
||||
{{ .Summary }}
|
||||
|
||||
<div class="more-link-wrapper"><a class="more-link" href="{{ .Permalink }}">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
20
themes/Bleach/layouts/partials/footer.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<div class="footer">
|
||||
<div class="clearfix">
|
||||
<div class="copyright float-left">
|
||||
<span>©</span>
|
||||
<script>document.write(new Date().getFullYear())</script>
|
||||
<span>
|
||||
{{ if isset .Site.Params.footer "company"}}
|
||||
{{ .Site.Params.footer.company }}
|
||||
{{ else }}
|
||||
digiVend
|
||||
{{ end }}
|
||||
</span>
|
||||
</div>
|
||||
{{ if .Site.Params.footer.impressum }}
|
||||
<div class="impressum">
|
||||
<a href="/impressum">Impressum</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</footer>
|
||||
38
themes/Bleach/layouts/partials/head.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{{ "<!-- Basic Page Needs -->" | safeHTML }}
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
|
||||
<meta name="description"
|
||||
content="{{ with.Description }}{{ . }}{{ else }}{{ with.Site.Params.description }}{{ . }}{{ end }}{{ end }}" />
|
||||
{{ with.Site.Params.author }}
|
||||
<meta name="author" content="{{ . }}" />
|
||||
{{ end }}
|
||||
{{ .Hugo.Generator }}
|
||||
|
||||
{{ "<!-- Mobile Specific Metas -->" | safeHTML }}
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
{{ $title := print .Title " | " .Site.Title }}
|
||||
{{ if .IsHome }}
|
||||
{{ $title = .Site.Title }}
|
||||
{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
|
||||
<link rel="icon" href="{{"images/favicon.png" | absURL}}">
|
||||
|
||||
{{ if .Site.Params.debug }}
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
|
||||
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
|
||||
{{ else }}
|
||||
<link rel="stylesheet" type="text/css" href="{{"plugins/bootstrap/bootstrap.min.css" | absURL}}" />
|
||||
{{ end }}
|
||||
<link rel="stylesheet" type="text/css" href="{{"plugins/ionicons/ionicons.min.css" | absURL}}" />
|
||||
{{ "<!-- template main css file -->" | safeHTML }}
|
||||
{{ $styles := resources.Get "css/style.css" | minify}}
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen" />
|
||||
</head>
|
||||
47
themes/Bleach/layouts/partials/header.html
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<div class="topbar">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<nav class="navbar navbar-expand-lg">
|
||||
<a href="{{ .Site.BaseURL }}">
|
||||
<img class="brand" src="{{ absURL (default "images/logo.jpg" (default .Site.Params.logo)) }}" alt="logo" />
|
||||
</a>
|
||||
<div class="brand-title">
|
||||
{{ if isset .Site.Params "title"}}
|
||||
<a href="{{ .Site.BaseURL }}">
|
||||
{{ .Site.Params.title }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="social">
|
||||
{{ if isset .Site.Params.social "facebook" }}
|
||||
<a href="{{ .Site.Params.social.facebook | absURL }}">
|
||||
<i class="ion-logo-facebook"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if isset .Site.Params.social "twitter" }}
|
||||
<a href="{{ .Site.Params.social.twitter | absURL }}">
|
||||
<i class="ion-logo-twitter"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if isset .Site.Params.social "instagram" }}
|
||||
<a href="{{ .Site.Params.social.instagram | absURL }}">
|
||||
<i class="ion-logo-instagram"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if isset .Site.Params.social "linkedin" }}
|
||||
<a href="{{ .Site.Params.social.linkedin | absURL }}">
|
||||
<i class="ion-logo-linkedin"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if isset .Site.Params.social "github" }}
|
||||
<a href="{{ .Site.Params.social.github | absURL }}">
|
||||
<i class="ion-logo-github"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="head-spacer"></div>
|
||||
20
themes/Bleach/layouts/partials/paginator.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{{ $pag := $.Paginator }}
|
||||
{{ if gt $pag.TotalPages 1 }}
|
||||
|
||||
<div class="row">
|
||||
<div class="paginator">
|
||||
<div class="paginator-item">
|
||||
<a {{ if not $pag.HasPrev }} disabled{{ end }} href="{{ if $pag.HasPrev }}{{ $pag.Prev.URL }}{{ end }}">
|
||||
«</a> </div>
|
||||
<div class="paginator-item">
|
||||
{{$pag.PageNumber}}
|
||||
</div>
|
||||
|
||||
<div class="paginator-item">
|
||||
<a {{ if not $pag.HasNext }} disabled{{ end }}
|
||||
href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}">»</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
0
themes/Bleach/layouts/partials/scripts.html
Normal file
70
themes/Bleach/layouts/partials/series.html
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<div class="archive-header">
|
||||
<h1>
|
||||
Series: {{ .Title }}
|
||||
{{ if .Site.Params.social.rss }}
|
||||
<a href="{{ .RSSLink }}" data-animate-hover="pulse" class="in-page-rss" target="_blank">
|
||||
<i class="fas fa-rss" title="rss"></i>
|
||||
<span class="screen-reader-text">rss</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<h1 class="screen-reader-text">Posts</h1>
|
||||
<div id="loop-container" class="loop-container">
|
||||
{{ range $index, $element := (where .Data.Pages "Section" "post").ByDate.Reverse }}
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
{{ if eq (mod $index 2) 0 }}
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured odd excerpt">
|
||||
{{ else }}
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured even excerpt">
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
|
||||
<div class="post type-post status-publish format-standard hentry category-standard category-travel excerpt zoom full-without-featured odd excerpt">
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
<a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' data-background="{{ .Params.image | absURL }}"></div></a>
|
||||
|
||||
{{ end }}
|
||||
|
||||
<div class="excerpt-container">
|
||||
<div class="excerpt-meta">
|
||||
<span class="date">{{ .Date.Format "02 January 2006" }}</span> <span> / </span>
|
||||
|
||||
{{ if and (isset .Site.Params "author") .Site.Params.author }}
|
||||
|
||||
<span class="author">
|
||||
{{ if and (isset .Site.Params "authorlink") .Site.Params.authorLink }}
|
||||
<a href="{{ .Site.Params.authorLink | default "" | absURL }}" title="Posts by {{ .Site.Params.author | default "" }}" rel="author">{{ .Site.Params.author | default "" }}</a>
|
||||
{{ else }}
|
||||
{{ .Site.Params.author | default "" }}
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
{{ range .Params.series }}
|
||||
<span> / </span>
|
||||
<span class="series">
|
||||
<a href="/series/{{ . | urlize }}">{{ . }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class='excerpt-header'>
|
||||
<h2 class='excerpt-title'>
|
||||
<a href="{{ .Permalink }} "> {{ .Title }} </a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class='excerpt-content'>
|
||||
<article>
|
||||
{{ .Summary }}
|
||||
|
||||
<div class="more-link-wrapper"><a class="more-link" href="{{ .Permalink }}">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
70
themes/Bleach/layouts/partials/tag.html
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<div class="archive-header">
|
||||
<h1>
|
||||
Tag: {{ .Title }}
|
||||
{{ if .Site.Params.social.rss }}
|
||||
<a href="{{ .RSSLink }}" data-animate-hover="pulse" class="in-page-rss" target="_blank">
|
||||
<i class="fas fa-rss" title="rss"></i>
|
||||
<span class="screen-reader-text">rss</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<h1 class="screen-reader-text">Posts</h1>
|
||||
<div id="loop-container" class="loop-container">
|
||||
{{ range $index, $element := (where .Data.Pages "Section" "post").ByDate.Reverse }}
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
{{ if eq (mod $index 2) 0 }}
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured odd excerpt">
|
||||
{{ else }}
|
||||
<div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured even excerpt">
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
|
||||
<div class="post type-post status-publish format-standard hentry category-standard category-travel excerpt zoom full-without-featured odd excerpt">
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
<a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' data-background="{{ .Params.image | absURL }}"></div></a>
|
||||
|
||||
{{ end }}
|
||||
|
||||
<div class="excerpt-container">
|
||||
<div class="excerpt-meta">
|
||||
<span class="date">{{ .Date.Format "02 January 2006" }}</span> <span> / </span>
|
||||
|
||||
{{ if and (isset .Site.Params "author") .Site.Params.author }}
|
||||
|
||||
<span class="author">
|
||||
{{ if and (isset .Site.Params "authorlink") .Site.Params.authorLink }}
|
||||
<a href="{{ .Site.Params.authorLink | default "" | absURL }}" title="Posts by {{ .Site.Params.author | default "" }}" rel="author">{{ .Site.Params.author | default "" }}</a>
|
||||
{{ else }}
|
||||
{{ .Site.Params.author | default "" }}
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
{{ range .Params.categories }}
|
||||
<span> / </span>
|
||||
<span class="category">
|
||||
<a href="/categories/{{ . | urlize }}">{{ . }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class='excerpt-header'>
|
||||
<h2 class='excerpt-title'>
|
||||
<a href="{{ .Permalink }} "> {{ .Title }} </a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class='excerpt-content'>
|
||||
<article>
|
||||
{{ .Summary }}
|
||||
|
||||
<div class="more-link-wrapper"><a class="more-link" href="{{ .Permalink }}">Read the post<span class="screen-reader-text">This is a Standard Post</span></a></div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
26
themes/Bleach/layouts/taxonomy/category.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>{{ partial "head.html" . }}</head>
|
||||
|
||||
<body class="home blog ct-body standard">
|
||||
<div id="overflow-container" class="overflow-container">
|
||||
<a class="skip-content" href="#main">Skip to content</a>
|
||||
<header id="site-header" class="site-header" role="banner">
|
||||
<div class='top-navigation'>
|
||||
{{ partial "topnavigation.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
{{ partial "header.html" . }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div id="main" class="main" role="main">
|
||||
|
||||
{{ partial "category.html" . }}
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
{{ partial "scripts.html" . }}
|
||||
</body>
|
||||
45
themes/Bleach/layouts/taxonomy/category.terms.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Page.Language | default "en" }}">
|
||||
<head>{{ partial "head.html" . }}</head>
|
||||
<body class="home blog ct-body standard">
|
||||
<div id="overflow-container" class="overflow-container">
|
||||
<a class="skip-content" href="#main">Skip to content</a>
|
||||
<header id="site-header" class="site-header" role="banner">
|
||||
|
||||
<div class="container">
|
||||
{{ partial "header.html" . }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div id="main" class="main" role="main">
|
||||
<main id="site-main">
|
||||
{{ if .Site.Params.categoriesByCount }}
|
||||
{{ $.Scratch.Set "categories" .Data.Terms.ByCount }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "categories" .Data.Terms.Alphabetical }}
|
||||
{{ end }}
|
||||
<ul class="posts">
|
||||
<header>
|
||||
<h1>{{ i18n .Data.Plural }}</h1>
|
||||
</header>
|
||||
{{ $data := .Data }}
|
||||
{{ range $key, $value := $.Scratch.Get "categories" }}
|
||||
<li>
|
||||
<article>
|
||||
<header>
|
||||
{{ if ne $value.Name "" }}
|
||||
<a href="{{ printf "/%s/%s" $data.Plural $value.Name | urlize | relLangURL }}">{{ $value.Name }}<span style="float:right;">{{ $value.Count }}</span></a>
|
||||
{{ else }}
|
||||
{{ i18n "uncategorized" }}<span style="float:right;">{{ $value.Count }}</span>
|
||||
{{ end }}
|
||||
</header>
|
||||
</article>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</main>
|
||||
{{ $.Scratch.Set "showCategories" false }}
|
||||
</div>
|
||||
{{ partial "scripts" . }}
|
||||
</body>
|
||||
</html>
|
||||
23
themes/Bleach/layouts/taxonomy/series.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>{{ partial "head.html" . }}</head>
|
||||
|
||||
<body class="home blog ct-body standard">
|
||||
<div id="overflow-container" class="overflow-container">
|
||||
<a class="skip-content" href="#main">Skip to content</a>
|
||||
<header id="site-header" class="site-header" role="banner">
|
||||
|
||||
<div class="container">
|
||||
{{ partial "header.html" . }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div id="main" class="main" role="main">
|
||||
|
||||
{{ partial "series.html" . }}
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
{{ partial "scripts.html" . }}
|
||||
</body>
|
||||
45
themes/Bleach/layouts/taxonomy/series.terms.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Page.Language | default "en" }}">
|
||||
<head>{{ partial "head.html" . }}</head>
|
||||
<body class="home blog ct-body standard">
|
||||
<div id="overflow-container" class="overflow-container">
|
||||
<a class="skip-content" href="#main">Skip to content</a>
|
||||
<header id="site-header" class="site-header" role="banner">
|
||||
|
||||
<div class="container">
|
||||
{{ partial "header.html" . }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div id="main" class="main" role="main">
|
||||
<main id="site-main">
|
||||
{{ if .Site.Params.seriesByCount }}
|
||||
{{ $.Scratch.Set "series" .Data.Terms.ByCount }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "series" .Data.Terms.Alphabetical }}
|
||||
{{ end }}
|
||||
<ul class="posts">
|
||||
<header>
|
||||
<h1>{{ i18n .Data.Plural }}</h1>
|
||||
</header>
|
||||
{{ $data := .Data }}
|
||||
{{ range $key, $value := $.Scratch.Get "series" }}
|
||||
<li>
|
||||
<article>
|
||||
<header>
|
||||
{{ if ne $value.Name "" }}
|
||||
<a href="{{ printf "/%s/%s" $data.Plural $value.Name | urlize | relLangURL }}">{{ $value.Name }}<span style="float:right;">{{ $value.Count }}</span></a>
|
||||
{{ else }}
|
||||
{{ i18n "uncategorized" }}<span style="float:right;">{{ $value.Count }}</span>
|
||||
{{ end }}
|
||||
</header>
|
||||
</article>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</main>
|
||||
{{ $.Scratch.Set "showCategories" false }}
|
||||
</div>
|
||||
{{ partial "scripts" . }}
|
||||
</body>
|
||||
</html>
|
||||
26
themes/Bleach/layouts/taxonomy/tag.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>{{ partial "head.html" . }}</head>
|
||||
|
||||
<body class="home blog ct-body standard">
|
||||
<div id="overflow-container" class="overflow-container">
|
||||
<a class="skip-content" href="#main">Skip to content</a>
|
||||
<header id="site-header" class="site-header" role="banner">
|
||||
<div class='top-navigation'>
|
||||
{{ partial "topnavigation.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
{{ partial "header.html" . }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div id="main" class="main" role="main">
|
||||
|
||||
{{ partial "tag.html" . }}
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
{{ partial "scripts.html" . }}
|
||||
</body>
|
||||
45
themes/Bleach/layouts/taxonomy/tag.terms.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Page.Language | default "en" }}">
|
||||
<head>{{ partial "head.html" . }}</head>
|
||||
<body class="home blog ct-body standard">
|
||||
<div id="overflow-container" class="overflow-container">
|
||||
<a class="skip-content" href="#main">Skip to content</a>
|
||||
<header id="site-header" class="site-header" role="banner">
|
||||
|
||||
<div class="container">
|
||||
{{ partial "header.html" . }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div id="main" class="main" role="main">
|
||||
<main id="site-main">
|
||||
{{ if .Site.Params.tagsByCount }}
|
||||
{{ $.Scratch.Set "tags" .Data.Terms.ByCount }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "tags" .Data.Terms.Alphabetical }}
|
||||
{{ end }}
|
||||
<ul class="posts">
|
||||
<header>
|
||||
<h1>{{ i18n .Data.Plural }}</h1>
|
||||
</header>
|
||||
{{ $data := .Data }}
|
||||
{{ range $key, $value := $.Scratch.Get "tags" }}
|
||||
<li>
|
||||
<article>
|
||||
<header>
|
||||
{{ if ne $value.Name "" }}
|
||||
<a href="{{ printf "/%s/%s" $data.Plural $value.Name | urlize | relLangURL }}">{{ $value.Name }}<span style="float:right;">{{ $value.Count }}</span></a>
|
||||
{{ else }}
|
||||
{{ i18n "uncategorized" }}<span style="float:right;">{{ $value.Count }}</span>
|
||||
{{ end }}
|
||||
</header>
|
||||
</article>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</main>
|
||||
{{ $.Scratch.Set "showCategories" false }}
|
||||
</div>
|
||||
{{ partial "scripts" . }}
|
||||
</body>
|
||||
</html>
|
||||
BIN
themes/Bleach/static/images/default-img-header.jpeg
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
themes/Bleach/static/images/logo.jpg
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
2
themes/Bleach/static/plugins/bootstrap/bootstrap.min.css
vendored
Normal file
BIN
themes/Bleach/static/plugins/fonts/ionicons.eot
Normal file
2230
themes/Bleach/static/plugins/fonts/ionicons.svg
Normal file
|
After Width: | Height: | Size: 326 KiB |
BIN
themes/Bleach/static/plugins/fonts/ionicons.ttf
Normal file
BIN
themes/Bleach/static/plugins/fonts/ionicons.woff
Normal file
BIN
themes/Bleach/static/plugins/fonts/ionicons.woff2
Normal file
11
themes/Bleach/static/plugins/ionicons/ionicons.min.css
vendored
Normal file
12
themes/Bleach/theme.toml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
name = "Bleach"
|
||||
license = "MIT"
|
||||
licenselink = "https://github.com/digivend/bleach-theme/blob/master/LICENSE.md"
|
||||
description = "Simple and lightweight Blog theme for Hugo"
|
||||
homepage = "https://github.com/digivend/bleach-theme"
|
||||
tags = ["blog", "lighweight", "simple", "fast", "light", "modern", "hugo-theme", "responsive", "bootstrap", "white", "clean", "company"]
|
||||
features = ["blog"]
|
||||
min_version = "0.41"
|
||||
|
||||
[author]
|
||||
name = "digiVend"
|
||||
homepage = "https://github.com/digivend/"
|
||||
42
themes/bleach.diff
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
diff --git a/assets/css/style.css b/assets/css/style.css
|
||||
index d35bcba..b21219a 100644
|
||||
--- a/assets/css/style.css
|
||||
+++ b/assets/css/style.css
|
||||
@@ -29,6 +29,8 @@ div {
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
+ max-width: 90%;
|
||||
+ height: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
|
||||
index 6f4d2fa..ce7f656 100644
|
||||
--- a/layouts/_default/single.html
|
||||
+++ b/layouts/_default/single.html
|
||||
@@ -30,6 +30,22 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
+ {{ if .Params.series }}
|
||||
+ {{ $name := index .Params.series 0 }}
|
||||
+ <hr/>
|
||||
+ <p><a href="" id="series"></a>This is a post in the
|
||||
+ <b>{{$name}}</b> series.<br/>
|
||||
+ Other posts in this series:</p>
|
||||
+
|
||||
+ {{ $name := $name | urlize }}
|
||||
+ {{ $series := index .Site.Taxonomies.series $name }}
|
||||
+ <ul class="series">
|
||||
+ {{ range $series.Pages }}
|
||||
+ <li>{{.Date.Format "Jan 02, 2006"}} -
|
||||
+ <a href="{{.Permalink}}">{{.LinkTitle}}</a></li>
|
||||
+ {{end}}
|
||||
+ </ul>
|
||||
+ {{end}}
|
||||
</div>
|
||||
|
||||
-{{ end }}
|
||||
\ No newline at end of file
|
||||
+{{ end }}
|
||||