initial import
This commit is contained in:
commit
87a3eda4ce
35 changed files with 7889 additions and 0 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
public
|
||||||
|
resources
|
||||||
|
themes
|
||||||
|
static/images
|
9
LICENSE.md
Normal file
9
LICENSE.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2016 Hugo Aguirre
|
||||||
|
|
||||||
|
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.
|
54
README.md
Normal file
54
README.md
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
# Hugo cards
|
||||||
|
|
||||||
|
A Hugo theme, ported from [Webjeda-cards](http://webjeda.com/cards)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
Responsive theme built on bootstrap. Great for showcasing content with featured images.
|
||||||
|
|
||||||
|
Easily add disqus, google analytics, social links and a facebook like box.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Please see the sample [`config.toml`](https://github.com/bul-ikana/hugo-cards/blob/master/exampleSite/config.toml).
|
||||||
|
|
||||||
|
### Social links
|
||||||
|
|
||||||
|
#### facebook
|
||||||
|
A link to your facebook profile or page. This will show in the footer.
|
||||||
|
|
||||||
|
#### quora
|
||||||
|
A link to your quora profile. This will show in the footer.
|
||||||
|
|
||||||
|
#### twitter
|
||||||
|
A link to your twitter profile. This will show in the footer.
|
||||||
|
|
||||||
|
#### github
|
||||||
|
A link to your github profile. This will show in the footer.
|
||||||
|
|
||||||
|
#### email
|
||||||
|
Your email address. This will show in the footer and will opes as a `mailto:`.
|
||||||
|
|
||||||
|
### Facebook like box
|
||||||
|
|
||||||
|
#### fbLikeBox
|
||||||
|
Wheter you want to show a facebook like box. Accepted values are `yes` or `no`. Leave empty for `no`
|
||||||
|
|
||||||
|
#### fbAppId
|
||||||
|
The app id you obtained from facebook developers page.
|
||||||
|
|
||||||
|
#### fbPageUrl
|
||||||
|
A link to the facebook page or profile that will be shown in the like box.
|
||||||
|
|
||||||
|
#### fbPageTitle
|
||||||
|
The title of the like box. This text will be shown while the box is loading.
|
||||||
|
|
||||||
|
### Tracking and comments
|
||||||
|
|
||||||
|
#### analytics
|
||||||
|
The Google Analytics tracking ID
|
||||||
|
|
||||||
|
#### disqus
|
||||||
|
The disqus_thread ID
|
2
archetypes/default.md
Normal file
2
archetypes/default.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
+++
|
||||||
|
+++
|
6870
assets/sass/_bootstrap-readable.scss
Normal file
6870
assets/sass/_bootstrap-readable.scss
Normal file
File diff suppressed because it is too large
Load diff
24
assets/sass/_custom.scss
Normal file
24
assets/sass/_custom.scss
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
.pagination {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-title {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sb-box ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sb-box {
|
||||||
|
padding: 0 15px 0 15px;
|
||||||
|
border: 1px solid $grey-color-light;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sb-box h3 {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
158
assets/sass/_layout.scss
Normal file
158
assets/sass/_layout.scss
Normal file
|
@ -0,0 +1,158 @@
|
||||||
|
html,body {
|
||||||
|
font-family: $base-font-family;
|
||||||
|
font-size: $base-font-size;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-default {
|
||||||
|
border-color: transparent;
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 10px 0;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mt50 {
|
||||||
|
margin-top: 50px;
|
||||||
|
}
|
||||||
|
.mt20 {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mt10 {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
.mt25 {
|
||||||
|
margin-top: 0;
|
||||||
|
@include media-query($on-palm) {
|
||||||
|
margin-top: 25px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.p20{
|
||||||
|
padding: 20px 0;
|
||||||
|
}
|
||||||
|
.navbar-brand {
|
||||||
|
font-weight: 900;
|
||||||
|
font-size: 1.85em;
|
||||||
|
padding: 10px;
|
||||||
|
margin-left: 15px !important;
|
||||||
|
@media screen and (max-width: $on-palm) {
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.post-meta {
|
||||||
|
color: $grey-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel {
|
||||||
|
margin-bottom: 2em;
|
||||||
|
border: none;
|
||||||
|
box-shadow: 0 0 1px rgba(0,0,0,.4);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
&:hover, &:focus, &:active {
|
||||||
|
box-shadow:
|
||||||
|
0px 1px 0px #ccc,
|
||||||
|
0px 2px 0px #c9c9c9,
|
||||||
|
0px 3px 0px #bbb,
|
||||||
|
0px 4px 0px #b9b9b9,
|
||||||
|
0px 6px 0px rgba(0,0,0,.1),
|
||||||
|
0px 1px 0px rgba(0,0,0,.3),
|
||||||
|
0px 3px 0px rgba(0,0,0,.2),
|
||||||
|
0px 5px 0px rgba(0,0,0,.25),
|
||||||
|
0 7px 7px rgba(0,0,0,.1),
|
||||||
|
0 8px 7px rgba(0,0,0,.1),
|
||||||
|
0 9px 9px rgba(0,0,0,.1),
|
||||||
|
0 10px 10px rgba(0,0,0,.15),
|
||||||
|
0 15px 15px rgba(0,0,0,.16),
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
footer {
|
||||||
|
border-top: 1px solid $grey-color-light;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social {
|
||||||
|
list-style: none;
|
||||||
|
display: inline;
|
||||||
|
margin-left: 10px;
|
||||||
|
padding: 5px 8px;
|
||||||
|
font-size: 1.25em;
|
||||||
|
}
|
||||||
|
.social:hover {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
.social img {
|
||||||
|
width: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quora img{
|
||||||
|
width: 17px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.facebook img {
|
||||||
|
width: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recent ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recent {
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid $grey-color-light;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-img img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.pack {
|
||||||
|
|
||||||
|
|
||||||
|
display: -webkit-inline-flex;
|
||||||
|
display: -ms-inline-flexbox;
|
||||||
|
display: inline-flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
-webkit-flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
float: none;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-title {
|
||||||
|
line-height: 2;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.index-anchor {
|
||||||
|
text-decoration: none;
|
||||||
|
color: $text-color;
|
||||||
|
&:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
color: $text-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
article.post {
|
||||||
|
margin-bottom: 5em;
|
||||||
|
}
|
72
assets/sass/_syntax-highlighting.scss
Normal file
72
assets/sass/_syntax-highlighting.scss
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
/**
|
||||||
|
* Syntax highlighting styles
|
||||||
|
*/
|
||||||
|
.highlight {
|
||||||
|
background: #fff;
|
||||||
|
|
||||||
|
/* @extend %vertical-rhythm; */
|
||||||
|
|
||||||
|
.highlighter-rouge & {
|
||||||
|
background: #eef;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c { color: #998; font-style: italic } // Comment
|
||||||
|
.err { color: #a61717; } // Error
|
||||||
|
.k { font-weight: bold } // Keyword
|
||||||
|
.o { font-weight: bold } // Operator
|
||||||
|
.cm { color: #998; font-style: italic } // Comment.Multiline
|
||||||
|
.cp { color: #999; font-weight: bold } // Comment.Preproc
|
||||||
|
.c1 { color: #998; font-style: italic } // Comment.Single
|
||||||
|
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
|
||||||
|
.gd { color: #000; } // Generic.Deleted
|
||||||
|
.gd .x { color: #000; } // Generic.Deleted.Specific
|
||||||
|
.ge { font-style: italic } // Generic.Emph
|
||||||
|
.gr { color: #a00 } // Generic.Error
|
||||||
|
.gh { color: #999 } // Generic.Heading
|
||||||
|
.gi { color: #000;} // Generic.Inserted
|
||||||
|
.gi .x { color: #000; } // Generic.Inserted.Specific
|
||||||
|
.go { color: #888 } // Generic.Output
|
||||||
|
.gp { color: #555 } // Generic.Prompt
|
||||||
|
.gs { font-weight: bold } // Generic.Strong
|
||||||
|
.gu { color: #aaa } // Generic.Subheading
|
||||||
|
.gt { color: #a00 } // Generic.Traceback
|
||||||
|
.kc { font-weight: bold } // Keyword.Constant
|
||||||
|
.kd { font-weight: bold } // Keyword.Declaration
|
||||||
|
.kp { font-weight: bold } // Keyword.Pseudo
|
||||||
|
.kr { font-weight: bold } // Keyword.Reserved
|
||||||
|
.kt { color: #458; font-weight: bold } // Keyword.Type
|
||||||
|
.m { color: #099 } // Literal.Number
|
||||||
|
.s { color: #d14 } // Literal.String
|
||||||
|
.na { color: #008080 } // Name.Attribute
|
||||||
|
.nb { color: #0086B3 } // Name.Builtin
|
||||||
|
.nc { color: #458; font-weight: bold } // Name.Class
|
||||||
|
.no { color: #008080 } // Name.Constant
|
||||||
|
.ni { color: #800080 } // Name.Entity
|
||||||
|
.ne { color: #900; font-weight: bold } // Name.Exception
|
||||||
|
.nf { color: #900; font-weight: bold } // Name.Function
|
||||||
|
.nn { color: #555 } // Name.Namespace
|
||||||
|
.nt { color: #000080 } // Name.Tag
|
||||||
|
.nv { color: #008080 } // Name.Variable
|
||||||
|
.ow { font-weight: bold } // Operator.Word
|
||||||
|
.w { color: #bbb } // Text.Whitespace
|
||||||
|
.mf { color: #099 } // Literal.Number.Float
|
||||||
|
.mh { color: #099 } // Literal.Number.Hex
|
||||||
|
.mi { color: #099 } // Literal.Number.Integer
|
||||||
|
.mo { color: #099 } // Literal.Number.Oct
|
||||||
|
.sb { color: #d14 } // Literal.String.Backtick
|
||||||
|
.sc { color: #d14 } // Literal.String.Char
|
||||||
|
.sd { color: #d14 } // Literal.String.Doc
|
||||||
|
.s2 { color: #d14 } // Literal.String.Double
|
||||||
|
.se { color: #d14 } // Literal.String.Escape
|
||||||
|
.sh { color: #d14 } // Literal.String.Heredoc
|
||||||
|
.si { color: #d14 } // Literal.String.Interpol
|
||||||
|
.sx { color: #d14 } // Literal.String.Other
|
||||||
|
.sr { color: #009926 } // Literal.String.Regex
|
||||||
|
.s1 { color: #d14 } // Literal.String.Single
|
||||||
|
.ss { color: #990073 } // Literal.String.Symbol
|
||||||
|
.bp { color: #999 } // Name.Builtin.Pseudo
|
||||||
|
.vc { color: #008080 } // Name.Variable.Class
|
||||||
|
.vg { color: #008080 } // Name.Variable.Global
|
||||||
|
.vi { color: #008080 } // Name.Variable.Instance
|
||||||
|
.il { color: #099 } // Literal.Number.Integer.Long
|
||||||
|
}
|
49
assets/sass/main.scss
Normal file
49
assets/sass/main.scss
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
@import url("https://fonts.googleapis.com/css?family=Raleway:400,700");
|
||||||
|
|
||||||
|
// Our variables
|
||||||
|
$base-font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
$base-font-size: 16px;
|
||||||
|
$base-font-weight: 400;
|
||||||
|
$small-font-size: $base-font-size * 0.875;
|
||||||
|
$base-line-height: 1.5;
|
||||||
|
|
||||||
|
$spacing-unit: 30px;
|
||||||
|
|
||||||
|
$text-color: #111;
|
||||||
|
$background-color: #fdfdfd;
|
||||||
|
$brand-color: #2a7ae2;
|
||||||
|
|
||||||
|
$grey-color: #828282;
|
||||||
|
$grey-color-light: lighten($grey-color, 40%);
|
||||||
|
$grey-color-dark: darken($grey-color, 25%);
|
||||||
|
|
||||||
|
// Width of the content area
|
||||||
|
$content-width: 800px;
|
||||||
|
|
||||||
|
$on-palm: 600px;
|
||||||
|
$on-laptop: 800px;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Use media queries like this:
|
||||||
|
// @include media-query($on-palm) {
|
||||||
|
// .wrapper {
|
||||||
|
// padding-right: $spacing-unit / 2;
|
||||||
|
// padding-left: $spacing-unit / 2;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
@mixin media-query($device) {
|
||||||
|
@media screen and (max-width: $device) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Import partials from `sass_dir` (defaults to `_sass`)
|
||||||
|
@import
|
||||||
|
"bootstrap-readable",
|
||||||
|
"layout",
|
||||||
|
"custom",
|
||||||
|
"syntax-highlighting"
|
||||||
|
;
|
6
exampleSite/archetypes/default.md
Normal file
6
exampleSite/archetypes/default.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
29
exampleSite/config.toml
Normal file
29
exampleSite/config.toml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
baseurl = "http://example.org/"
|
||||||
|
languageCode = "en-us"
|
||||||
|
title = "Hugo Cards"
|
||||||
|
theme = "hugo-cards"
|
||||||
|
themesDir = "../.."
|
||||||
|
paginate = 6
|
||||||
|
|
||||||
|
[params]
|
||||||
|
builtBy = "bool"
|
||||||
|
defaultImage = "gopher.jpg"
|
||||||
|
|
||||||
|
facebook = ""
|
||||||
|
quora = ""
|
||||||
|
twitter = "http://twitter.com/bul_ikana"
|
||||||
|
github = "http://github.com/bul-ikana"
|
||||||
|
email = ""
|
||||||
|
|
||||||
|
fbLikeBox = ""
|
||||||
|
fbAppId = ""
|
||||||
|
fbPageUrl = ""
|
||||||
|
fbPageTitle = ""
|
||||||
|
|
||||||
|
analytics = ""
|
||||||
|
disqus = ""
|
||||||
|
|
||||||
|
[params.copyright]
|
||||||
|
name = "bool"
|
||||||
|
link = "https://bool.netlify.com"
|
||||||
|
|
19
exampleSite/content/pages/about.md
Normal file
19
exampleSite/content/pages/about.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: About
|
||||||
|
permalink: /about/
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Hugo cards is a Bootstrap based theme ported from the Jekyll theme [Webjeda-cards](https://webjeda.com/cards/). Any Bootstrap element can be used in the theme.
|
||||||
|
|
||||||
|
For more themes, visit [Hugo Themes](https://themes.gohugo.io/)
|
||||||
|
|
||||||
|
**Does the theme deserve a star?**
|
||||||
|
|
||||||
|
<!-- Place this tag where you want the button to render. -->
|
||||||
|
<a class="github-button" href="https://github.com/bul-ikana/hugo-cards" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star bul-ikana/hugo-cards on GitHub">Star</a>
|
||||||
|
<!-- Place this tag in your head or just before your close body tag. -->
|
||||||
|
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
10
exampleSite/content/pages/contact.md
Normal file
10
exampleSite/content/pages/contact.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: Contact
|
||||||
|
permalink: /contact/
|
||||||
|
---
|
||||||
|
|
||||||
|
Visit [my site](https://bool.netlify.com)
|
||||||
|
|
||||||
|
Insert your contact details or a contact form here.
|
||||||
|
|
12
exampleSite/content/posts/documentation.md
Normal file
12
exampleSite/content/posts/documentation.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: Documentation
|
||||||
|
img: image-5.png
|
||||||
|
tags: ["tag_a", "tag_b"]
|
||||||
|
date: 2016-03-09
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
Nulla vel ante sit amet leo imperdiet porta. Mauris pellentesque finibus ligula non dignissim. Sed sed vehicula velit. Ut eleifend velit maximus massa lobortis mattis. In dui quam, rutrum eu purus et, mattis consequat ex. Vivamus risus mauris, ultricies vel dolor eget, aliquet tristique est. Suspendisse odio urna, vehicula vel diam at, pulvinar porttitor metus. Sed ac ipsum et magna aliquam mattis in eleifend mi. Pellentesque porttitor diam nec hendrerit efficitur. In hac habitasse platea dictumst. Nam arcu enim, imperdiet quis molestie molestie, molestie non diam. Quisque pretium felis in lorem placerat rhoncus eu et lorem. Praesent tincidunt purus sed mi lacinia maximus. Curabitur rutrum tempus posuere. Donec quis fringilla enim. Nullam nisl nisl, vestibulum sed enim vel, tempor pulvinar ligula.
|
||||||
|
|
||||||
|
Mauris tincidunt ligula et erat ullamcorper varius. Nunc sit amet lacus ullamcorper, suscipit sem in, interdum dui. Nam ultricies, dui eget aliquet mollis, erat ipsum luctus eros, sed pulvinar nulla velit ut nibh. Mauris sed molestie turpis. Curabitur vehicula eros lectus, ac venenatis justo fringilla eget. Phasellus fringilla molestie diam vel aliquet. Nunc orci lorem, laoreet eget blandit nec, vestibulum eu urna. Ut gravida egestas massa, in auctor nisl iaculis id. In hac habitasse platea dictumst. Fusce nec massa ullamcorper, posuere nisl et, feugiat risus. Morbi metus risus, facilisis aliquam risus porta, volutpat viverra leo. Praesent vestibulum, orci in consectetur aliquet, lacus metus suscipit risus, a dignissim eros nibh sed purus. Nullam in magna non nulla ultricies aliquam. Nullam malesuada rhoncus est, in vehicula lacus mattis vel. Nam et velit dignissim, consectetur est ac, imperdiet nulla. Nunc feugiat facilisis ipsum, quis porttitor quam mattis in.
|
10
exampleSite/content/posts/elements.markdown
Normal file
10
exampleSite/content/posts/elements.markdown
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: "Elements"
|
||||||
|
img: image-4.png
|
||||||
|
tags: ["tag_a", "tag_c"]
|
||||||
|
date: "2016-04-10"
|
||||||
|
---
|
||||||
|
Nulla vel ante sit amet leo imperdiet porta. Mauris pellentesque finibus ligula non dignissim. Sed sed vehicula velit. Ut eleifend velit maximus massa lobortis mattis. In dui quam, rutrum eu purus et, mattis consequat ex. Vivamus risus mauris, ultricies vel dolor eget, aliquet tristique est. Suspendisse odio urna, vehicula vel diam at, pulvinar porttitor metus. Sed ac ipsum et magna aliquam mattis in eleifend mi. Pellentesque porttitor diam nec hendrerit efficitur. In hac habitasse platea dictumst. Nam arcu enim, imperdiet quis molestie molestie, molestie non diam. Quisque pretium felis in lorem placerat rhoncus eu et lorem. Praesent tincidunt purus sed mi lacinia maximus. Curabitur rutrum tempus posuere. Donec quis fringilla enim. Nullam nisl nisl, vestibulum sed enim vel, tempor pulvinar ligula.
|
||||||
|
|
||||||
|
Mauris tincidunt ligula et erat ullamcorper varius. Nunc sit amet lacus ullamcorper, suscipit sem in, interdum dui. Nam ultricies, dui eget aliquet mollis, erat ipsum luctus eros, sed pulvinar nulla velit ut nibh. Mauris sed molestie turpis. Curabitur vehicula eros lectus, ac venenatis justo fringilla eget. Phasellus fringilla molestie diam vel aliquet. Nunc orci lorem, laoreet eget blandit nec, vestibulum eu urna. Ut gravida egestas massa, in auctor nisl iaculis id. In hac habitasse platea dictumst. Fusce nec massa ullamcorper, posuere nisl et, feugiat risus. Morbi metus risus, facilisis aliquam risus porta, volutpat viverra leo. Praesent vestibulum, orci in consectetur aliquet, lacus metus suscipit risus, a dignissim eros nibh sed purus. Nullam in magna non nulla ultricies aliquam. Nullam malesuada rhoncus est, in vehicula lacus mattis vel. Nam et velit dignissim, consectetur est ac, imperdiet nulla. Nunc feugiat facilisis ipsum, quis porttitor quam mattis in.
|
11
exampleSite/content/posts/installation.markdown
Normal file
11
exampleSite/content/posts/installation.markdown
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: "Installation"
|
||||||
|
img: image-3.png
|
||||||
|
categories: [one]
|
||||||
|
tags: ["tag_c"]
|
||||||
|
date: 2016-05-09
|
||||||
|
---
|
||||||
|
Nulla vel ante sit amet leo imperdiet porta. Mauris pellentesque finibus ligula non dignissim. Sed sed vehicula velit. Ut eleifend velit maximus massa lobortis mattis. In dui quam, rutrum eu purus et, mattis consequat ex. Vivamus risus mauris, ultricies vel dolor eget, aliquet tristique est. Suspendisse odio urna, vehicula vel diam at, pulvinar porttitor metus. Sed ac ipsum et magna aliquam mattis in eleifend mi. Pellentesque porttitor diam nec hendrerit efficitur. In hac habitasse platea dictumst. Nam arcu enim, imperdiet quis molestie molestie, molestie non diam. Quisque pretium felis in lorem placerat rhoncus eu et lorem. Praesent tincidunt purus sed mi lacinia maximus. Curabitur rutrum tempus posuere. Donec quis fringilla enim. Nullam nisl nisl, vestibulum sed enim vel, tempor pulvinar ligula.
|
||||||
|
|
||||||
|
Mauris tincidunt ligula et erat ullamcorper varius. Nunc sit amet lacus ullamcorper, suscipit sem in, interdum dui. Nam ultricies, dui eget aliquet mollis, erat ipsum luctus eros, sed pulvinar nulla velit ut nibh. Mauris sed molestie turpis. Curabitur vehicula eros lectus, ac venenatis justo fringilla eget. Phasellus fringilla molestie diam vel aliquet. Nunc orci lorem, laoreet eget blandit nec, vestibulum eu urna. Ut gravida egestas massa, in auctor nisl iaculis id. In hac habitasse platea dictumst. Fusce nec massa ullamcorper, posuere nisl et, feugiat risus. Morbi metus risus, facilisis aliquam risus porta, volutpat viverra leo. Praesent vestibulum, orci in consectetur aliquet, lacus metus suscipit risus, a dignissim eros nibh sed purus. Nullam in magna non nulla ultricies aliquam. Nullam malesuada rhoncus est, in vehicula lacus mattis vel. Nam et velit dignissim, consectetur est ac, imperdiet nulla. Nunc feugiat facilisis ipsum, quis porttitor quam mattis in.
|
11
exampleSite/content/posts/no-image.markdown
Normal file
11
exampleSite/content/posts/no-image.markdown
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: "Post with no image"
|
||||||
|
category: two
|
||||||
|
date: 2016-06-09
|
||||||
|
---
|
||||||
|
When there is no image mentioned in the front-matter, default image will be displayed. You can change this image to any other one that suits your needs.
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut non iaculis risus. Phasellus vitae nunc ac lectus finibus porttitor. Sed vel enim vulputate, euismod neque maximus, tincidunt turpis. Aenean accumsan leo eget dui porta pulvinar. Sed tincidunt, nisi non efficitur tempus, enim lectus aliquam arcu, at dignissim ligula ex eu quam. Suspendisse gravida dapibus ultrices. Vivamus convallis nulla nisl, a imperdiet felis pellentesque in. Nulla facilisi. Integer aliquet sed orci eu tempor. Sed viverra ullamcorper commodo.
|
||||||
|
|
||||||
|
Morbi vestibulum sem eget maximus feugiat. Curabitur vehicula magna in molestie dignissim. Nam gravida leo non purus cursus, id accumsan justo tincidunt. Donec accumsan purus mauris, vitae luctus magna faucibus vitae. Nullam tincidunt urna scelerisque, hendrerit mi ac, sagittis ligula. Curabitur convallis eros eu fringilla maximus. Donec lobortis scelerisque enim eu molestie. Duis ac mi quis risus auctor vulputate.
|
10
exampleSite/content/posts/usage.markdown
Normal file
10
exampleSite/content/posts/usage.markdown
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
title: "Usage Guide"
|
||||||
|
img: image-2.png
|
||||||
|
categories: [two]
|
||||||
|
date: "2016-06-12"
|
||||||
|
---
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris erat augue, eleifend nec est quis, iaculis suscipit lacus. In convallis ut mi ac volutpat. Integer feugiat lacinia purus, at condimentum enim tempus vitae. Fusce tempus tortor nibh, ut mollis sapien pulvinar at. Nam nec tortor ante. Phasellus lorem elit, placerat sit amet ligula ac, fermentum vulputate nibh. Quisque sed dapibus risus. Quisque sagittis iaculis maximus. Mauris lorem ligula, commodo in ullamcorper et, mollis ut dui.
|
||||||
|
|
||||||
|
Integer ut turpis metus. Curabitur purus orci, sagittis non ultrices ac, elementum ut diam. Suspendisse fringilla dolor id sapien tincidunt, vitae tempor enim tempus. Ut quis varius tortor, ut molestie ante. Curabitur maximus quis nibh quis lacinia. Nullam ante nunc, mollis sed nibh quis, sagittis semper lectus. Morbi quis enim nibh. Vestibulum justo sem, placerat vitae cursus vel, hendrerit vitae nibh. Mauris id metus non lorem volutpat varius. Fusce dui lectus, imperdiet at felis at, tincidunt dapibus enim. Ut porttitor at magna molestie faucibus. Etiam sed dignissim lectus. Praesent interdum vulputate diam, non iaculis libero fringilla sit amet. Nunc dignissim vel ipsum sed tincidunt. Nullam id sapien quam.
|
11
exampleSite/content/posts/welcome-to-hugo.markdown
Normal file
11
exampleSite/content/posts/welcome-to-hugo.markdown
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
title: "Welcome to Hugo!"
|
||||||
|
date: 2016-06-13 10:51:47 +0530
|
||||||
|
img: "image-1.png"
|
||||||
|
categories: [one, two]
|
||||||
|
author: "Hugo Aguirre"
|
||||||
|
---
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris erat augue, eleifend nec est quis, iaculis suscipit lacus. In convallis ut mi ac volutpat. Integer feugiat lacinia purus, at condimentum enim tempus vitae. Fusce tempus tortor nibh, ut mollis sapien pulvinar at. Nam nec tortor ante. Phasellus lorem elit, placerat sit amet ligula ac, fermentum vulputate nibh. Quisque sed dapibus risus. Quisque sagittis iaculis maximus. Mauris lorem ligula, commodo in ullamcorper et, mollis ut dui.
|
||||||
|
|
||||||
|
Integer ut turpis metus. Curabitur purus orci, sagittis non ultrices ac, elementum ut diam. Suspendisse fringilla dolor id sapien tincidunt, vitae tempor enim tempus. Ut quis varius tortor, ut molestie ante. Curabitur maximus quis nibh quis lacinia. Nullam ante nunc, mollis sed nibh quis, sagittis semper lectus. Morbi quis enim nibh. Vestibulum justo sem, placerat vitae cursus vel, hendrerit vitae nibh. Mauris id metus non lorem volutpat varius. Fusce dui lectus, imperdiet at felis at, tincidunt dapibus enim. Ut porttitor at magna molestie faucibus. Etiam sed dignissim lectus. Praesent interdum vulputate diam, non iaculis libero fringilla sit amet. Nunc dignissim vel ipsum sed tincidunt. Nullam id sapien quam.
|
33
i18n/de.yaml
Normal file
33
i18n/de.yaml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
#
|
||||||
|
# en.yaml 2020-03-08
|
||||||
|
#
|
||||||
|
|
||||||
|
about:
|
||||||
|
other: Über uns
|
||||||
|
|
||||||
|
author:
|
||||||
|
other: Autor
|
||||||
|
|
||||||
|
categories:
|
||||||
|
other: Kategorien
|
||||||
|
|
||||||
|
Categories:
|
||||||
|
other: Kategorien
|
||||||
|
|
||||||
|
category:
|
||||||
|
other: Kategorie
|
||||||
|
|
||||||
|
contact:
|
||||||
|
other: Kontakt
|
||||||
|
|
||||||
|
dateFormat:
|
||||||
|
other: 02.01.2006
|
||||||
|
|
||||||
|
next:
|
||||||
|
other: Weiter
|
||||||
|
|
||||||
|
prev:
|
||||||
|
other: Zurück
|
||||||
|
|
||||||
|
recentArticles:
|
||||||
|
other: Aktuelle Artikel
|
34
i18n/en.yaml
Normal file
34
i18n/en.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
#
|
||||||
|
# en.yaml 2020-03-08
|
||||||
|
#
|
||||||
|
|
||||||
|
about:
|
||||||
|
other: About
|
||||||
|
|
||||||
|
author:
|
||||||
|
other: Author
|
||||||
|
|
||||||
|
categories:
|
||||||
|
other: Categories
|
||||||
|
|
||||||
|
Categories:
|
||||||
|
other: Categories
|
||||||
|
|
||||||
|
category:
|
||||||
|
other: Category
|
||||||
|
|
||||||
|
contact:
|
||||||
|
other: Contact
|
||||||
|
|
||||||
|
dateFormat:
|
||||||
|
other: Jan 02, 2006
|
||||||
|
# other: 2006-01-02
|
||||||
|
|
||||||
|
next:
|
||||||
|
other: Next
|
||||||
|
|
||||||
|
prev:
|
||||||
|
other: Previous
|
||||||
|
|
||||||
|
recentArticles:
|
||||||
|
other: Recent Articles
|
0
layouts/404.html
Normal file
0
layouts/404.html
Normal file
25
layouts/_default/baseof.html
Normal file
25
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
{{ partial "head.html" .}}
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="wrapper">
|
||||||
|
{{ block "main" . }} {{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
|
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
|
||||||
|
<script src="{{ .Site.BaseURL }}/js/bootstrap.min.js"></script>
|
||||||
|
{{ with .Site.Params.analytics }}
|
||||||
|
{{ partial "analytics.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
74
layouts/_default/list.html
Normal file
74
layouts/_default/list.html
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
|
||||||
|
<div class="home">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
Front Matter
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row pack">
|
||||||
|
|
||||||
|
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "posts") }}
|
||||||
|
{{ range $paginator.Pages }}
|
||||||
|
<div class="col-md-4 card">
|
||||||
|
<a href="{{ .Permalink }}" class="index-anchor">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
|
||||||
|
{{ if .Params.img }}
|
||||||
|
<img width="100%" src="{{ .Site.BaseURL }}images/{{ .Params.img }}" alt="{{ .Title }}">
|
||||||
|
{{ else }}
|
||||||
|
<img width="100%" src="{{ .Site.BaseURL }}images/{{ .Site.Params.defaultImage }}" alt="{{ .Site.Title }}">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="panel-body">
|
||||||
|
<h3 class="panel-title pull-left">{{ .Title | truncate 25 }}</h3><span class="post-meta pull-right"><small>{{ .Date.Format (i18n "dateFormat") }}</small></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel-body"><small>
|
||||||
|
{{ .Summary | plainify | truncate 180 }}</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4"> </div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
{{ if gt .Paginator.TotalPages 1 }}
|
||||||
|
<ul class="pagination">
|
||||||
|
{{ if .Paginator.HasPrev }}
|
||||||
|
<li><a href="{{ .Paginator.Prev.URL }}">« {{i18n "prev"}}</a></li>
|
||||||
|
{{ else }}
|
||||||
|
<li><span>« {{i18n "prev"}}</span></li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $scratch := newScratch }}
|
||||||
|
{{ $scratch.Set "current" .Paginator.PageNumber }}
|
||||||
|
|
||||||
|
{{ range .Paginator.Pagers }}
|
||||||
|
{{ if eq .PageNumber ($scratch.Get "current") }}
|
||||||
|
<li class="active"><span><em>{{ .PageNumber }}</em></span></li>
|
||||||
|
{{ else }}
|
||||||
|
<li><a href="{{ .URL }}">{{ .PageNumber }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Paginator.HasNext }}
|
||||||
|
<li><a href="{{ .Paginator.Next.URL }}">{{i18n "next"}} »</a></li>
|
||||||
|
{{ else }}
|
||||||
|
<li><span >{{i18n "next"}} »</span></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4"> </div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ end }}
|
36
layouts/_default/single.html
Normal file
36
layouts/_default/single.html
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
|
||||||
|
|
||||||
|
<header class="post-header">
|
||||||
|
<h1 class="post-title" itemprop="name headline">{{ .Title }}</h1>
|
||||||
|
<p class="post-meta"><time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}' itemprop="datePublished">{{ .Date.Format (i18n "dateFormat") }}</time>{{ with .Params.Author }} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ . }}</span></span>{{ end }}</p>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="post-content" itemprop="articleBody">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<ul class="pager">
|
||||||
|
{{ with .NextPage }}
|
||||||
|
<li><a class="next" href="{{ .Permalink }}">« {{ .Title }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
{{ with .PrevPage }}
|
||||||
|
<li><a class="previous" href="{{ .Permalink }}">{{ .Title }} »</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{{ partial "sidebar.html" . }}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{{ end }}
|
18
layouts/pages/single.html
Normal file
18
layouts/pages/single.html
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
<article class="post">
|
||||||
|
|
||||||
|
<header class="post-header">
|
||||||
|
<h1 class="post-title">{{ .Title }}</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="post-content">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ end }}
|
26
layouts/partials/footer.html
Normal file
26
layouts/partials/footer.html
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<footer>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row p20">
|
||||||
|
|
||||||
|
{{ with .Site.Params.copyright }}
|
||||||
|
<div class="col-md-4 text-left mt25">Copyright <a target="_blank" href="{{ .link }}">{{ .name }}</a></div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="col-md-4 text-center mt25" >
|
||||||
|
{{ with .Site.Params.builtBy }}
|
||||||
|
<a target="_blank" href="{{.link}}"><img src="/{{.Site.BaseURL}}images/{{.image}}" alt="{{.name}}"></a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 text-right mt25">
|
||||||
|
{{with .Site.Params.github }}
|
||||||
|
<a target="_blank" href="{{.}}"><li class="social github"><i class="fa fa-github-square"></i></li></a>
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Site.Params.email }}
|
||||||
|
<a target="_blank" href="mailto:{{.}}"><li class="social email"><i class="fa fa-envelope"></i></li></a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
11
layouts/partials/head.html
Normal file
11
layouts/partials/head.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<title>{{ .Title}}{{if .IsPage}} - {{.Site.Title}}{{ end }}</title>
|
||||||
|
|
||||||
|
{{ $main := resources.Get "sass/main.scss" | toCSS | minify }}
|
||||||
|
<link rel="stylesheet" href="{{ $main.RelPermalink }}">
|
||||||
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
|
</head>
|
25
layouts/partials/header.html
Normal file
25
layouts/partials/header.html
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<header class="site-header">
|
||||||
|
<nav class="navbar navbar-default">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
||||||
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
<a href="{{ .Site.BaseURL }}"><img src="/{{.Site.BaseURL}}images/{{.Site.Params.logo}}" alt="{{.Site.Title}}"></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||||
|
<div class="collapse navbar-collapse " id="bs-example-navbar-collapse-1">
|
||||||
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
<li><a href="{{ .Site.BaseURL }}pages/about/">{{i18n "about"}}</a></li>
|
||||||
|
<li><a href="{{ .Site.BaseURL }}categories/">{{i18n "categories"}}</a></li>
|
||||||
|
<li><a href="{{ .Site.BaseURL }}pages/contact/">{{i18n "contact"}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /.navbar-collapse -->
|
||||||
|
</div><!-- /.container-fluid -->
|
||||||
|
</nav>
|
||||||
|
</header>
|
38
layouts/partials/sidebar.html
Normal file
38
layouts/partials/sidebar.html
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
<div class="col-md-4 mt20">
|
||||||
|
|
||||||
|
<div class="post-img">
|
||||||
|
{{ if .Params.img }}
|
||||||
|
<img width="600" src="{{ .Site.BaseURL}}images/{{ .Params.img }}" alt="{{ .Params.title }}">
|
||||||
|
{{ else }}
|
||||||
|
<img width="600" src="{{ .Site.BaseURL }}images/{{ .Site.Params.defaultImage }}" alt="matrix">
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{{ $taxo := "categories" }}
|
||||||
|
{{ if .Param $taxo }}
|
||||||
|
<div class="mt10 sb-box">
|
||||||
|
<h3>{{i18n "categories"}}</h3>
|
||||||
|
<ul id="{{ $taxo }}">
|
||||||
|
{{ range .Param $taxo }}
|
||||||
|
{{ $name := . }}
|
||||||
|
{{ with $.Site.GetPage (printf "/%s/%s" $taxo ($name | urlize)) }}
|
||||||
|
<li><a href="{{ .Permalink }}">{{ $name }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="mt10 sb-box">
|
||||||
|
<h3>{{i18n "recentArticles"}}</h3>
|
||||||
|
<ul>
|
||||||
|
{{ range first 3 (where .Site.RegularPages "Section" "posts") }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .Permalink }}">{{ .Title }}</a><small> {{ .Date.Format (i18n "dateFormat") }}</small>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
81
layouts/taxonomy/list.html
Normal file
81
layouts/taxonomy/list.html
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
|
||||||
|
<div class="home">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<h1 class="site-title">{{i18n "category"}}: {{.Title | title}}</h1>
|
||||||
|
<ul class="site-description">
|
||||||
|
{{ $data := .Data }}
|
||||||
|
{{ range $key, $value := .Data.Pages }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ $value.Permalink }}">
|
||||||
|
{{ $value.Name }} </a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ $paginator := .Paginate (.Data.Pages) }}
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
{{ range $paginator.Pages }}
|
||||||
|
<div class="col-md-4">
|
||||||
|
<a href="{{ .Permalink }}" class="index-anchor">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
|
||||||
|
{{ if .Params.img }}
|
||||||
|
<img width="100%" src="{{ .Site.BaseURL }}images/{{ .Params.img }}" alt="{{ .Title }}">
|
||||||
|
{{ else }}
|
||||||
|
<img width="100%" src="{{ .Site.BaseURL }}images/{{ .Site.Params.defaultImage }}" alt="{{ .Site.Title }}">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="panel-body">
|
||||||
|
<h3 class="panel-title pull-left">{{ .Title | truncate 25 }}</h3><span class="post-meta pull-right"><small>{{ .Date.Format (i18n "dateFormat") }}</small></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel-body"><small>
|
||||||
|
{{ .Summary | plainify | truncate 180 }}</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4"> </div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
{{ if gt .Paginator.TotalPages 1 }}
|
||||||
|
<ul class="pagination">
|
||||||
|
{{ if .Paginator.HasPrev }}
|
||||||
|
<li><a href="{{ .Paginator.Prev.URL }}">« Prev</a></li>
|
||||||
|
{{ else }}
|
||||||
|
<li><span>« Prev</span></li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $scratch := newScratch }}
|
||||||
|
{{ $scratch.Set "current" .Paginator.PageNumber }}
|
||||||
|
|
||||||
|
{{ range .Paginator.Pagers }}
|
||||||
|
{{ if eq .PageNumber ($scratch.Get "current") }}
|
||||||
|
<li class="active"><span><em>{{ .PageNumber }}</em></span></li>
|
||||||
|
{{ else }}
|
||||||
|
<li><a href="{{ .URL }}">{{ .PageNumber }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Paginator.HasNext }}
|
||||||
|
<li><a href="{{ .Paginator.Next.URL }}">Next »</a></li>
|
||||||
|
{{ else }}
|
||||||
|
<li><span >Next »</span></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4"> </div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
70
layouts/taxonomy/tag.html
Normal file
70
layouts/taxonomy/tag.html
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
|
||||||
|
<div class="home">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row pack">
|
||||||
|
|
||||||
|
{{ $paginator := .Paginate .Data.Pages }}
|
||||||
|
{{ range $paginator.Pages }}
|
||||||
|
<div class="col-md-4 card">
|
||||||
|
<a href="{{ .Permalink }}" class="index-anchor">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
|
||||||
|
{{ if .Params.img }}
|
||||||
|
<img width="100%" src="{{ .Site.BaseURL }}images/{{ .Params.img }}" alt="{{ .Title }}">
|
||||||
|
{{ else }}
|
||||||
|
<img width="100%" src="{{ .Site.BaseURL }}images/{{ .Site.Params.defaultImage }}" alt="{{ .Site.Title }}">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="panel-body">
|
||||||
|
<h3 class="panel-title pull-left">{{ .Title | truncate 25 }}</h3><span class="post-meta pull-right"><small>{{ .Date.Format "January 2, 2006" }}</small></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel-body"><small>
|
||||||
|
{{ .Summary | plainify | truncate 180 }}</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4"> </div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
{{ if gt .Paginator.TotalPages 1 }}
|
||||||
|
<ul class="pagination">
|
||||||
|
{{ if .Paginator.HasPrev }}
|
||||||
|
<li><a href="{{ .Paginator.Prev.URL }}">« Prev</a></li>
|
||||||
|
{{ else }}
|
||||||
|
<li><span>« Prev</span></li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $scratch := newScratch }}
|
||||||
|
{{ $scratch.Set "current" .Paginator.PageNumber }}
|
||||||
|
|
||||||
|
{{ range .Paginator.Pagers }}
|
||||||
|
{{ if eq .PageNumber ($scratch.Get "current") }}
|
||||||
|
<li class="active"><span><em>{{ .PageNumber }}</em></span></li>
|
||||||
|
{{ else }}
|
||||||
|
<li><a href="{{ .URL }}">{{ .PageNumber }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Paginator.HasNext }}
|
||||||
|
<li><a href="{{ .Paginator.Next.URL }}">Next »</a></li>
|
||||||
|
{{ else }}
|
||||||
|
<li><span >Next »</span></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4"> </div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ end }}
|
19
layouts/taxonomy/terms.html
Normal file
19
layouts/taxonomy/terms.html
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
|
||||||
|
<div id="content">
|
||||||
|
|
||||||
|
<div class="site-header-content">
|
||||||
|
<h1 class="site-title">{{i18n .Title}}</h1>
|
||||||
|
<ul class="site-description">
|
||||||
|
{{ $data := .Data }}
|
||||||
|
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ $.Site.BaseURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}">
|
||||||
|
{{ $value.Name }} </a> ({{ $value.Count }})</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ end }}
|
7
static/js/bootstrap.min.js
vendored
Normal file
7
static/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
21
theme.yaml
Normal file
21
theme.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# theme.yaml template for a Hugo theme
|
||||||
|
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
|
||||||
|
|
||||||
|
name: Cybercards
|
||||||
|
license: "MIT"
|
||||||
|
licenselink: "https://github.com/bul-ikana/hugo-cards/blob/master/LICENSE.md"
|
||||||
|
description: "A bootstrap based minimal hugo theme based on webjeda-cards"
|
||||||
|
homepage: "https://www.cyberconcepts.org"
|
||||||
|
tags: ["bootstrap", "cards", "responsive", "jekyll", "blog"]
|
||||||
|
features: []
|
||||||
|
min_version: "0.57.0"
|
||||||
|
|
||||||
|
author:
|
||||||
|
name: "Hugo Aguirre"
|
||||||
|
homepage: "https://bool.netlify.com"
|
||||||
|
|
||||||
|
# If porting an existing theme
|
||||||
|
original:
|
||||||
|
name: "Webjeda-cards"
|
||||||
|
homepage: "https://webjeda.com/cards/"
|
||||||
|
repo: "https://github.com/sharu725/cards"
|
Loading…
Add table
Reference in a new issue