🎉 Hello World
This commit is contained in:
commit
94877013bd
1
_redirects
Normal file
1
_redirects
Normal file
@ -0,0 +1 @@
|
||||
/* /404.html 404
|
17
archetypes/default.md
Normal file
17
archetypes/default.md
Normal file
@ -0,0 +1,17 @@
|
||||
+++
|
||||
title = "{{ replace .Name `-` ` ` | title }}"
|
||||
date = {{ .Date }}
|
||||
lastmod = {{ .Date }}
|
||||
tags = []
|
||||
categories = []
|
||||
imgs = []
|
||||
cover = "" # image show on top
|
||||
readingTime = true # show reading time after article date
|
||||
toc = true
|
||||
comments = false
|
||||
justify = false # text-align: justify;
|
||||
single = false # display as a single page, hide navigation on bottom, like as about page.
|
||||
license = "" # CC License
|
||||
draft = true
|
||||
+++
|
||||
|
6
assets/css/bootstrap.min.css
vendored
Normal file
6
assets/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
370
assets/css/style.css
Normal file
370
assets/css/style.css
Normal file
@ -0,0 +1,370 @@
|
||||
/**
|
||||
* Template Name: Stanley
|
||||
* Template URL: https://templatemag.com/stanley-bootstrap-freelancer-template/
|
||||
* Author: TemplateMag.com
|
||||
* License: https://templatemag.com/license/
|
||||
*/
|
||||
|
||||
body {
|
||||
background-color: #ffffff;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
/* Titles */
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 35px;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
/* Paragraph & Typographic */
|
||||
|
||||
p {
|
||||
line-height: 28px;
|
||||
margin-bottom: 25px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.centered {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Links */
|
||||
|
||||
a {
|
||||
color: #1abc9c;
|
||||
word-wrap: break-word;
|
||||
-webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
|
||||
-moz-transition: color 0.1s ease-in, background 0.1s ease-in;
|
||||
-ms-transition: color 0.1s ease-in, background 0.1s ease-in;
|
||||
-o-transition: color 0.1s ease-in, background 0.1s ease-in;
|
||||
transition: color 0.1s ease-in, background 0.1s ease-in;
|
||||
}
|
||||
|
||||
a:hover, a:focus {
|
||||
color: #7b7b7b;
|
||||
text-decoration: none;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
a:before, a:after {
|
||||
-webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
|
||||
-moz-transition: color 0.1s ease-in, background 0.1s ease-in;
|
||||
-ms-transition: color 0.1s ease-in, background 0.1s ease-in;
|
||||
-o-transition: color 0.1s ease-in, background 0.1s ease-in;
|
||||
transition: color 0.1s ease-in, background 0.1s ease-in;
|
||||
}
|
||||
|
||||
hr {
|
||||
display: block;
|
||||
height: 1px;
|
||||
border: 0;
|
||||
border-top: 1px solid #ccc;
|
||||
margin: 1em 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.navbar-inverse {
|
||||
padding: 30px 0;
|
||||
}
|
||||
|
||||
@media (max-width: 768px ) {
|
||||
.navbar-inverse {
|
||||
padding: 15px 0;
|
||||
}
|
||||
}
|
||||
.navbar-inverse {
|
||||
background-color: #1abc9c;
|
||||
border-color: #16a085;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-nav>li>a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-nav>li>a:hover {
|
||||
color: #222222;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-weight: 700;
|
||||
font-size: 20px;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-brand {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-toggle {
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.progress-bar-theme {
|
||||
background-color: #1abc9c;
|
||||
}
|
||||
|
||||
/* Helpers */
|
||||
|
||||
.mt {
|
||||
margin-top: 40px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.pt {
|
||||
padding-top: 50px;
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
|
||||
/* +++++ WRAP SECTIONS +++++ */
|
||||
|
||||
#ww {
|
||||
padding-top: 70px;
|
||||
padding-bottom: 70px;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
#footer {
|
||||
background-color: #2f2f2f;
|
||||
padding-top: 50px;
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
|
||||
#footer p {
|
||||
color: white;
|
||||
}
|
||||
|
||||
#footer h4 {
|
||||
color: white;
|
||||
text-transform: uppercase;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
/* +++++ Color Wraps / Blog Page +++++ */
|
||||
|
||||
#grey {
|
||||
padding-top: 60px;
|
||||
padding-bottom: 60px;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
#white {
|
||||
padding-top: 60px;
|
||||
padding-bottom: 60px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
/* Blog Date*/
|
||||
|
||||
bd {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
color: #d2d2d2;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* Blog Author*/
|
||||
|
||||
ba {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Blog Quote */
|
||||
|
||||
.bq {
|
||||
font-size: 22px;
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
/* Blog Tags */
|
||||
|
||||
bt {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* ================== PORTFOLIO IMAGES HOVER EFFECT ================== */
|
||||
|
||||
/* Effects also are controled by hover.zoom.js */
|
||||
|
||||
.zoom {
|
||||
display: block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: transparent url(../img/loader.gif) no-repeat center;
|
||||
}
|
||||
|
||||
.zoomOverlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
display: none;
|
||||
background-image: url(../img/zoom.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.zoom2 {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.zoom2:hover {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
/* glyphicon Configuration */
|
||||
|
||||
.glyphicon {
|
||||
font-size: 40px;
|
||||
color: #1abc9c;
|
||||
}
|
||||
|
||||
/* Contact Form */
|
||||
|
||||
#contact {
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
.contact-form {}
|
||||
|
||||
.contact-form label {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.contact-form input, .contact-form textarea {
|
||||
padding: 10px 12px;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
font-size: 14px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.contact-form .form-send {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.contact-form .form-send button {
|
||||
background: #1abc9c;
|
||||
border: 0;
|
||||
padding: 10px 30px;
|
||||
color: #fff;
|
||||
transition: 0.4s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.contact-form .form-send button:hover {
|
||||
background: #1de0ba;
|
||||
}
|
||||
|
||||
.contact-form .validate {
|
||||
display: none;
|
||||
color: red;
|
||||
margin: 0 0 15px 0;
|
||||
font-weight: 400;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.contact-form .loading {
|
||||
display: none;
|
||||
color: #555;
|
||||
background: #fff;
|
||||
text-align: center;
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.contact-form .loading:before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
border-radius: 50%;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: 3px solid #18d26e;
|
||||
border-top-color: #eee;
|
||||
-webkit-animation: animate-loading 1s linear infinite;
|
||||
animation: animate-loading 1s linear infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes animate-loading {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes animate-loading {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.contact-form .error-message {
|
||||
display: none;
|
||||
color: #fff;
|
||||
background: #ed3c0d;
|
||||
text-align: center;
|
||||
padding: 15px;
|
||||
font-weight: 600;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.contact-form .sent-message {
|
||||
display: none;
|
||||
color: #fff;
|
||||
background: #18d26e;
|
||||
text-align: center;
|
||||
padding: 15px;
|
||||
font-weight: 600;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
/* Copyrights */
|
||||
|
||||
#copyrights {
|
||||
background: #222222;
|
||||
padding: 20px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#copyrights p {
|
||||
margin-bottom: 5px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#copyrights a {
|
||||
color: #1abc9c;
|
||||
}
|
||||
|
||||
.credits {
|
||||
color: #999;
|
||||
}
|
4
assets/js/main.js
Normal file
4
assets/js/main.js
Normal file
@ -0,0 +1,4 @@
|
||||
jQuery(document).ready(function( $ ) {
|
||||
|
||||
|
||||
});
|
101
exampleSite/assets/css/fonts.css
Executable file
101
exampleSite/assets/css/fonts.css
Executable file
@ -0,0 +1,101 @@
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v16/S6u8w4BMUTPHjxsAXC-v.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v16/S6u_w4BMUTPHjxsI5wq_Gwfo.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v16/S6uyw4BMUTPHjx4wWw.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v16/S6u9w4BMUTPHh6UVSwiPHA.ttf) format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro Italic'), local('SourceCodePro-It'), url(https://fonts.gstatic.com/s/sourcecodepro/v11/HI_QiYsKILxRpg3hIP6sJ7fM7PqlONvUlMc.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro Medium Italic'), local('SourceCodePro-MediumIt'), url(https://fonts.gstatic.com/s/sourcecodepro/v11/HI_ViYsKILxRpg3hIP6sJ7fM7PqlONMnt9co5mg.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro SemiBold Italic'), local('SourceCodePro-SemiBoldIt'), url(https://fonts.gstatic.com/s/sourcecodepro/v11/HI_ViYsKILxRpg3hIP6sJ7fM7PqlONMLsNco5mg.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro Bold Italic'), local('SourceCodePro-BoldIt'), url(https://fonts.gstatic.com/s/sourcecodepro/v11/HI_ViYsKILxRpg3hIP6sJ7fM7PqlONNvsdco5mg.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro Regular'), local('SourceCodePro-Regular'), url(https://fonts.gstatic.com/s/sourcecodepro/v11/HI_SiYsKILxRpg3hIP6sJ7fM7PqlPevT.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro Medium'), local('SourceCodePro-Medium'), url(https://fonts.gstatic.com/s/sourcecodepro/v11/HI_XiYsKILxRpg3hIP6sJ7fM7PqtzsjDs-cv.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro SemiBold'), local('SourceCodePro-SemiBold'), url(https://fonts.gstatic.com/s/sourcecodepro/v11/HI_XiYsKILxRpg3hIP6sJ7fM7Pqt4s_Ds-cv.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro Bold'), local('SourceCodePro-Bold'), url(https://fonts.gstatic.com/s/sourcecodepro/v11/HI_XiYsKILxRpg3hIP6sJ7fM7Pqths7Ds-cv.ttf) format('truetype');
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: Lato, system-ui, -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', 'Segoe UI',
|
||||
Ubuntu, Roboto, Oxygen, Cantarell, 'Fira Sans', 'Droid Sans',
|
||||
'Helvetica Neue', Helvetica, Arial, Verdana, 'Lucida Grande',
|
||||
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
||||
}
|
||||
|
||||
code,
|
||||
pre,
|
||||
tt,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: 'Source Code Pro', Menlo, Consolas, 'Liberation Mono', monospace;
|
||||
font-weight: 500;
|
||||
}
|
59
exampleSite/config.toml
Normal file
59
exampleSite/config.toml
Normal file
@ -0,0 +1,59 @@
|
||||
baseURL = "https://example.com"
|
||||
title = "Notepadium"
|
||||
theme = "hugo-notepadium"
|
||||
copyright = "©2020 Notepadium."
|
||||
|
||||
languageCode = "en" # for the RSS generation
|
||||
defaultContentLanguage = "en"
|
||||
|
||||
hasCJKLanguage = true
|
||||
|
||||
enableRobotsTXT = true
|
||||
|
||||
# Enable Disqus
|
||||
#disqusShortname = "XXX"
|
||||
|
||||
# Google Analytics
|
||||
#googleAnalytics = "UA-123-45"
|
||||
|
||||
[markup.highlight]
|
||||
codeFences = true
|
||||
noClasses = false
|
||||
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true # enable raw HTML in Markdown
|
||||
|
||||
[params]
|
||||
style = "auto" # default: auto. light: light theme, dark: dark theme, auto: based on system.
|
||||
dateFormat = "Jan 02, 2006" # if unset, default is "2006-01-02"
|
||||
readingTime = false # show reading time after article date
|
||||
logo = ""
|
||||
slogan = "100% JavaScript-free"
|
||||
#license = "<a rel=license href=http://creativecommons.org/licenses/by-nc-sa/4.0/><img alt=Creative Commons License style=border-width:0 src=https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png /></a><br />This work is licensed under a <a rel=license href=http://creativecommons.org/licenses/by-nc-sa/4.0/>Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>."
|
||||
|
||||
[params.assets]
|
||||
css = ["css/fonts.css"]
|
||||
|
||||
[params.comments]
|
||||
enable = false # En/Disable comments globally, default: false. You can always enable comments on per page.
|
||||
|
||||
[params.math]
|
||||
enable = false # load math globally, default: false. You can always enable math on per page.
|
||||
use = "katex" # builtin: "katex", "mathjax". default: "katex"
|
||||
|
||||
[params.syntax]
|
||||
use = "none" # builtin: "prismjs", "hljs". "none" means Chroma
|
||||
theme = "xcode"
|
||||
darkTheme = "xcode-dark"
|
||||
|
||||
[params.nav]
|
||||
showCategories = true # /categories/
|
||||
showTags = true # /tags/
|
||||
|
||||
[[params.nav.custom]]
|
||||
title = "About"
|
||||
url = "/about/"
|
||||
|
||||
[[params.nav.custom]]
|
||||
title = "Hugo"
|
||||
url = "https://gohugo.io/"
|
4
exampleSite/content/_index.md
Normal file
4
exampleSite/content/_index.md
Normal file
@ -0,0 +1,4 @@
|
||||
+++
|
||||
author = "Hugo Authors"
|
||||
+++
|
||||
|
28
exampleSite/content/about.md
Normal file
28
exampleSite/content/about.md
Normal file
@ -0,0 +1,28 @@
|
||||
+++
|
||||
title = "About"
|
||||
description = "Hugo, the world’s fastest framework for building websites"
|
||||
date = "2019-02-28"
|
||||
aliases = ["about-us","about-hugo","contact"]
|
||||
author = "Hugo Authors"
|
||||
+++
|
||||
|
||||
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
|
||||
|
||||
Hugo makes use of a variety of open source projects including:
|
||||
|
||||
* https://github.com/russross/blackfriday
|
||||
* https://github.com/alecthomas/chroma
|
||||
* https://github.com/muesli/smartcrop
|
||||
* https://github.com/spf13/cobra
|
||||
* https://github.com/spf13/viper
|
||||
|
||||
Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
|
||||
|
||||
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
|
||||
|
||||
Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
|
||||
|
||||
Learn more and contribute on [GitHub](https://github.com/gohugoio).
|
||||
|
||||
|
||||
|
7
exampleSite/content/homepage/about.md
Normal file
7
exampleSite/content/homepage/about.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 'Our Difference'
|
||||
button: 'About us'
|
||||
weight: 2
|
||||
---
|
||||
|
||||
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo,
|
3
exampleSite/content/homepage/index.md
Normal file
3
exampleSite/content/homepage/index.md
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
headless : true
|
||||
---
|
7
exampleSite/content/homepage/work.md
Normal file
7
exampleSite/content/homepage/work.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 'We Help Business Grow'
|
||||
button: 'Our Work'
|
||||
weight: 1
|
||||
---
|
||||
|
||||
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit.
|
6
exampleSite/content/post/_index.md
Normal file
6
exampleSite/content/post/_index.md
Normal file
@ -0,0 +1,6 @@
|
||||
+++
|
||||
aliases = ["posts","articles","blog","showcase","docs"]
|
||||
title = "Posts"
|
||||
author = "Hugo Authors"
|
||||
tags = ["index"]
|
||||
+++
|
47
exampleSite/content/post/emoji-support.md
Normal file
47
exampleSite/content/post/emoji-support.md
Normal file
@ -0,0 +1,47 @@
|
||||
+++
|
||||
author = "Hugo Authors"
|
||||
title = "Emoji Support"
|
||||
date = "2019-03-05"
|
||||
description = "Guide to emoji usage in Hugo"
|
||||
tags = [
|
||||
"emoji",
|
||||
]
|
||||
+++
|
||||
|
||||
Emoji can be enabled in a Hugo project in a number of ways.
|
||||
<!--more-->
|
||||
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
|
||||
|
||||
To enable emoji globally, set `enableEmoji` to `true` in your site’s [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
|
||||
|
||||
|
||||
<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
|
||||
<br>
|
||||
|
||||
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
|
||||
|
||||
***
|
||||
|
||||
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
|
||||
|
||||
{{< highlight html >}}
|
||||
.emoji {
|
||||
font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
|
||||
}
|
||||
{{< /highlight >}}
|
||||
|
||||
{{< css.inline >}}
|
||||
<style>
|
||||
.emojify {
|
||||
font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
|
||||
font-size: 2rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@media screen and (max-width:650px) {
|
||||
.nowrap {
|
||||
display: block;
|
||||
margin: 25px 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{{< /css.inline >}}
|
147
exampleSite/content/post/markdown-syntax.md
Normal file
147
exampleSite/content/post/markdown-syntax.md
Normal file
@ -0,0 +1,147 @@
|
||||
+++
|
||||
author = "Hugo Authors"
|
||||
title = "Markdown Syntax Guide"
|
||||
date = "2019-03-11"
|
||||
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
|
||||
tags = [
|
||||
"markdown",
|
||||
"css",
|
||||
"html",
|
||||
"themes",
|
||||
]
|
||||
categories = [
|
||||
"themes",
|
||||
"syntax",
|
||||
]
|
||||
series = ["Themes Guide"]
|
||||
aliases = ["migrate-from-jekyl"]
|
||||
+++
|
||||
|
||||
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
|
||||
<!--more-->
|
||||
|
||||
## Headings
|
||||
|
||||
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
|
||||
|
||||
# H1
|
||||
## H2
|
||||
### H3
|
||||
#### H4
|
||||
##### H5
|
||||
###### H6
|
||||
|
||||
## Paragraph
|
||||
|
||||
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
|
||||
|
||||
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
|
||||
|
||||
## Blockquotes
|
||||
|
||||
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
|
||||
|
||||
#### Blockquote without attribution
|
||||
|
||||
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||||
> **Note** that you can use *Markdown syntax* within a blockquote.
|
||||
|
||||
#### Blockquote with attribution
|
||||
|
||||
> Don't communicate by sharing memory, share memory by communicating.</p>
|
||||
> — <cite>Rob Pike[^1]</cite>
|
||||
|
||||
|
||||
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
|
||||
|
||||
## Tables
|
||||
|
||||
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
|
||||
|
||||
Name | Age
|
||||
--------|------
|
||||
Bob | 27
|
||||
Alice | 23
|
||||
|
||||
#### Inline Markdown within tables
|
||||
|
||||
| Inline | Markdown | In | Table |
|
||||
| ---------- | --------- | ----------------- | ---------- |
|
||||
| *italics* | **bold** | ~~strikethrough~~ | `code` |
|
||||
|
||||
## Code Blocks
|
||||
|
||||
#### Code block with backticks
|
||||
|
||||
```
|
||||
html
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
#### Code block indented with four spaces
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
#### Code block with Hugo's internal highlight shortcode
|
||||
{{< highlight html >}}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
{{< /highlight >}}
|
||||
|
||||
## List Types
|
||||
|
||||
#### Ordered List
|
||||
|
||||
1. First item
|
||||
2. Second item
|
||||
3. Third item
|
||||
|
||||
#### Unordered List
|
||||
|
||||
* List item
|
||||
* Another item
|
||||
* And another item
|
||||
|
||||
#### Nested list
|
||||
|
||||
* Item
|
||||
1. First Sub-item
|
||||
2. Second Sub-item
|
||||
|
||||
## Other Elements — abbr, sub, sup, kbd, mark
|
||||
|
||||
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
|
||||
|
||||
H<sub>2</sub>O
|
||||
|
||||
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
||||
|
||||
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
|
||||
|
||||
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
||||
|
46
exampleSite/content/post/math-typesetting.mmark
Normal file
46
exampleSite/content/post/math-typesetting.mmark
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
author: Hugo Authors
|
||||
title: Math Typesetting
|
||||
date: 2019-03-08
|
||||
description: A brief guide to setup KaTeX
|
||||
markup: mmark
|
||||
math: true
|
||||
---
|
||||
|
||||
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
|
||||
<!--more-->
|
||||
|
||||
In this example we will be using [KaTeX](https://katex.org/)
|
||||
|
||||
- Create a partial under `/layouts/partials/math.html`
|
||||
- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
|
||||
- Include the partial in your templates like so:
|
||||
|
||||
```
|
||||
{{ if or .Params.math .Site.Params.math }}
|
||||
{{ partial "math.html" . }}
|
||||
{{ end }}
|
||||
```
|
||||
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
|
||||
- To enable KaTex on a per page basis include the parameter `math: true` in content files.
|
||||
|
||||
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
|
||||
{{< math.inline >}}
|
||||
{{ if or .Page.Params.math .Site.Params.math }}
|
||||
<!-- KaTeX -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.css" integrity="sha384-dbVIfZGuN1Yq7/1Ocstc1lUEm+AT+/rCkibIcC/OmWo5f0EA48Vf8CytHzGrSwbQ" crossorigin="anonymous">
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.js" integrity="sha384-2BKqo+exmr9su6dir+qCw08N2ZKRucY4PrGQPPWU1A7FtlCGjmEGFqXCv5nyM5Ij" crossorigin="anonymous"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
|
||||
{{ end }}
|
||||
{{</ math.inline >}}
|
||||
|
||||
### Examples
|
||||
|
||||
Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
|
||||
|
||||
Block math:
|
||||
|
||||
$$
|
||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||||
$$
|
||||
|
58
exampleSite/content/post/placeholder-text.md
Normal file
58
exampleSite/content/post/placeholder-text.md
Normal file
@ -0,0 +1,58 @@
|
||||
+++
|
||||
author = "Hugo Authors"
|
||||
title = "Placeholder Text"
|
||||
date = "2019-03-09"
|
||||
description = "Lorem Ipsum Dolor Si Amet"
|
||||
tags = [
|
||||
"markdown",
|
||||
"text",
|
||||
]
|
||||
+++
|
||||
|
||||
Lorem est tota propiore conpellat pectoribus de
|
||||
pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice
|
||||
subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc
|
||||
caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis
|
||||
lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
|
||||
|
||||
1. Exierant elisi ambit vivere dedere
|
||||
2. Duce pollice
|
||||
3. Eris modo
|
||||
4. Spargitque ferrea quos palude
|
||||
|
||||
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus
|
||||
silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria
|
||||
tractus malis.
|
||||
|
||||
1. Comas hunc haec pietate fetum procerum dixit
|
||||
2. Post torum vates letum Tiresia
|
||||
3. Flumen querellas
|
||||
4. Arcanaque montibus omnes
|
||||
5. Quidem et
|
||||
|
||||
# Vagus elidunt
|
||||
|
||||
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
|
||||
|
||||
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
|
||||
|
||||
## Mane refeci capiebant unda mulcebat
|
||||
|
||||
Victa caducifer, malo vulnere contra
|
||||
dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere
|
||||
furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
|
||||
|
||||
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli
|
||||
Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare
|
||||
Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert
|
||||
ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae
|
||||
vulnus haerentia iuste et exercebat, sui et.
|
||||
|
||||
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem
|
||||
Propoetides **parte**.
|
||||
|
||||
{{< css.inline >}}
|
||||
<style>
|
||||
.canon { background: white; width: 100%; height: auto;}
|
||||
</style>
|
||||
{{< /css.inline >}}
|
42
exampleSite/content/post/rich-content.md
Normal file
42
exampleSite/content/post/rich-content.md
Normal file
@ -0,0 +1,42 @@
|
||||
+++
|
||||
author = "Hugo Authors"
|
||||
title = "Rich Content"
|
||||
date = "2019-03-10"
|
||||
description = "A brief description of Hugo Shortcodes"
|
||||
tags = [
|
||||
"shortcodes",
|
||||
"privacy",
|
||||
]
|
||||
+++
|
||||
|
||||
Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
|
||||
<!--more-->
|
||||
---
|
||||
|
||||
## Instagram Simple Shortcode
|
||||
|
||||
{{< instagram_simple BGvuInzyFAe hidecaption >}}
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
## YouTube Privacy Enhanced Shortcode
|
||||
|
||||
{{< youtube ZJthWmvUzzc >}}
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
## Twitter Simple Shortcode
|
||||
|
||||
{{< twitter_simple 1085870671291310081 >}}
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
## Vimeo Simple Shortcode
|
||||
|
||||
{{< vimeo_simple 48912912 >}}
|
BIN
images/apple-touch-icon.png
Normal file
BIN
images/apple-touch-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
images/favicon.png
Normal file
BIN
images/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 491 B |
BIN
images/loader.gif
Normal file
BIN
images/loader.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
images/user.png
Normal file
BIN
images/user.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
9
layouts/404.html
Normal file
9
layouts/404.html
Normal file
@ -0,0 +1,9 @@
|
||||
{{- define "main" -}}
|
||||
<article class="article markdown-body">
|
||||
<h1 id="title">NOT FOUND</h1>
|
||||
<pre class="chroma"><code class="language-c" data-lang="c"><span class="kt">int</span> <span class="nf">main</span><span class="p">(</span><span class="kt">int</span> <span class="n">argc</span><span class="p">,</span> <span class="kt">char</span> <span class="o">*</span><span class="o">*</span><span class="n">argv</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="n">printf</span><span class="p">(</span><span class="sa"></span><span class="s">"</span><span class="s">404</span><span class="s">"</span><span class="p">)</span><span class="p">;</span>
|
||||
<span class="k">return</span> <span class="mi">0</span><span class="p">;</span>
|
||||
<span class="p">}</span></code></pre>
|
||||
</article>
|
||||
{{- end -}}
|
16
layouts/_default/_markup/render-image.html
Normal file
16
layouts/_default/_markup/render-image.html
Normal file
@ -0,0 +1,16 @@
|
||||
{{- $url := .Destination | safeURL -}}
|
||||
{{- $block := gt (len .Title) 0 -}}
|
||||
|
||||
{{- if $block -}}
|
||||
<span class="image-container"><span class="link">
|
||||
{{- end -}}
|
||||
<a target="_blank" rel="noopener noreferrer"
|
||||
href="{{- $url -}}"><img {{ if $block }}class="img"{{ end }} src="{{- $url -}}"
|
||||
alt{{- with .Text -}}="{{- . -}}" {{- end -}} /></a>
|
||||
{{- if $block -}}
|
||||
</span>
|
||||
{{- if ne .Title " " -}}
|
||||
<span class="caption"><span class="title">{{- .Title | safeHTML -}}</span></span>
|
||||
{{- end -}}
|
||||
</span>
|
||||
{{- end -}}
|
5
layouts/_default/_markup/render-link.html
Normal file
5
layouts/_default/_markup/render-link.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{- $url := .Destination | safeURL -}}
|
||||
{{- $text := .Text | safeHTML -}}
|
||||
<a href="{{- $url -}}"
|
||||
{{- with .Title -}}title="{{- . -}}"{{- end -}}
|
||||
{{- if strings.HasPrefix $url "http" -}}target="_blank"{{- end -}}>{{- $text -}}</a>
|
15
layouts/_default/baseof.html
Normal file
15
layouts/_default/baseof.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ site.Language.Lang }}">
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
<div class="base-body">
|
||||
<div id="content">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
22
layouts/_default/list.html
Normal file
22
layouts/_default/list.html
Normal file
@ -0,0 +1,22 @@
|
||||
{{- define "main" -}}
|
||||
{{- $paginator := .Paginator -}}
|
||||
|
||||
{{- $title := T .Title -}}
|
||||
{{- if not $title -}}
|
||||
{{- $title = .Title -}}
|
||||
{{- end -}}
|
||||
{{ if false }}
|
||||
<section class="article header"><h1>{{- $title -}}</h1></section>
|
||||
{{- if .Content -}}
|
||||
<article class="article markdown-body">
|
||||
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
<!-- Ranges through content/posts/*.md -->
|
||||
|
||||
{{- partial "note-list.html" $paginator -}}
|
||||
{{- partial "pagination.html" $paginator -}}
|
||||
|
||||
{{- end -}}
|
27
layouts/_default/rss.xml
Normal file
27
layouts/_default/rss.xml
Normal file
@ -0,0 +1,27 @@
|
||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link>{{ .RelPermalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .RelPermalink .MediaType | safeHTML }}
|
||||
{{ end }}
|
||||
{{ range .Pages }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .RelPermalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .RelPermalink }}</guid>
|
||||
<description>{{ .Summary | html }}</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
11
layouts/_default/section.html
Normal file
11
layouts/_default/section.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{- define "main" -}}
|
||||
{{- $paginator := .Paginator -}}
|
||||
|
||||
<section class="article header"><h1>{{- .Title -}}</h1></section>
|
||||
{{- partial "section-body.html" . -}}
|
||||
<!-- Ranges through content/posts/*.md -->
|
||||
|
||||
{{- partial "note-list.html" $paginator -}}
|
||||
{{- partial "pagination.html" $paginator -}}
|
||||
|
||||
{{- end -}}
|
24
layouts/_default/single.html
Normal file
24
layouts/_default/single.html
Normal file
@ -0,0 +1,24 @@
|
||||
{{- define "main" -}}
|
||||
|
||||
{{- $justify := false -}}
|
||||
{{- if eq .Params.justify true -}} {{- $justify = true -}} {{- end -}}
|
||||
<div id="white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
{{- partial "article-header.html" . -}}
|
||||
<h4>{{ .Title }}</h4>
|
||||
{{- with .Params.cover -}}<p><img class="img-responsive" src="{{- . | safeURL -}}" alt="{{ .Title }}"></p>{{- end -}}
|
||||
<div {{- if $justify -}}style="text-align: justify;" {{- end -}}>
|
||||
{{- .Content -}}
|
||||
</div>
|
||||
{{- partial "article-labels.html" . -}}
|
||||
{{- partial "article-license.html" . -}}
|
||||
{{- partial "article-author.html" . -}}
|
||||
</div>
|
||||
{{- partial "article-bottom-navigation.html" . -}}
|
||||
{{- partial "article-comments.html" . -}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
6
layouts/index.html
Normal file
6
layouts/index.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{- define "main" -}}
|
||||
{{- partial "homepage-body.html" . -}}
|
||||
{{- $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) -}}
|
||||
{{- partial "note-list.html" $paginator -}}
|
||||
{{- partial "pagination.html" $paginator -}}
|
||||
{{- end -}}
|
3
layouts/partials/article-author.html
Normal file
3
layouts/partials/article-author.html
Normal file
@ -0,0 +1,3 @@
|
||||
<!--
|
||||
for user-side override
|
||||
-->
|
11
layouts/partials/article-bottom-navigation.html
Normal file
11
layouts/partials/article-bottom-navigation.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{- if and (not (eq .Params.single true)) (or .PrevInSection .NextInSection) -}}
|
||||
<hr>
|
||||
<section class="article navigation">
|
||||
{{- with .NextInSection -}}
|
||||
<p><a class="link" href="{{- .RelPermalink -}}"><span class="li">←</span>{{- .Title | safeHTML -}}</a></p>
|
||||
{{- end -}}
|
||||
{{- with .PrevInSection -}}
|
||||
<p><a class="link" href="{{- .RelPermalink -}}"><span class="li">→</span>{{- .Title | safeHTML -}}</a></p>
|
||||
{{- end -}}
|
||||
</section>
|
||||
{{- end -}}
|
7
layouts/partials/article-comments.html
Normal file
7
layouts/partials/article-comments.html
Normal file
@ -0,0 +1,7 @@
|
||||
{{- if gt (len site.DisqusShortname) 0 -}}
|
||||
{{- if or (eq .Params.comments true) (and (ne .Params.comments false) (eq site.Params.comments.enable true)) -}}
|
||||
<section class="article discussion">
|
||||
{{- template "_internal/disqus.html" . -}}
|
||||
</section>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
30
layouts/partials/article-header.html
Normal file
30
layouts/partials/article-header.html
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
<!--<p><img src="img/user.png" width="50px" height="50px">
|
||||
<ba>Stanley Stinson</ba>
|
||||
</p>-->
|
||||
{{- $dateFormat := site.Params.dateFormat -}}
|
||||
{{- if not $dateFormat -}}{{- $dateFormat = "2006-01-02" -}}{{- end -}}
|
||||
{{- $lastmodFormat := "" -}}
|
||||
{{- $lastmod := .Lastmod -}}
|
||||
{{- if $lastmod -}}
|
||||
{{- $lastmodFormat = $lastmod.Format $dateFormat -}}
|
||||
{{- end -}}
|
||||
{{- if .Date -}}
|
||||
{{- $dateFormat := .Date.Format $dateFormat -}}
|
||||
<p class="article date">
|
||||
<bd>{{- $dateFormat -}}</bd>
|
||||
{{- if and ($lastmod.After .Date) (ne $lastmodFormat $dateFormat) -}}
|
||||
<span class="lastmod">{{- printf (T "edited") $lastmodFormat -}}</span>
|
||||
{{- end -}}
|
||||
{{- if or (eq .Params.readingTime true) (and (not (eq .Params.readingTime false)) (eq site.Params.readingTime true)) -}}
|
||||
<span class="reading-time">{{ T "readingTime" .ReadingTime }}</span>
|
||||
{{- end -}}
|
||||
{{- if .IsTranslated -}}
|
||||
<span class="langs">
|
||||
{{- range .Translations -}}
|
||||
<span class="lang"><a href="{{- .RelPermalink -}}">{{- .Lang -}}</a></span>
|
||||
{{- end -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
</p>
|
||||
{{- end -}}
|
16
layouts/partials/article-labels.html
Normal file
16
layouts/partials/article-labels.html
Normal file
@ -0,0 +1,16 @@
|
||||
{{- if or .Params.categories .Params.tags -}}
|
||||
<p>
|
||||
<bt>CATÉGORIES :
|
||||
{{- range .Params.categories -}}
|
||||
{{- $url := print "/categories/" (. | urlize) "/" -}}
|
||||
<a class="category" href={{- $url | relLangURL -}}>{{- . -}}</a> -
|
||||
{{- end -}}
|
||||
</bt>
|
||||
<bt>TAGS :
|
||||
{{- range .Params.tags -}}
|
||||
{{- $url := print "/tags/" (. | urlize) "/" -}}
|
||||
<a class="tag" href={{- $url | relLangURL -}}>{{- . -}}</a>
|
||||
{{- end -}}
|
||||
</bt>
|
||||
</p>
|
||||
{{- end -}}
|
12
layouts/partials/article-license.html
Normal file
12
layouts/partials/article-license.html
Normal file
@ -0,0 +1,12 @@
|
||||
{{- $license := "" -}}
|
||||
{{- if and (isset .Params "license") (ne .Params.license "") -}}
|
||||
{{- $license = .Params.license -}}
|
||||
{{- else if and (isset site.Params "license") (ne site.Params.license "") -}}
|
||||
{{- $license = site.Params.license -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if ne $license "" -}}
|
||||
<section class="article license">
|
||||
LICENSE : {{- $license | safeHTML -}}
|
||||
</section>
|
||||
{{- end -}}
|
13
layouts/partials/copyright.html
Normal file
13
layouts/partials/copyright.html
Normal file
@ -0,0 +1,13 @@
|
||||
{{- $copyright := . -}}
|
||||
<div class="footer-wrap">
|
||||
<p class="copyright">{{- $copyright -}}</p>
|
||||
<div class="credits">
|
||||
<!--
|
||||
You are NOT allowed to delete the credit link to TemplateMag with free version.
|
||||
You can delete the credit link only if you bought the pro version.
|
||||
Buy the pro version with working PHP/AJAX contact form: https://templatemag.com/stanley-bootstrap-freelancer-template/
|
||||
Licensing information: https://templatemag.com/license/
|
||||
-->
|
||||
Created with Stanley template by <a href="https://templatemag.com/" rel="nofollow">TemplateMag</a>
|
||||
</div>
|
||||
</div>
|
16
layouts/partials/custom-css.html
Normal file
16
layouts/partials/custom-css.html
Normal file
@ -0,0 +1,16 @@
|
||||
{{- $css := "" -}}
|
||||
{{- range site.Params.assets.css -}}
|
||||
{{- $customCSS := resources.Get . -}}
|
||||
{{- if $customCSS -}}
|
||||
{{- $scss := false -}}
|
||||
{{- $filePath := . | lower -}}
|
||||
{{- if or (strings.HasSuffix $filePath ".scss") (strings.HasSuffix $filePath ".sass") -}}{{- $scss = true -}}{{- end -}}
|
||||
{{- if $scss -}}{{- $customCSS = $customCSS | resources.ToCSS -}}{{- end -}}
|
||||
{{- if eq $css "" -}}
|
||||
{{- $css = $customCSS -}}
|
||||
{{- else -}}
|
||||
{{- $css = slice $css $customCSS | resources.Concat (printf "%s.tmp_custom.css" .) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- return $css -}}
|
19
layouts/partials/custom-js.html
Normal file
19
layouts/partials/custom-js.html
Normal file
@ -0,0 +1,19 @@
|
||||
{{- $js := "" -}}
|
||||
{{- range site.Params.assets.js -}}
|
||||
{{- $customJS := resources.Get . -}}
|
||||
{{- if $customJS -}}
|
||||
{{- if eq $js "" -}}
|
||||
{{- $js = $customJS -}}
|
||||
{{- else -}}
|
||||
{{- $js = slice $js $customJS | resources.Concat (printf "%s.tmp_custom.js" .) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if ne $js "" -}}
|
||||
{{- $coreJS := slice $js ("" | resources.FromString "js/_core.js") | resources.Concat "js/core.js" -}}
|
||||
{{- $coreJS = $coreJS | resources.Minify | resources.Fingerprint "sha384" -}}
|
||||
<script src="{{- $coreJS.RelPermalink -}}" integrity="{{- $coreJS.Data.Integrity -}}"></script>
|
||||
{{- end -}}
|
||||
|
||||
{{- partial "js.html" . -}}
|
40
layouts/partials/footer.html
Normal file
40
layouts/partials/footer.html
Normal file
@ -0,0 +1,40 @@
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-4">
|
||||
<h4>My Bunker</h4>
|
||||
<p>
|
||||
Some Address 987,<br/> +34 9054 5455, <br/> Madrid, Spain.
|
||||
</p>
|
||||
</div>
|
||||
<!-- /col-lg-4 -->
|
||||
|
||||
<div class="col-lg-4">
|
||||
<h4>My Links</h4>
|
||||
<p>
|
||||
<a href="#">Dribbble</a><br/>
|
||||
<a href="#">Twitter</a><br/>
|
||||
<a href="#">Facebook</a>
|
||||
</p>
|
||||
</div>
|
||||
<!-- /col-lg-4 -->
|
||||
|
||||
<div class="col-lg-4">
|
||||
<h4>À propos de pow pow pw</h4>
|
||||
<p>Un résumé à écrire ici</p>
|
||||
</div>
|
||||
<!-- /col-lg-4 -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="copyrights">
|
||||
<div class="container">
|
||||
{{- $copyright := site.Copyright -}}
|
||||
{{- if not $copyright -}}
|
||||
{{- $copyright = site.Title | safeHTML -}}
|
||||
{{- end -}}
|
||||
{{- partial "copyright.html" ($copyright | safeHTML) -}}
|
||||
</div>
|
||||
</div>
|
||||
{{- partial "syntax.html" . -}}
|
3
layouts/partials/head-extra.html
Normal file
3
layouts/partials/head-extra.html
Normal file
@ -0,0 +1,3 @@
|
||||
<!--
|
||||
for user-side override
|
||||
-->
|
22
layouts/partials/head.html
Normal file
22
layouts/partials/head.html
Normal file
@ -0,0 +1,22 @@
|
||||
<meta charset="utf-8">
|
||||
{{- hugo.Generator -}}
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="supported-color-schemes" content="light dark">
|
||||
|
||||
{{- define "title" -}}
|
||||
{{- $title := .Title -}}
|
||||
{{- if and (ne $title "") (ne $title site.Title) -}}
|
||||
<title>{{- $title | safeHTML -}} – {{- site.Title | safeHTML -}}</title>
|
||||
{{- else -}}
|
||||
{{- $slogan := site.Params.slogan -}}
|
||||
<title>{{- site.Title | safeHTML -}}{{- if and (isset site.Params "slogan") (ne $slogan "") -}} –
|
||||
{{- $slogan | safeHTML -}}{{- end -}}</title>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- block "title" . -}}{{- end -}}
|
||||
|
||||
{{- partial "style.html" . -}}
|
||||
{{- partial "rss-feed.html" . -}}
|
||||
{{- partial "head-extra.html" . -}}
|
31
layouts/partials/header.html
Normal file
31
layouts/partials/header.html
Normal file
@ -0,0 +1,31 @@
|
||||
{{- $nav := site.Params.nav -}}
|
||||
{{- if or $nav.showCategories $nav.showTags $nav.custom -}}
|
||||
<div class="navbar navbar-inverse navbar-static-top">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="{{- .Site.BaseURL -}}">{{- .Site.Title -}}</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{{- if $nav.showCategories -}}
|
||||
<li><a class="nav item" href="{{- `/categories/` | relLangURL -}}">{{- T "Categories" -}}</a></li>
|
||||
{{- end -}}
|
||||
{{- if $nav.showTags -}}
|
||||
<li><a class="nav item" href="{{- `/tags/` | relLangURL -}}">{{- T "Tags" -}}</a></li>
|
||||
{{- end -}}
|
||||
{{- range $nav.custom -}}
|
||||
{{- $url := .url | safeURL -}}
|
||||
{{- if strings.HasPrefix $url "/" -}}{{- $url = $url | relLangURL -}}{{- end -}}
|
||||
<li><a class="nav item" href="{{- $url -}}"{{- if strings.HasPrefix $url "http" -}} target="_blank"{{- end -}}>{{- .title -}}</a></li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
5
layouts/partials/homepage-body.html
Normal file
5
layouts/partials/homepage-body.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{- if .Content -}}
|
||||
<article class="article markdown-body">
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{- end -}}
|
8
layouts/partials/note-labels.html
Normal file
8
layouts/partials/note-labels.html
Normal file
@ -0,0 +1,8 @@
|
||||
{{- if or .Params.categories .Params.tags -}}
|
||||
<p class="note labels">
|
||||
{{- range .Params.tags -}}
|
||||
{{- $url := print "/tags/" (. | urlize) "/" -}}
|
||||
<a class="tag" href="{{- $url | relLangURL -}}">{{- . -}}</a>
|
||||
{{- end -}}
|
||||
</p>
|
||||
{{- end -}}
|
40
layouts/partials/note-list.html
Normal file
40
layouts/partials/note-list.html
Normal file
@ -0,0 +1,40 @@
|
||||
{{- $paginator := . -}}
|
||||
|
||||
{{- if gt $paginator.TotalPages 0 -}}
|
||||
{{- $dateFormat := site.Params.dateFormat -}}
|
||||
{{- if not $dateFormat -}}{{- $dateFormat = "2006-01-02" -}}{{- end -}}
|
||||
{{- range $index, $page := $paginator.Pages -}}
|
||||
<div id="{{ if eq (mod $index 2) 0}}grey{{ else }}white{{ end }}">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<!-- <p><img src="img/user.png" width="50px" height="50px">
|
||||
<ba>Stanley Stinson</ba>
|
||||
</p>-->
|
||||
{{- if $page.Date -}}
|
||||
<bd>{{- $page.Date.Format $dateFormat -}}</bd>
|
||||
{{- end -}}
|
||||
<h4>{{- $page.Title | safeHTML -}}</h4>
|
||||
{{- if $page.Summary -}}<p class="note content">{{- $page.Summary | plainify | safeHTML -}}{{- if $page.Truncated -}}<span class="mldr">…{{- T "more" -}}</span>{{- end -}}</p>{{- end -}}
|
||||
{{- $relURL := $page.RelPermalink -}}
|
||||
{{- $imgs := $page.Params.imgs -}}
|
||||
{{- with $page.Params.imgs -}}
|
||||
<span class="note imgs">
|
||||
{{- $imgCount := len $imgs -}}
|
||||
{{- range $imgs -}}
|
||||
{{- $imgurl := lower $page -}}
|
||||
{{- if and (not (hasPrefix $imgurl "http://")) (not (hasPrefix $imgurl "https://")) -}}
|
||||
{{- $imgurl = path.Join $relURL $page -}}
|
||||
{{- end -}}
|
||||
<img class="img" src="{{- $imgurl -}}" alt />
|
||||
{{- end -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
<p><a href="{{- $page.RelPermalink -}}">Continue Reading...</a></p>
|
||||
{{- partial "note-labels.html" $page -}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
34
layouts/partials/pagination.html
Normal file
34
layouts/partials/pagination.html
Normal file
@ -0,0 +1,34 @@
|
||||
{{- $paginator := . -}}
|
||||
|
||||
{{- if gt $paginator.TotalPages 1 -}}
|
||||
|
||||
{{- $pageIndex := $paginator.PageNumber -}}
|
||||
{{- $totalPages := $paginator.TotalPages -}}
|
||||
{{- $cols := 5.0 -}}
|
||||
{{- $rows := math.Ceil (div $totalPages $cols) -}}
|
||||
{{- $row := math.Ceil (div $pageIndex $cols) -}}
|
||||
{{- $startPage := sub (mul $row $cols) $cols -}}
|
||||
{{- $endPage := add $startPage $cols -}}
|
||||
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
{{- if gt $row 1 -}}
|
||||
<li><a href="{{- $paginator.Prev.URL -}}" class="previous_page">«</a></li>
|
||||
{{- end -}}
|
||||
|
||||
{{- range $paginator.Pagers -}}
|
||||
{{- if and (gt .PageNumber $startPage) (le .PageNumber $endPage) -}}
|
||||
{{- $active := "" -}}
|
||||
{{- if eq .PageNumber $paginator.PageNumber -}}
|
||||
{{- $active = "active" -}}
|
||||
{{- end -}}
|
||||
<li><a class="{{- $active -}}" href="{{- .URL -}}">{{- .PageNumber -}}</a></li>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if lt $row $rows -}}
|
||||
<li><a href="{{- $paginator.Next.URL -}}" class="next_page">»</a></li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</div>
|
||||
{{- end -}}
|
3
layouts/partials/rss-feed.html
Normal file
3
layouts/partials/rss-feed.html
Normal file
@ -0,0 +1,3 @@
|
||||
{{- range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||
{{- end -}}
|
5
layouts/partials/section-body.html
Normal file
5
layouts/partials/section-body.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{- if .Content -}}
|
||||
<article class="article markdown-body">
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{- end -}}
|
6
layouts/partials/style.html
Normal file
6
layouts/partials/style.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{- $bootstrapCSS := resources.Get "css/bootstrap.min.css" -}}
|
||||
{{- $styleCSS := resources.Get "css/style.css" -}}
|
||||
{{- $finalCSS := slice $bootstrapCSS $styleCSS | resources.Concat "css/style.min.css" -}}
|
||||
{{- $finalCSS = $finalCSS | resources.Minify | resources.Fingerprint "sha384" -}}
|
||||
|
||||
<link rel="stylesheet" href="{{- $finalCSS.RelPermalink -}}" integrity="{{- $finalCSS.Data.Integrity -}}">
|
21
layouts/partials/syntax.html
Normal file
21
layouts/partials/syntax.html
Normal file
@ -0,0 +1,21 @@
|
||||
{{- with site.Params.syntax -}}
|
||||
{{- $use := "none" -}}
|
||||
{{- if and (isset . "use") (ne .use "") -}}
|
||||
{{- $use = .use | lower -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $syntaxJS := "" -}}
|
||||
{{- if eq $use "hljs" -}}
|
||||
{{- $syntaxJS = "js/hljs.js" -}}
|
||||
{{- else if eq $use "prismjs" -}}
|
||||
{{- $syntaxJS = "js/prism.js" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if ne $syntaxJS "" -}}
|
||||
{{- $js := resources.Get $syntaxJS | resources.Minify | resources.Fingerprint "sha384" -}}
|
||||
<script src="{{- $js.RelPermalink -}}" integrity="{{- $js.Data.Integrity -}}"></script>
|
||||
{{- if eq $use "hljs" -}}
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
3
layouts/robots.txt
Normal file
3
layouts/robots.txt
Normal file
@ -0,0 +1,3 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Sitemap: /sitemap.xml
|
22
layouts/sitemap.xml
Normal file
22
layouts/sitemap.xml
Normal file
@ -0,0 +1,22 @@
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML -}}
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
{{- range .Data.Pages -}}
|
||||
<url>
|
||||
<loc>{{- .Permalink -}}</loc>{{- if not .Lastmod.IsZero -}}
|
||||
<lastmod>{{- safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) -}}</lastmod>{{- end -}}{{- with .Sitemap.ChangeFreq -}}
|
||||
<changefreq>{{- . -}}</changefreq>{{- end -}}{{- if ge .Sitemap.Priority 0.0 -}}
|
||||
<priority>{{- .Sitemap.Priority -}}</priority>{{- end -}}{{- if .IsTranslated -}}{{- range .Translations -}}
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="{{- .Lang -}}"
|
||||
href="{{- .Permalink -}}"
|
||||
/>{{- end -}}
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="{{- .Lang -}}"
|
||||
href="{{- .Permalink -}}"
|
||||
/>{{- end -}}
|
||||
</url>
|
||||
{{- end -}}
|
||||
</urlset>
|
21
theme.toml
Normal file
21
theme.toml
Normal file
@ -0,0 +1,21 @@
|
||||
# theme.toml template for a Hugo theme
|
||||
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
|
||||
|
||||
name = "Stanley"
|
||||
license = "MIT"
|
||||
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
|
||||
description = ""
|
||||
homepage = "http://example.com/"
|
||||
tags = []
|
||||
features = []
|
||||
min_version = "0.41"
|
||||
|
||||
[author]
|
||||
name = ""
|
||||
homepage = ""
|
||||
|
||||
# If porting an existing theme
|
||||
[original]
|
||||
name = ""
|
||||
homepage = ""
|
||||
repo = ""
|
Loading…
Reference in New Issue
Block a user