Browse Source

Merge remote-tracking branch 'origin/developer'

master
tarteka 2 years ago
parent
commit
373c9902cc
60 changed files with 14 additions and 3562 deletions
  1. +3
    -0
      .gitmodules
  2. +8
    -7
      config.toml
  3. +0
    -0
      content/posts/_index.md
  4. +0
    -0
      content/posts/automatizar-blog-jekyll.md
  5. +0
    -0
      content/posts/calendario-con-arte-2019.md
  6. +0
    -0
      content/posts/convertir-mp3-a-OGG-en-lote.md
  7. +0
    -0
      content/posts/instalar-gitea.md
  8. +0
    -0
      content/posts/instalar-pleroma.md
  9. +1
    -1
      resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.content
  10. +1
    -1
      resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.json
  11. +1
    -0
      themes/hermit
  12. +0
    -2
      themes/hermit/.gitattributes
  13. +0
    -20
      themes/hermit/LICENSE
  14. +0
    -76
      themes/hermit/README.md
  15. +0
    -7
      themes/hermit/archetypes/default.md
  16. +0
    -9
      themes/hermit/archetypes/posts.md
  17. +0
    -78
      themes/hermit/assets/js/main.js
  18. +0
    -11
      themes/hermit/assets/scss/_animate.scss
  19. +0
    -341
      themes/hermit/assets/scss/_normalize.scss
  20. +0
    -32
      themes/hermit/assets/scss/_predefined.scss
  21. +0
    -59
      themes/hermit/assets/scss/_syntax.scss
  22. +0
    -677
      themes/hermit/assets/scss/style.scss
  23. +0
    -62
      themes/hermit/exampleSite/config.toml
  24. +0
    -17
      themes/hermit/exampleSite/content/about-hugo.md
  25. +0
    -1142
      themes/hermit/exampleSite/content/posts/creating-a-new-theme.md
  26. +0
    -338
      themes/hermit/exampleSite/content/posts/goisforlovers.md
  27. +0
    -83
      themes/hermit/exampleSite/content/posts/hugoisforlovers.md
  28. +0
    -150
      themes/hermit/exampleSite/content/posts/migrate-from-jekyll.md
  29. +0
    -17
      themes/hermit/exampleSite/content/posts/post-with-featured-image.md
  30. +0
    -69
      themes/hermit/exampleSite/content/posts/typography.md
  31. BIN
      themes/hermit/images/hermit.png
  32. BIN
      themes/hermit/images/screenshot.png
  33. BIN
      themes/hermit/images/tn.png
  34. +0
    -19
      themes/hermit/layouts/404.html
  35. +0
    -36
      themes/hermit/layouts/_default/baseof.html
  36. +0
    -34
      themes/hermit/layouts/_default/list.html
  37. +0
    -20
      themes/hermit/layouts/_default/single.html
  38. +0
    -30
      themes/hermit/layouts/index.html
  39. +0
    -16
      themes/hermit/layouts/partials/disqus.html
  40. +0
    -4
      themes/hermit/layouts/partials/footer.html
  41. +0
    -34
      themes/hermit/layouts/partials/header.html
  42. +0
    -3
      themes/hermit/layouts/partials/social-icons.html
  43. +0
    -23
      themes/hermit/layouts/partials/svg.html
  44. +0
    -27
      themes/hermit/layouts/posts/rss.xml
  45. +0
    -56
      themes/hermit/layouts/posts/single.html
  46. +0
    -7
      themes/hermit/resources/_gen/assets/js/js/main.js_d11fe7b62c27961c87ecd0f2490357b9.content
  47. +0
    -1
      themes/hermit/resources/_gen/assets/js/js/main.js_d11fe7b62c27961c87ecd0f2490357b9.json
  48. +0
    -5
      themes/hermit/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.content
  49. +0
    -1
      themes/hermit/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.json
  50. BIN
      themes/hermit/static/android-chrome-192x192.png
  51. BIN
      themes/hermit/static/android-chrome-384x384.png
  52. BIN
      themes/hermit/static/apple-touch-icon.png
  53. +0
    -9
      themes/hermit/static/browserconfig.xml
  54. BIN
      themes/hermit/static/favicon-16x16.png
  55. BIN
      themes/hermit/static/favicon-32x32.png
  56. BIN
      themes/hermit/static/favicon.ico
  57. BIN
      themes/hermit/static/mstile-150x150.png
  58. +0
    -1
      themes/hermit/static/safari-pinned-tab.svg
  59. +0
    -19
      themes/hermit/static/site.webmanifest
  60. +0
    -18
      themes/hermit/theme.toml

+ 3
- 0
.gitmodules View File

@ -0,0 +1,3 @@
[submodule "themes/hermit"]
path = themes/hermit
url = https://github.com/Track3/hermit.git

+ 8
- 7
config.toml View File

@ -1,5 +1,6 @@
baseURL = "https://libretux.com"
languageCode = "es"
defaultContentLanguage = "en"
title = "LibreTUX"
theme = "hermit"
# enableGitInfo = true
@ -37,19 +38,19 @@ enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/func
# Social Icons
# Check https://github.com/Track3/hermit#social-icons for more info.
#[[params.social]]
# name = "twitter"
# url = "https://twitter.com/tarteka/"
[[params.social]]
name = "twitter"
url = "https://twitter.com/tarteka/"
#[[params.social]]
# name = "email"
# url = "mailto:info@tarteka.net"
[[params.social]]
name = "email"
url = "mailto:info@tarteka.net"
[menu]
[[menu.main]]
name = "Blog"
url = "/blog/"
url = "/posts/"
weight = 10
[[menu.main]]

content/blog/_index.md → content/posts/_index.md View File


content/blog/automatizar-blog-jekyll.md → content/posts/automatizar-blog-jekyll.md View File


content/blog/calendario-con-arte-2019.md → content/posts/calendario-con-arte-2019.md View File


content/blog/convertir-mp3-a-OGG-en-lote.md → content/posts/convertir-mp3-a-OGG-en-lote.md View File


content/blog/instalar-gitea.md → content/posts/instalar-gitea.md View File


content/blog/instalar-pleroma.md → content/posts/instalar-pleroma.md View File


+ 1
- 1
resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.content
File diff suppressed because it is too large
View File


+ 1
- 1
resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.json View File

@ -1 +1 @@
{"Target":"css/style.min.d308fddc5ce6921c5db96b2daeebc95a88c8ea8b62be4d1a6a6807e7a6094477.css","MediaType":"text/css","Data":{"Integrity":"sha256-0wj93FzmkhxduWstruvJWojI6otivk0aamgH56YJRHc="}}
{"Target":"css/style.min.c29b198609bf41ce0a9aa05e1bd7bc47ba774c54cf3b893936ffd7e890a12ac6.css","MediaType":"text/css","Data":{"Integrity":"sha256-wpsZhgm/Qc4KmqBeG9e8R7p3TFTPO4k5Nv/X6JChKsY="}}

+ 1
- 0
themes/hermit

@ -0,0 +1 @@
Subproject commit 67f9b4167ae402c69c3001117f38df2556d801f0

+ 0
- 2
themes/hermit/.gitattributes View File

@ -1,2 +0,0 @@
* text eol=lf
*.png binary

+ 0
- 20
themes/hermit/LICENSE View File

@ -1,20 +0,0 @@
The MIT License (MIT)
Copyright (c) 2018 Track3
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.

+ 0
- 76
themes/hermit/README.md View File

@ -1,76 +0,0 @@
# Hugo theme Hermit
Hermit is a minimal and fast theme for Hugo. It's built for bloggers who want a simple and focused website.
![](https://github.com/Track3/hermit/raw/master/images/screenshot.png)
## Features
* A single-column layout and carefully crafted typography offers a great reading experience.
* Navigations and functions are placed in the bottom bar which will hide when you scroll down.
* Featured image is supported. It will be displayed as a dimmed background of the page.
* Displays all of your posts on a single page, with one section per year, simple and compact.
* Extremely lightweight and load fast. No third party framework, no unnecessary code.
* Responsive & Retina Ready. Scales gracefully from a big screen all the way down to the smallest mobile phone. Assets in vector format ensures that it looks sharp on high-resolution screens.
![](https://github.com/Track3/hermit/raw/master/images/hermit.png)
## Getting started
### Installation
Run this command from the root of your Hugo directory (Git needs to be installed):
```bash
$ git clone https://github.com/Track3/hermit.git themes/hermit
```
Alternatively, if you are not familiar with git, you can download the theme as a `.zip` file, unzip the theme contents, and then move the unzipped source into your `themes` directory.
For more information, read the official [documentation](https://gohugo.io/themes/installing-and-using-themes/) of Hugo.
### Configuration
The example config file can be found in the theme's `exampleSite` folder. You can just copy the `config.toml` to the root directory of your Hugo site. There are instructions in the example config file, feel free to change strings as you like to customize your website.
#### Favicon
Use [RealFaviconGenerator](https://realfavicongenerator.net/) to generate these files, put them into your site's `static` folder:
* android-chrome-192x192.png
* android-chrome-512x512.png
* apple-touch-icon.png
* favicon-16x16.png
* favicon-32x32.png
* favicon.ico
* mstile-150x150.png
* safari-pinned-tab.svg
* site.webmanifest
#### Social icons
The following icons are supported, please make sure the `name` filed is exactly one of these:
* codepen
* facebook
* github
* gitlab
* instagram
* linkedin
* slack
* twitter
* youtube
* email
### Manage content
* Keep your regular pages in the `content` folder. To create a new page, run `hugo new page-title.md`
* Keep your blog posts in the `content/posts` folder. To create a new post, run `hugo new posts/post-title.md`
## Acknowledgments
* [normalize.css](https://necolas.github.io/normalize.css/) - [MIT](https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
* [animate.css](https://daneden.github.io/animate.css/) - [MIT](https://github.com/daneden/animate.css/blob/master/LICENSE)
* [feather](https://feathericons.com/) - [MIT](https://github.com/feathericons/feather/blob/master/LICENSE)
Thanks!

+ 0
- 7
themes/hermit/archetypes/default.md View File

@ -1,7 +0,0 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
comments: false
---

+ 0
- 9
themes/hermit/archetypes/posts.md View File

@ -1,9 +0,0 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
featuredImg: ""
tags:
- tag
---

+ 0
- 78
themes/hermit/assets/js/main.js View File

@ -1,78 +0,0 @@
/**
* Utils
*/
// Throttle
//
const throttle = (callback, limit) => {
let timeoutHandler = null;
return () => {
if (timeoutHandler == null) {
timeoutHandler = setTimeout(() => {
callback();
timeoutHandler = null;
}, limit);
}
};
};
/**
* Functions
*/
// Auto Hide Header
//
let lastScrollPosition = window.pageYOffset;
let header = document.getElementById('site-header');
const autoHideHeader = () => {
let currentScrollPosition = window.pageYOffset;
if (currentScrollPosition > lastScrollPosition) {
header.classList.remove('slideInUp');
header.classList.add('slideOutDown');
} else {
header.classList.remove('slideOutDown');
header.classList.add('slideInUp');
}
lastScrollPosition = currentScrollPosition;
}
// Mobile Menu Toggle
//
let mobileMenu = document.getElementById('mobile-menu');
let mobileMenuVisible = false;
const mobileMenuToggle = () => {
if (mobileMenuVisible == false) {
mobileMenu.style.animationName = 'bounceInRight';
mobileMenu.style.webkitAnimationName = 'bounceInRight';
mobileMenu.style.display = 'block';
mobileMenuVisible = true;
} else {
mobileMenu.style.animationName = 'bounceOutRight';
mobileMenu.style.webkitAnimationName = 'bounceOutRight'
mobileMenuVisible = false;
}
}
// Show Featured Image
//
const showFeaturedImg = () => {
document.getElementById('bg-img').classList.add('show-bg-img');
}
const showContent = () => {
document.getElementById('bg-img').classList.remove('show-bg-img');
}
if (haveHeader == true) {
document.getElementById('menu-btn').addEventListener('click', mobileMenuToggle);
window.addEventListener('scroll', throttle(() => {
autoHideHeader();
if (mobileMenuVisible == true) {
mobileMenuToggle();
}
}, 250));
}

+ 0
- 11
themes/hermit/assets/scss/_animate.scss
File diff suppressed because it is too large
View File


+ 0
- 341
themes/hermit/assets/scss/_normalize.scss View File

@ -1,341 +0,0 @@
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}

+ 0
- 32
themes/hermit/assets/scss/_predefined.scss View File

@ -1,32 +0,0 @@
// Colors
//
$theme: #018574;
$text: #c6cddb;
$light-grey: #494f5c;
$dark-grey: #3B3E48;
$highlight-grey: #7d828a;
$midnightblue: #2c3e50;
// Fonts
//
$fonts: "Trebuchet MS", Verdana, "Verdana Ref", "Segoe UI", Candara, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
$code-fonts: Consolas, "Andale Mono WT", "Andale Mono", Menlo, Monaco, "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, "YaHei Consolas Hybrid", monospace, "Segoe UI Emoji", "PingFang SC", "Microsoft YaHei";
// Mixins
//
@mixin dimmed {
opacity: .6;
}
@mixin aTag {
a {
word-break: break-all;
border: none;
box-shadow: inset 0 -4px 0 $theme;
transition-property: background-color;
&:hover {
background-color: $theme;
}
}
}

+ 0
- 59
themes/hermit/assets/scss/_syntax.scss View File

@ -1,59 +0,0 @@
/* Background */ .chroma { color: #eee; background-color: $midnightblue }
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* Keyword */ .chroma .k { color: #66d9ef }
/* KeywordConstant */ .chroma .kc { color: #66d9ef }
/* KeywordDeclaration */ .chroma .kd { color: #66d9ef }
/* KeywordNamespace */ .chroma .kn { color: #f92672 }
/* KeywordPseudo */ .chroma .kp { color: #66d9ef }
/* KeywordReserved */ .chroma .kr { color: #66d9ef }
/* KeywordType */ .chroma .kt { color: #66d9ef }
/* NameAttribute */ .chroma .na { color: #a6e22e }
/* NameClass */ .chroma .nc { color: #a6e22e }
/* NameConstant */ .chroma .no { color: #66d9ef }
/* NameDecorator */ .chroma .nd { color: #a6e22e }
/* NameException */ .chroma .ne { color: #a6e22e }
/* NameFunction */ .chroma .nf { color: #a6e22e }
/* NameOther */ .chroma .nx { color: #a6e22e }
/* NameTag */ .chroma .nt { color: #f92672 }
/* Literal */ .chroma .l { color: #ae81ff }
/* LiteralDate */ .chroma .ld { color: #e6db74 }
/* LiteralString */ .chroma .s { color: #e6db74 }
/* LiteralStringAffix */ .chroma .sa { color: #e6db74 }
/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 }
/* LiteralStringChar */ .chroma .sc { color: #e6db74 }
/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 }
/* LiteralStringDoc */ .chroma .sd { color: #e6db74 }
/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 }
/* LiteralStringEscape */ .chroma .se { color: #ae81ff }
/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 }
/* LiteralStringInterpol */ .chroma .si { color: #e6db74 }
/* LiteralStringOther */ .chroma .sx { color: #e6db74 }
/* LiteralStringRegex */ .chroma .sr { color: #e6db74 }
/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 }
/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 }
/* LiteralNumber */ .chroma .m { color: #ae81ff }
/* LiteralNumberBin */ .chroma .mb { color: #ae81ff }
/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff }
/* LiteralNumberHex */ .chroma .mh { color: #ae81ff }
/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff }
/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff }
/* LiteralNumberOct */ .chroma .mo { color: #ae81ff }
/* Operator */ .chroma .o { color: #f92672 }
/* OperatorWord */ .chroma .ow { color: #f92672 }
/* Comment */ .chroma .c { color: #75715e }
/* CommentHashbang */ .chroma .ch { color: #75715e }
/* CommentMultiline */ .chroma .cm { color: #75715e }
/* CommentSingle */ .chroma .c1 { color: #75715e }
/* CommentSpecial */ .chroma .cs { color: #75715e }
/* CommentPreproc */ .chroma .cp { color: #75715e }
/* CommentPreprocFile */ .chroma .cpf { color: #75715e }
/* GenericDeleted */ .chroma .gd { color: #f92672 }
/* GenericEmph */ .chroma .ge { font-style: italic }
/* GenericInserted */ .chroma .gi { color: #a6e22e }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: #75715e }

+ 0
- 677
themes/hermit/assets/scss/style.scss View File

@ -1,677 +0,0 @@
@import "predefined.scss";
@import "normalize.scss";
@import "syntax.scss";
@import "animate.scss";
/* Webkit Scrollbar Customize */
::-webkit-scrollbar {
width: 8px;
height: 8px;
background: $midnightblue;
}
::-webkit-scrollbar-thumb {
background: #888;
&:hover {
background: $text;
}
}
html {
background: $light-grey;
line-height: 1.6;
letter-spacing: .06em;
}
body,
button,
input,
select,
textarea {
color: $text;
font-family: $fonts;
}
pre,
code,
pre tt {
font-family: $code-fonts;
}
pre {
max-height: 40em;
padding: .7em 1.1em;
overflow: auto;
font-size: .9em;
line-height: 1.5;
letter-spacing: normal;
white-space: pre-wrap;
word-wrap: break-word;
color: #eee;
background: $midnightblue;
border-radius: 4px;
// -webkit-overflow-scrolling: touch;
code {
padding: 0;
margin: 0;
background: $midnightblue;
}
}
code {
color: #eee;
background: $highlight-grey;
border-radius: 3px;
padding: 0 3px;
margin: 0 4px;
word-break: break-all;
letter-spacing: normal;
}
blockquote {
border-left: .25em solid;
margin: 1em;
padding: 0 1em;
font-style: italic;
cite {
font-weight: bold;
font-style: normal;
&::before {
content: "—— ";
}
}
}
a {
color: $text;
text-decoration: none;
border: none;
transition-property: color;
transition-duration: .4s;
transition-timing-function: ease-out;
&:hover {
color: #fff;
}
}
hr {
opacity: .2;
border-width: 0 0 5px 0;
border-style: dashed;
background: transparent;
width: 80%;
margin: auto;
}
table {
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
width: 100%;
max-width: 100%;
th,
td {
padding: 1.5%;
border: 1px solid;
}
th {
font-weight: 700;
vertical-align: bottom;
}
}
.section-inner {
margin: 0 auto;
max-width: 1200px;
width: 93%;
}
.thin {
max-width: 720px;
margin: auto;
}
.feather {
display: inline-block;
vertical-align: -.125em;
width: 1em;
height: 1em;
}
// Accessibility
//
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute !important;
width: 1px;
word-wrap: normal !important;
}
.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
clip-path: none;
color: #21759b;
display: block;
font-size: 14px;
font-size: 0.875rem;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000;
}
// Header & Footer
//
#site-header {
position: fixed;
z-index: 1;
bottom: 0;
width: 100%;
box-sizing: border-box;
box-shadow: -1px -2px 3px rgba(0, 0, 0, 0.45);
background-color: $dark-grey;
}
.hdr-wrapper {
display: flex;
justify-content: space-between;
padding: .5em 0;
font-size: 1.2rem;
.site-branding {
display: inline-block;
margin-right: .8em;
font-size: 1.2em;
}
.site-nav {
display: inline-block;
font-size: 1.1em;
opacity: .8;
a {
margin-left: .8em;
}
}
}
.hdr-icons {
display: inline-block;
font-size: 1.2em;
a {
margin-left: .4em;
}
}
.hdr-btn {
border: none;
background: none;
padding: 0;
cursor: pointer;
}
#menu-btn,
#search-btn {
display: none;
cursor: pointer;
}
#mobile-menu {
position: fixed;
bottom: 4.8em;
right: 1.5em;
padding: .6em 1.8em;
z-index: 1;
box-sizing: border-box;
box-shadow: -1px -2px 3px 0px rgba(0, 0, 0, 0.45);
background-color: $dark-grey;
ul {
list-style: none;
margin: 0;
padding: 0;
line-height: 2;
font-size: 1.2em;
}
}
#site-footer {
text-align: center;
font-size: .9em;
margin-bottom: 96px;
margin-top: 64px;
p {
margin: 0;
}
}
// Spotlight
//
#spotlight {
display: flex;
height: 100vh;
flex-direction: column;
align-items: center;
justify-content: center;
max-width: 93%;
margin: auto;
font-size: 1.5rem;
&.error-404 {
flex-direction: row;
line-height: normal;
}
}
p.img-404 {
margin: 0;
svg {
width: 180px;
max-width: 100%;
height: auto;
}
}
.banner-404 {
margin-left: 2em;
h1 {
font-size: 3em;
margin: .5rem 0;
}
p {
margin-top: 0;
margin-bottom: .6em;
}
.btn-404 {
font-size: .8em;
a {
display: inline-block;
border: 2px solid $text;
border-radius: 5px;
padding: 5px;
transition-property: color, border-color;
word-break: break-all;
&:first-child {
margin-right: 1em;
}
&:hover {
border-color: #fff;
}
svg {
margin-right: .5em;
}
}
}
}
#home-center {
display: flex;
flex-grow: 1;
flex-direction: column;
justify-content: center;
}
#home-title {
margin: 0;
text-align: center;
}
#home-subtitle {
margin-top: 0;
margin-bottom: 1.5em;
text-align: center;
line-height: normal;
font-size: .7em;
font-style: italic;
opacity: .9;
}
#home-social {
font-size: 1.4em;
text-align: center;
opacity: .8;
a {
margin: 0 .2em;
}
}
#home-nav {
opacity: .8;
border-top: 2px solid $theme;
a {
display: block;
text-align: center;
margin-top: .5em;
}
}
#home-footer {
text-align: center;
font-size: .6em;
line-height: normal;
@include dimmed;
p {
margin-top: 0;
}
}
// list.html
//
.posts-group {
display: flex;
margin-bottom: 1.9em;
line-height: normal;
.post-year {
padding-top: 6px;
margin-right: 1.8em;
font-size: 1.6em;
@include dimmed;
}
.posts-list {
flex-grow: 1;
margin: 0;
padding: 0;
list-style: none;
}
.post-item {
border-bottom: 1px $highlight-grey dashed;
a {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 12px 0;
}
}
.post-day {
flex-shrink: 0;
margin-left: 1em;
@include dimmed;
}
}
// single.html
//
.bg-img {
width: 100%;
height: 100%;
opacity: .03;
z-index: -1;
position: fixed;
top: 0;
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
transition: opacity .5s;
}
.show-bg-img {
z-index: 100;
opacity: 1;
}
#show-img-btn {
margin-right: .3em;
}
.post-header {
margin-top: 1.2em;
line-height: normal;
.post-meta {
font-size: .9em;
letter-spacing: normal;
@include dimmed;
}
h1 {
margin-top: .1em;
}
}
hr.post-end {
width: 50%;
margin-top: 1.6em;
margin-bottom: .8em;
margin-left: 0;
border-style: solid;
border-bottom-width: 4px;
}
.content {
{{- with .Site.Params.justifyContent }}
text-align: justify;
text-justify: inter-ideograph; //For IE/Edge
{{- end }}
@include aTag;
figure {
max-width: 100;
height: auto;
margin: 0;
text-align: center;
p {
margin-top: 0;
}
}
img {
display: block;
max-width: 100%;
height: auto;
margin: auto;
border-radius: 4px;
}
ul,
ol {
padding: 0;
margin-left: 1.8em;
}
}
figure.left {
float: left;
margin-right: 1em;
}
figure.right {
float: right;
margin-left: 1em;
}
.footnote-ref a,
a.footnote-return {
box-shadow: none;
text-decoration: underline;
&:hover {
background: transparent;
}
}
.post-info {
font-size: .8rem;
line-height: normal;
@include dimmed;
p {
margin: .8em 0;
}
a {
text-decoration: underline;
}
svg {
margin-right: .8em;
}
.tag {
margin-right: .5em;
&::before {
content: "#"
}
}
}
.post-nav {
display: flex;
justify-content: space-between;
margin-top: 1.5em;
font-size: 1.2em;
a {
flex-basis: 50%;
flex-grow: 1;
}
.next-post {text-align: left; padding-right: 5px;}
.prev-post {text-align: right; padding-left: 5px;}
.post-nav-label {
font-size: .8em;
opacity: .8;
text-transform: uppercase;
}
}
.site-main {
h1 {
border-bottom: 5px solid $theme;
}
}
@media (min-width: 800px) {
.site-main {
margin-top: 3em;
}
hr.post-end {
width: 40%;
}
}
@media (min-width: 960px) {
.site-main {
margin-top: 6em;
}
}
@media (min-width: 1300px) {
.site-main {
margin-top: 8em;
}
hr.post-end {
width: 30%;
}
}
@media (min-width: 1800px) {
.site-main {
margin-top: 10em;
}
.section-inner {
max-width: 1600px;
}
.thin {
max-width: 960px;
}
hr.post-end {
width: 30%;
}
}
@media (max-width: 760px) {
.hide-in-mobile,
.site-nav.hide-in-mobile {
display: none;
}
#menu-btn,
#search-btn {
display: inline-block;
}
.posts-group {
display: block;
.post-year {
margin: -6px 0 4px;
}
}
#spotlight.error-404 {
flex-direction: column;
text-align: center;
.banner-404 {
margin: 0;
}
}
}
@media (max-width: 520px) {
figure.left,
figure.right {
float: unset;
margin: 0;
}
hr.post-end {
width: 60%;
}
#mobile-menu {
right: 1.2em;
}
}

+ 0
- 62
themes/hermit/exampleSite/config.toml View File

@ -1,62 +0,0 @@
baseURL = "https://example.com"
languageCode = "en-us"
title = "Hugo Hermit"
theme = "hermit"
# enableGitInfo = true
pygmentsCodefences = true
pygmentsUseClasses = true
hasCJKLanguage = true # If there're Chinese/Japanese/Korean Languages in the content, enable this.
rssLimit = 10 # Maximum number of items in the RSS feed.
copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License." # This message is only used by the RSS template.
enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/functions/emojify/
# googleAnalytics = "UA-123-45"
# disqusShortname = "yourdiscussshortname"
[author]
name = "John Doe"
[blackfriday]
hrefTargetBlank = true
[taxonomies]
tag = "tags"
category = "" # Categories are disabled by default.
[params]
dateform = "Jan 2, 2006"
dateformShort = "Jan 2"
dateformNum = "2006-01-02"
dateformNumTime = "2006-01-02 15:04 -0700"
# themeColor = "#494f5c" # Theme color in meta tags.
homeSubtitle = "A minimal and fast theme for Hugo."
footerCopyright = ' &#183; <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
# gitUrl = "https://github.com/Someone/SomeRepo/commit/" # Prefix of link to the git commit detail page. GitInfo must be enabled.
justifyContent = false # Set "text-align: justify" to .content, requires extended version of Hugo
# bgImg = "" # Homepage background-image URL
# Social Icons
# Check https://github.com/Track3/hermit#social-icons for more info.
[[params.social]]
name = "twitter"
url = "https://twitter.com/"
[[params.social]]
name = "instagram"
url = "https://instagram.com/"
[[params.social]]
name = "github"
url = "https://github.com/"
[menu]
[[menu.main]]
name = "Posts"
url = "/posts/"
weight = 10
[[menu.main]]
name = "About"
url = "/about-hugo/"
weight = 20

+ 0
- 17
themes/hermit/exampleSite/content/about-hugo.md View File

@ -1,17 +0,0 @@
+++
title = "About Hugo"
date = "2014-04-09"
+++
Hugo is the **world’s fastest framework for building websites**. It is written in Go.
It 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
Learn more and contribute on [GitHub](https://github.com/gohugoio).

+ 0
- 1142
themes/hermit/exampleSite/content/posts/creating-a-new-theme.md
File diff suppressed because it is too large
View File


+ 0
- 338
themes/hermit/exampleSite/content/posts/goisforlovers.md View File

@ -1,338 +0,0 @@
+++
title = "(Hu)go Template Primer"
tags = [
"go",
"golang",
"templates",
"themes",
"development",
]
date = "2014-04-02"
+++
Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for
its template engine. It is an extremely lightweight engine that provides a very
small amount of logic. In our experience that it is just the right amount of
logic to be able to create a good static website. If you have used other
template systems from different languages or frameworks you will find a lot of
similarities in Go templates.
This document is a brief primer on using Go templates. The [Go docs][gohtmltemplate]
provide more details.
## Introduction to Go Templates
Go templates provide an extremely simple template language. It adheres to the
belief that only the most basic of logic belongs in the template or view layer.
One consequence of this simplicity is that Go templates parse very quickly.
A unique characteristic of Go templates is they are content aware. Variables and
content will be sanitized depending on the context of where they are used. More
details can be found in the [Go docs][gohtmltemplate].
## Basic Syntax
Golang templates are HTML files with the addition of variables and
functions.
**Go variables and functions are accessible within {{ }}**
Accessing a predefined variable "foo":
{{ foo }}
**Parameters are separated using spaces**
Calling the add function with input of 1, 2:
{{ add 1 2 }}
**Methods and fields are accessed via dot notation**
Accessing the Page Parameter "bar"
{{ .Params.bar }}
**Parentheses can be used to group items together**
{{ if or (isset .Params "alt") (isset .Params "caption") }} Caption {{ end }}
## Variables
Each Go template has a struct (object) made available to it. In hugo each
template is passed either a page or a node struct depending on which type of
page you are rendering. More details are available on the
[variables](/layout/variables) page.
A variable is accessed by referencing the variable name.
<title>{{ .Title }}</title>
Variables can also be defined and referenced.
{{ $address := "123 Main St."}}
{{ $address }}
## Functions
Go template ship with a few functions which provide basic functionality. The Go
template system also provides a mechanism for applications to extend the
available functions with their own. [Hugo template
functions](/layout/functions) provide some additional functionality we believe
are useful for building websites. Functions are called by using their name
followed by the required parameters separated by spaces. Template
functions cannot be added without recompiling hugo.
**Example:**
{{ add 1 2 }}
## Includes
When including another template you will pass to it the data it will be
able to access. To pass along the current context please remember to
include a trailing dot. The templates location will always be starting at
the /layout/ directory within Hugo.
**Example:**
{{ template "chrome/header.html" . }}
## Logic
Go templates provide the most basic iteration and conditional logic.
### Iteration
Just like in Go, the Go templates make heavy use of range to iterate over
a map, array or slice. The following are different examples of how to use
range.
**Example 1: Using Context**
{{ range array }}
{{ . }}
{{ end }}
**Example 2: Declaring value variable name**
{{range $element := array}}
{{ $element }}
{{ end }}
**Example 2: Declaring key and value variable name**
{{range $index, $element := array}}
{{ $index }}
{{ $element }}
{{ end }}
### Conditionals
If, else, with, or, & and provide the framework for handling conditional
logic in Go Templates. Like range, each statement is closed with `end`.
Go Templates treat the following values as false:
* false
* 0
* any array, slice, map, or string of length zero
**Example 1: If**
{{ if isset .Params "title" }}<h4>{{ index .Params "title" }}</h4>{{ end }}
**Example 2: If -> Else**
{{ if isset .Params "alt" }}
{{ index .Params "alt" }}
{{else}}
{{ index .Params "caption" }}
{{ end }}
**Example 3: And & Or**
{{ if and (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
**Example 4: With**
An alternative way of writing "if" and then referencing the same value
is to use "with" instead. With rebinds the context `.` within its scope,
and skips the block if the variable is absent.
The first example above could be simplified as:
{{ with .Params.title }}<h4>{{ . }}</h4>{{ end }}
**Example 5: If -> Else If**
{{ if isset .Params "alt" }}
{{ index .Params "alt" }}
{{ else if isset .Params "caption" }}
{{ index .Params "caption" }}
{{ end }}
## Pipes
One of the most powerful components of Go templates is the ability to
stack actions one after another. This is done by using pipes. Borrowed
from unix pipes, the concept is simple, each pipeline's output becomes the
input of the following pipe.
Because of the very simple syntax of Go templates, the pipe is essential
to being able to chain together function calls. One limitation of the
pipes is that they only can work with a single value and that value
becomes the last parameter of the next pipeline.
A few simple examples should help convey how to use the pipe.
**Example 1 :**
{{ if eq 1 1 }} Same {{ end }}
is the same as
{{ eq 1 1 | if }} Same {{ end }}
It does look odd to place the if at the end, but it does provide a good
illustration of how to use the pipes.
**Example 2 :**
{{ index .Params "disqus_url" | html }}
Access the page parameter called "disqus_url" and escape the HTML.
**Example 3 :**
{{ if or (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
Stuff Here
{{ end }}
Could be rewritten as
{{ isset .Params "caption" | or isset .Params "title" | or isset .Params "attr" | if }}
Stuff Here
{{ end }}
## Context (aka. the dot)
The most easily overlooked concept to understand about Go templates is that {{ . }}
always refers to the current context. In the top level of your template this
will be the data set made available to it. Inside of a iteration it will have
the value of the current item. When inside of a loop the context has changed. .
will no longer refer to the data available to the entire page. If you need to
access this from within the loop you will likely want to set it to a variable
instead of depending on the context.
**Example:**
{{ $title := .Site.Title }}
{{ range .Params.tags }}
<li> <a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a> - {{ $title }} </li>
{{ end }}
Notice how once we have entered the loop the value of {{ . }} has changed. We
have defined a variable outside of the loop so we have access to it from within
the loop.
# Hugo Parameters
Hugo provides the option of passing values to the template language
through the site configuration (for sitewide values), or through the meta
data of each specific piece of content. You can define any values of any
type (supported by your front matter/config format) and use them however
you want to inside of your templates.
## Using Content (page) Parameters
In each piece of content you can provide variables to be used by the
templates. This happens in the [front matter](/content/front-matter).
An example of this is used in this documentation site. Most of the pages
benefit from having the table of contents provided. Sometimes the TOC just