Updated to match new look

only too 9 months lol
Signed-off-by: Sophia Atkinson <sophialul@protonmail.com>
This commit is contained in:
Sophia Atkinson 2023-08-15 23:39:54 -07:00
parent e4bc844b67
commit 1edf6d912b
104 changed files with 1173 additions and 7411 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@ hugo.linux
# Temporary lock file while building
/.hugo_build.lock
themes/hugo-coder/resources/_gen/

3
.gitmodules vendored
View File

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

View File

@ -42,7 +42,7 @@ customSCSS = []
# Custom JS
customJS = []
touchIcon = "/images/apple-touch-icon.png"
snow = ["js/winter.js"]
hidesnow = "true"
ogimage = ""
mastodon = "https://fedi.example.com"

View File

@ -1 +0,0 @@
custom: https://www.buymeacoffee.com/luizdepra

View File

@ -1,33 +0,0 @@
### Prerequisites
Put an `x` into the box(es) that apply:
- [ ] This pull request fixes a bug.
- [ ] This pull request adds a feature.
- [ ] This pull request introduces breaking change.
### Description
Describe what this pull request achieves.
### Issues Resolved
List any existing issues this pull request resolves.
### Checklist
Put an `x` into the box(es) that apply:
#### General
- [ ] Describe what changes are being made
- [ ] Explain why and how the changes were necessary and implemented respectively
- [ ] Reference issue with `#<ISSUE_NO>` if applicable
#### Resources
- [ ] If you have changed any SCSS code, run `make release` to regenerate all CSS files
#### Contributors
- [ ] Add yourself to `CONTRIBUTORS.md` if you aren't on it already

View File

@ -118,3 +118,5 @@
- [Daniel Nduati](https://github.com/DanNduati)
- [Simon Hollingshead](https://github.com/simonhollingshead)
- [yangyangdaji](https://github.com/yangyangdaji)
- [xiaotianxt](https://github.com/xiaotianxt)
- [Nour Agha](https://github.com/nourkagha)

View File

@ -1,31 +1,26 @@
const body = document.body;
const darkModeToggle = document.getElementById('dark-mode-toggle');
const darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
// Check if user preference is set, if not check value of body class for light or dark else it means that colorscheme = auto
if (localStorage.getItem("colorscheme")) {
setTheme(localStorage.getItem("colorscheme"));
setTheme(localStorage.getItem("colorscheme"))
} else if (body.classList.contains('colorscheme-light') || body.classList.contains('colorscheme-dark')) {
setTheme(body.classList.contains("colorscheme-dark") ? "dark" : "light");
setTheme(body.classList.contains("colorscheme-dark") ? "dark" : "light")
} else {
setTheme(darkModeMediaQuery.matches ? "dark" : "light");
setTheme(darkModeMediaQuery.matches ? "dark" : "light")
}
if (darkModeToggle) {
darkModeToggle.addEventListener('click', () => {
let theme = body.classList.contains("colorscheme-dark") ? "light" : "dark";
setTheme(theme);
rememberTheme(theme);
});
rememberTheme(theme)
})
}
darkModeMediaQuery.addListener((event) => {
setTheme(event.matches ? "dark" : "light");
setTheme(event.matches ? "dark" : "light")
});
document.addEventListener("DOMContentLoaded", function () {
document.addEventListener("DOMContentLoaded", function() {
let node = document.querySelector('.preload-transitions');
node.classList.remove('preload-transitions');
node.classList.remove('preload-transitions')
});
function setTheme(theme) {
@ -38,46 +33,56 @@ function setTheme(theme) {
function waitForElm(selector) {
return new Promise(resolve => {
if (document.querySelector(selector)) {
return resolve(document.querySelector(selector));
return resolve(document.querySelector(selector))
}
const observer = new MutationObserver(mutations => {
if (document.querySelector(selector)) {
resolve(document.querySelector(selector));
observer.disconnect();
observer.disconnect()
}
});
observer.observe(document.body, {
childList: true,
subtree: true
});
});
})
})
}
if (theme === 'dark') {
const message = {
type: 'set-theme',
theme: 'github-dark'
};
waitForElm('.utterances-frame').then((iframe) => {
iframe.contentWindow.postMessage(message, 'https://utteranc.es');
iframe.contentWindow.postMessage(message, 'https://utteranc.es')
})
}
else {
} else {
const message = {
type: 'set-theme',
theme: 'github-light'
};
waitForElm('.utterances-frame').then((iframe) => {
iframe.contentWindow.postMessage(message, 'https://utteranc.es');
iframe.contentWindow.postMessage(message, 'https://utteranc.es')
})
}
function sendMessage(message) {
const iframe = document.querySelector('iframe.giscus-frame');
if (!iframe) {
return
}
iframe.contentWindow.postMessage({
giscus: message
}, 'https://giscus.app')
}
sendMessage({
setConfig: {
theme: theme
}
});
const event = new Event('themeChanged');
document.dispatchEvent(event)
}
function rememberTheme(theme) {
localStorage.setItem('colorscheme', theme);
}
localStorage.setItem('colorscheme', theme)
}

View File

@ -1,266 +0,0 @@
*,
*:after,
*:before {
box-sizing: inherit;
}
html {
box-sizing: border-box;
font-size: 62.5%;
}
body {
color: $fg-color;
background-color: $bg-color;
font-family: $font-family;
font-size: 1.8em;
font-weight: 400;
line-height: 1.8em;
@media only screen and (max-width: 768px) {
font-size: 1.6em;
line-height: 1.6em;
}
}
a {
font-weight: 500;
color: #4E5D94;
text-decoration: none;
transition: all 0.25s ease-in;
&:focus,
&:hover {
text-decoration: underline;
}
}
p {
margin: 2rem 0 2rem 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $font-family;
font-weight: 600;
color: $alt-fg-color;
margin: 4rem 0 2.5rem 0;
&:hover .heading-link {
visibility: visible;
}
.heading-link {
color: #4E5D94;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden;
}
.title-link {
color: inherit;
font-weight: inherit;
text-decoration: none;
}
}
h1 {
font-size: 3.2rem;
line-height: 3.6rem;
@media only screen and (max-width: 768px) {
font-size: 3rem;
line-height: 3.4rem;
}
}
h2 {
font-size: 2.8rem;
line-height: 3.2rem;
@media only screen and (max-width: 768px) {
font-size: 2.6rem;
line-height: 3rem;
}
}
h3 {
font-size: 2.4rem;
line-height: 2.8rem;
@media only screen and (max-width: 768px) {
font-size: 2.2rem;
line-height: 2.6rem;
}
}
h4 {
font-size: 2.2rem;
line-height: 2.6rem;
@media only screen and (max-width: 768px) {
font-size: 2rem;
line-height: 2.4rem;
}
}
h5 {
font-size: 2rem;
line-height: 2.4rem;
@media only screen and (max-width: 768px) {
font-size: 1.8rem;
line-height: 2.2rem;
}
}
h6 {
font-size: 1.8rem;
line-height: 2.2rem;
@media only screen and (max-width: 768px) {
font-size: 1.6rem;
line-height: 2rem;
}
}
b,
strong {
font-weight: 700;
}
.highlight>div,
.highlight>pre {
margin: 2rem 0 2rem;
padding: 1rem;
border-radius: 1rem;
}
pre {
display: block;
font-family: $code-font-family;
font-size: 1.6rem;
font-weight: 400;
line-height: 2.6rem;
overflow-x: auto;
margin: 0;
code {
display: inline-block;
background-color: inherit;
color: inherit;
}
}
code {
font-family: $code-font-family;
font-size: 1.6rem;
font-weight: 400;
background-color: $alt-bg-color;
color: $fg-color;
border-radius: 0.6rem;
padding: 0.3rem 0.6rem;
}
blockquote {
border-left: 2px solid $alt-bg-color;
padding-left: 2rem;
line-height: 2.2rem;
font-weight: 400;
font-style: italic;
}
th,
td {
padding: 1.6rem;
}
table {
border-collapse: collapse;
}
table td,
table th {
border: 2px solid $alt-fg-color;
}
table tr:first-child th {
border-top: 0;
}
table tr:last-child td {
border-bottom: 0;
}
table tr td:first-child,
table tr th:first-child {
border-left: 0;
}
table tr td:last-child,
table tr th:last-child {
border-right: 0;
}
img {
max-width: 100%;
}
figure {
text-align: center;
}
.preload-transitions * {
$null-transition: none !important;
-webkit-transition: $null-transition;
-moz-transition: $null-transition;
-ms-transition: $null-transition;
-o-transition: $null-transition;
transition: $null-transition;
}
.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
}
.container {
margin: 1rem auto;
max-width: 90rem;
width: 100%;
padding-left: 2rem;
padding-right: 2rem;
}
.fab {
font-weight: 400;
}
.fas {
font-weight: 700;
}
.float-right {
float: right;
}
.float-left {
float: left;
}
.fab {
font-weight: 400;
}
.fas {
font-weight: 900;
}

View File

@ -1,101 +0,0 @@
@mixin base_dark {
color: $fg-color-dark;
background-color: $bg-color-dark;
a {
color: $link-color-dark;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: $alt-fg-color-dark;
&:hover .heading-link {
visibility: visible;
}
.heading-link {
color: $link-color-dark;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden;
}
.title-link {
color: inherit;
font-weight: inherit;
text-decoration: none;
}
}
code {
background-color: $alt-bg-color-dark;
color: $fg-color-dark;
}
// fix color schemes which do not explicitly set fg-color
.highlight {
pre {
background-color: $alt-bg-color-dark;
color: $fg-color-dark;
}
}
:not(.highlight) > pre {
code {
background-color: inherit;
color: inherit;
}
}
blockquote {
border-left: 2px solid $alt-bg-color-dark;
}
th,
td {
padding: 1.6rem;
}
table {
border-collapse: collapse;
}
table td,
table th {
border: 2px solid $alt-fg-color-dark;
}
table tr:first-child th {
border-top: 0;
}
table tr:last-child td {
border-bottom: 0;
}
table tr td:first-child,
table tr th:first-child {
border-left: 0;
}
table tr td:last-child,
table tr th:last-child {
border-right: 0;
}
}
body.colorscheme-dark {
@include base_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include base_dark();
}
}

View File

@ -1,24 +0,0 @@
body.rtl {
direction: rtl;
pre {
direction: ltr;
}
blockquote {
border-left: none;
border-right: 2px solid $alt-bg-color;
padding-left: 0;
padding-right: 1.6rem;
}
table tr td:first-child,
table tr th:first-child {
border-right: 0;
}
table tr td:last-child,
table tr th:last-child {
border-left: 0;
}
}

View File

@ -1,236 +0,0 @@
.content {
flex: 1;
display: flex;
margin-top: 1.6rem;
margin-bottom: 3.2rem;
article {
details {
summary {
cursor: pointer;
}
}
header {
margin-top: 6.4rem;
margin-bottom: 3.2rem;
h1 {
font-size: 4.2rem;
line-height: 4.6rem;
margin: 0;
@media only screen and (max-width: 768px) {
font-size: 4rem;
line-height: 4.4rem;
}
}
}
footer {
margin-top: 4rem;
.see-also {
margin: 3.2rem 0;
h3 {
margin: 3.2rem 0;
}
}
}
p {
text-align: justify;
text-justify: auto;
hyphens: auto;
}
}
.post {
.post-title {
margin-bottom: 0.75em;
}
.post-meta {
i {
text-align: center;
width: 1.6rem;
margin-left: 0;
margin-right: 0.5rem;
}
.date {
.posted-on {
margin-left: 0;
margin-right: 1.5rem;
}
}
.tags {
.tag {
display: inline-block;
padding: 0.3rem 0.6rem;
background-color: $alt-bg-color;
border-radius: 0.6rem;
line-height: 1.4em;
a {
color: $fg-color;
}
a:active {
color: $fg-color;
}
}
}
}
}
figure {
margin: 0;
padding: 0;
}
figcaption p {
text-align: center;
font-style: italic;
font-size: 1.6rem;
margin: 0;
}
}
.avatar img {
width: 20rem;
height: auto;
border-radius: 50%;
@media only screen and (max-width: 768px) {
width: 10rem;
}
}
.list {
ul {
margin: 3.2rem 0 3.2rem 0;
list-style: none;
padding: 0;
li {
font-size: 1.8rem;
@media only screen and (max-width: 768px) {
margin: 1.6rem 0 1.6rem 0;
}
.date {
display: inline-block;
flex: 1;
width: 20rem;
text-align: right;
margin-right: 3rem;
@media only screen and (max-width: 768px) {
display: block;
text-align: left;
}
}
.title {
font-size: 1.8rem;
flex: 2;
color: $fg-color;
font-family: $font-family;
font-weight: 700;
&:hover,
&:focus {
color: $link-color;
}
}
}
}
ul:not(.pagination) {
li {
@media only screen and (min-width: 768.1px) {
display: flex;
}
}
}
}
.centered {
display: flex;
align-items: center;
justify-content: center;
.about {
text-align: center;
h1 {
margin-top: 2rem;
margin-bottom: 0.5rem;
}
h2 {
margin-top: 1rem;
margin-bottom: 0.5rem;
font-size: 2.4rem;
@media only screen and (max-width: 768px) {
font-size: 2rem;
}
}
ul {
list-style: none;
margin: 3rem 0 1rem 0;
padding: 0;
li {
display: inline-block;
position: relative;
a {
color: $fg-color;
text-transform: uppercase;
margin-left: 1rem;
margin-right: 1rem;
font-size: 1.6rem;
&:hover,
&:focus {
color: $link-color;
}
@media only screen and (max-width: 768px) {
font-size: 1.4rem;
}
}
}
}
}
.error {
text-align: center;
h1 {
margin-top: 2rem;
margin-bottom: 0.5rem;
font-size: 4.6rem;
@media only screen and (max-width: 768px) {
font-size: 3.2rem;
}
}
h2 {
margin-top: 2rem;
margin-bottom: 3.2rem;
font-size: 3.2rem;
@media only screen and (max-width: 768px) {
font-size: 2.8rem;
}
}
}
}

View File

@ -1,59 +0,0 @@
@mixin content_dark {
.content {
.post {
.tags {
.tag {
background-color: $alt-bg-color-dark;
a {
color: $fg-color-dark;
}
a:active {
color: $fg-color-dark;
}
}
}
}
.list {
ul {
li {
.title {
color: $fg-color-dark;
&:hover,
&:focus {
color: $link-color-dark;
}
}
}
}
}
.centered {
.about {
ul {
li {
a {
color: $fg-color-dark;
&:hover,
&:focus {
color: $link-color-dark;
}
}
}
}
}
}
}
}
body.colorscheme-dark {
@include content_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include content_dark();
}
}

View File

@ -1,36 +0,0 @@
body.rtl {
.content {
.post {
.post-meta {
.posted-on {
margin-left: 1.5rem;
margin-right: 0;
}
}
.tags,
.categories {
i {
margin-left: 0.5rem;
margin-right: 0;
}
}
}
}
.list {
ul {
li {
.date {
text-align: left;
margin-left: 3rem;
margin-right: 0;
@media only screen and (max-width: 768px) {
text-align: right;
}
}
}
}
}
}

View File

@ -1,38 +0,0 @@
.float-container {
bottom: 2rem;
right: 2rem;
z-index: 100;
position: fixed;
font-size: 1.6em;
a {
position: relative;
display: inline-block;
width: 3rem;
height: 3rem;
font-size: 2rem;
color: $alt-fg-color;
background-color: $alt-bg-color;
border-radius: 0.2rem;
opacity: 0.5;
transition: all 0.25s ease-in;
&:hover,
&:focus {
color: $link-color;
opacity: 1;
@media only screen and (max-width: 768px) {
color: $alt-fg-color;
opacity: 0.5;
}
}
i {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
}

View File

@ -1,27 +0,0 @@
@mixin float_dark {
.float-container {
a {
color: $alt-fg-color-dark;
background-color: $alt-bg-color-dark;
&:hover,
&:focus {
color: $link-color-dark;
@media only screen and (max-width: 768px) {
color: $alt-fg-color-dark;
}
}
}
}
}
body.colorscheme-dark {
@include float_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include float_dark();
}
}

View File

@ -1,11 +0,0 @@
.footer {
width: 100%;
text-align: center;
font-size: 1.6rem;
line-height: 2rem;
margin-bottom: 1rem;
a {
color: $link-color;
}
}

View File

@ -1,17 +0,0 @@
@mixin footer_dark {
.footer {
a {
color: $link-color-dark;
}
}
}
body.colorscheme-dark {
@include footer_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include footer_dark();
}
}

View File

@ -1,143 +0,0 @@
.navigation {
height: 6rem;
width: 100%;
a,
span {
display: inline;
font-size: 1.7rem;
font-family: $font-family;
font-weight: 600;
color: $fg-color;
}
a {
&:hover,
&:focus {
color: $link-color;
}
}
.navigation-title {
letter-spacing: 0.1rem;
text-transform: uppercase;
}
.navigation-list {
float: right;
list-style: none;
margin-bottom: 0;
margin-top: 0;
@media only screen and (max-width: 768px) {
position: relative;
top: 2rem;
right: 0;
z-index: 5;
visibility: hidden;
opacity: 0;
padding: 0;
max-height: 0;
width: 100%;
background-color: $bg-color;
border-top: solid 2px $alt-bg-color;
border-bottom: solid 2px $alt-bg-color;
transition: opacity 0.25s, max-height 0.15s linear;
}
.navigation-item {
float: left;
margin: 0;
position: relative;
@media only screen and (max-width: 768px) {
float: none !important;
text-align: center;
a,
span {
line-height: 5rem;
}
}
a,
span {
margin-left: 1rem;
margin-right: 1rem;
}
}
.separator {
@media only screen and (max-width: 768px) {
display: none;
}
}
.menu-separator {
@media only screen and (max-width: 768px) {
border-top: 2px solid $fg-color;
margin: 0 8rem;
span {
display: none;
}
}
}
}
#dark-mode-toggle {
margin: 1.7rem 0;
font-size: 2.4rem;
line-height: inherit;
bottom: 2rem;
left: 2rem;
z-index: 100;
position: fixed;
}
#menu-toggle {
display: none;
@media only screen and (max-width: 768px) {
&:checked+label>i {
color: $alt-bg-color;
}
&:checked+label+ul {
visibility: visible;
opacity: 1;
max-height: 100rem;
}
}
}
.menu-button {
display: none;
@media only screen and (max-width: 768px) {
position: relative;
display: block;
font-size: 2.4rem;
font-weight: 400;
}
i {
&:hover,
&:focus {
color: $alt-fg-color;
}
}
}
i {
color: $fg-color;
cursor: pointer;
&:hover,
&:focus {
color: $link-color;
}
}
}

View File

@ -1,68 +0,0 @@
@mixin navigation_dark {
.navigation {
a,
span {
color: $fg-color-dark;
}
a {
&:hover,
&:focus {
color: $link-color-dark;
}
}
.navigation-list {
@media only screen and (max-width: 768px) {
background-color: $bg-color-dark;
border-top: solid 2px $alt-bg-color-dark;
border-bottom: solid 2px $alt-bg-color-dark;
}
.menu-separator {
@media only screen and (max-width: 768px) {
border-top: 2px solid $fg-color-dark;
}
}
}
#menu-toggle {
@media only screen and (max-width: 768px) {
&:checked+label>i {
color: $alt-bg-color-dark;
}
}
}
i {
color: $fg-color-dark;
&:hover,
&:focus {
color: $link-color-dark;
}
}
.menu-button {
i {
&:hover,
&:focus {
color: $alt-fg-color-dark;
}
}
}
}
}
body.colorscheme-dark {
@include navigation_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include navigation_dark();
}
}

View File

@ -1,20 +0,0 @@
body.rtl {
.navigation-list {
float: left;
@media only screen and (max-width: 768px) {
left: 0;
right: auto;
}
.navigation-item {
float: right;
}
}
.menu-button {
@media only screen and (max-width: 768px) {
float: left;
}
}
}

View File

@ -1,111 +0,0 @@
.notice {
border-radius: 0.2rem;
position: relative;
margin: 2rem 0;
padding: 0 0.75rem;
overflow: auto;
.notice-title {
position: relative;
font-weight: 700;
margin: 0 -0.75rem;
padding: 0.2rem 3.5rem;
border-bottom: 1px solid $bg-color;
i {
position: absolute;
top: 50%;
left: 1.8rem;
transform: translate(-50%, -50%);
}
}
.notice-content {
display: block;
margin: 2rem 2rem;
}
}
.notice.note {
background-color: $bg-color-notice-note-content;
.notice-title {
background-color: $bg-color-notice-note-title;
i {
color: $fg-color-notice-note-icon;
}
}
}
.notice.tip {
background-color: $bg-color-notice-tip-content;
.notice-title {
background-color: $bg-color-notice-tip-title;
i {
color: $fg-color-notice-tip-icon;
}
}
}
.notice.example {
background-color: $bg-color-notice-example-content;
.notice-title {
background-color: $bg-color-notice-example-title;
i {
color: $fg-color-notice-example-icon;
}
}
}
.notice.question {
background-color: $bg-color-notice-question-content;
.notice-title {
background-color: $bg-color-notice-question-title;
i {
color: $fg-color-notice-question-icon;
}
}
}
.notice.info {
background-color: $bg-color-notice-info-content;
.notice-title {
background-color: $bg-color-notice-info-title;
i {
color: $fg-color-notice-info-icon;
}
}
}
.notice.warning {
background-color: $bg-color-notice-warning-content;
.notice-title {
background-color: $bg-color-notice-warning-title;
i {
color: $fg-color-notice-warning-icon;
}
}
}
.notice.error {
background-color: $bg-color-notice-error-content;
.notice-title {
background-color: $bg-color-notice-error-title;
i {
color: $fg-color-notice-error-icon;
}
}
}

View File

@ -1,17 +0,0 @@
@mixin notices_dark {
.notice {
.notice-title {
border-bottom: 1px solid $bg-color-dark;
}
}
}
body.colorscheme-dark {
@include notices_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include notices_dark();
}
}

View File

@ -1,27 +0,0 @@
.pagination {
margin-top: 6rem;
text-align: center;
font-family: $font-family;
li {
display: inline;
text-align: center;
font-weight: 700;
span {
margin: 0;
text-align: center;
width: 3.2rem;
}
a {
font-weight: 300;
span {
margin: 0;
text-align: center;
width: 3.2rem;
}
}
}
}

View File

@ -1,77 +0,0 @@
.tabs {
display: flex;
flex-wrap: wrap;
margin: 2rem 0 2rem 0;
position: relative;
&.tabs-left {
justify-content: flex-start;
label.tab-label {
margin-right: 0.5rem;
}
.tab-content {
border-radius: 0px 4px 4px 4px;
}
}
&.tabs-right {
justify-content: flex-end;
label.tab-label {
margin-left: 0.5rem;
}
.tab-content {
border-radius: 4px 0px 4px 4px;
}
}
input.tab-input {
display: none;
}
label.tab-label {
background-color: $alt-bg-color;
border-color: $darker-alt-bg-color;
border-radius: 4px 4px 0px 0px;
border-style: solid;
border-bottom-style: hidden;
border-width: 1px;
cursor: pointer;
display: inline-block;
order: 1;
padding: 0.3rem 0.6rem;
position: relative;
top: 1px;
user-select: none;
}
input.tab-input:checked + label.tab-label {
background-color: $bg-color;
}
.tab-content {
background-color: $bg-color;
border-color: $darker-alt-bg-color;
border-style: solid;
border-width: 1px;
display: none;
order: 2;
padding: 1rem;
width: 100%;
}
&.tabs-code {
.tab-content {
padding: 0.5rem;
pre {
margin: 0;
}
}
}
}

View File

@ -1,27 +0,0 @@
@mixin tabs_dark {
.tabs {
label.tab-label {
background-color: $alt-bg-color-dark;
border-color: $lighter-alt-bg-color-dark;
}
input.tab-input:checked + label.tab-label {
background-color: $bg-color-dark;
}
.tab-content {
background-color: $bg-color-dark;
border-color: $lighter-alt-bg-color-dark;
}
}
}
body.colorscheme-dark {
@include tabs_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include tabs_dark();
}
}

View File

@ -1,20 +0,0 @@
.taxonomy {
li {
display: inline-block;
margin: 0.9rem;
}
.taxonomy-element {
display: block;
padding: 0.3rem 0.9rem;
background-color: $alt-bg-color;
border-radius: 0.6rem;
a {
color: $fg-color;
}
a:active {
color: $fg-color;
}
}
}

View File

@ -1,22 +0,0 @@
@mixin taxonomy_dark {
.taxonomy-element {
background-color: $alt-bg-color-dark;
a {
color: $fg-color-dark;
}
a:active {
color: $fg-color-dark;
}
}
}
body.colorscheme-dark {
@include taxonomy_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include taxonomy_dark();
}
}

View File

@ -1,60 +0,0 @@
// Fonts
$font-family: -apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen-Sans,
Ubuntu,
Cantarell,
"Helvetica Neue",
Helvetica,
"PingFang SC",
STXihei,"华文细黑",
"Microsoft YaHei","微软雅黑",
SimSun,"宋体",
Heiti,"黑体",
sans-serif;
$code-font-family: SFMono-Regular,
Consolas,
Liberation Mono,
Menlo,
monospace;
// Colors
$bg-color: #fafafa !default;
$fg-color: #212121 !default;
$alt-bg-color: #e0e0e0 !default;
$alt-fg-color: #000 !default;
$darker-alt-bg-color: #ccc !default;
$link-color: #1565c0 !default;
// Dark colors
$bg-color-dark: #212121 !default;
$fg-color-dark: #dadada !default;
$alt-bg-color-dark: #424242 !default;
$alt-fg-color-dark: #dadada !default;
$lighter-alt-bg-color-dark: #4f4f4f !default;
$link-color-dark: #42a5f5 !default;
// Notice colors
$fg-color-notice-note-icon: #5e35b1 !default;
$bg-color-notice-note-title: #673ab71a !default;
$bg-color-notice-note-content: #7e57c21a !default;
$fg-color-notice-tip-icon: #00897b !default;
$bg-color-notice-tip-title: #0096881a !default;
$bg-color-notice-tip-content: #26a69a1a !default;
$fg-color-notice-example-icon: #6d4c41 !default;
$bg-color-notice-example-title: #7955481a !default;
$bg-color-notice-example-content: #8d6e631a !default;
$fg-color-notice-question-icon: #7cb342 !default;
$bg-color-notice-question-title: #8bc34a1a !default;
$bg-color-notice-question-content: #9ccc651a !default;
$fg-color-notice-info-icon: #1e88e5 !default;
$bg-color-notice-info-title: #2196f31a !default;
$bg-color-notice-info-content: #42a5f51a !default;
$fg-color-notice-warning-icon: #ffb300 !default;
$bg-color-notice-warning-title: #ffc1071a !default;
$bg-color-notice-warning-content: #ffca281a !default;
$fg-color-notice-error-icon: #e53935 !default;
$bg-color-notice-error-title: #f443361a !default;
$bg-color-notice-error-content: #ef53501a !default;

View File

@ -1,453 +0,0 @@
body.colorscheme-dark {
color: #fff;
background-color: #383C4A;
}
nav.navigation{
background-color: #2E323E;
}
::-webkit-scrollbar {
display: none;
}
/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
max-width: 100%;
}
p{
word-break: break-all;
text-align: justify;
}
body.colorscheme-dark a {
color: #fff;
text-decoration: underline;
}
body.colorscheme-dark a:hover, a:focus, a:active{
color: #7289DA;
}
body.colorscheme-dark h1,body.colorscheme-dark h2,body.colorscheme-dark h3,body.colorscheme-dark h4,body.colorscheme-dark h5,body.colorscheme-dark h6 {
color: #fff;
}
li.navigation-item a{
color: #fff;
text-decoration: none;
}
section.title-container a{
color: #fff;
text-decoration: none;
}
.title-container {
margin: 1rem auto;
max-width: 90rem;
width: 100%;
padding-left: 2rem;
padding-right: 2rem; }
body.colorscheme-dark h1:hover .heading-link,body.colorscheme-dark h2:hover .heading-link,body.colorscheme-dark h3:hover .heading-link,body.colorscheme-dark h4:hover .heading-link,body.colorscheme-dark h5:hover .heading-link,body.colorscheme-dark h6:hover .heading-link {
visibility: visible;
}
body.colorscheme-dark h1 .heading-link,body.colorscheme-dark h2 .heading-link,body.colorscheme-dark h3 .heading-link,body.colorscheme-dark h4 .heading-link,body.colorscheme-dark h5 .heading-link,body.colorscheme-dark h6 .heading-link {
color: #7289da;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden;
}
body.colorscheme-dark h1 .title-link,body.colorscheme-dark h2 .title-link,body.colorscheme-dark h3 .title-link,body.colorscheme-dark h4 .title-link,body.colorscheme-dark h5 .title-link,body.colorscheme-dark h6 .title-link {
color: inherit;
font-weight: inherit;
text-decoration: none;
}
body.colorscheme-dark code {
background-color: #424242;
color: #fff;
}
body.colorscheme-dark .highlight pre {
background-color: #424242;
color: #fff;
}
body.colorscheme-dark :not(.highlight)>pre code {
background-color: inherit;
color: inherit;
}
body.colorscheme-dark blockquote {
border-left: 2px solid #424242;
}
body.colorscheme-dark th,body.colorscheme-dark td {
padding: 1.6rem;
}
body.colorscheme-dark table {
border-collapse: collapse;
}
body.colorscheme-dark table td,body.colorscheme-dark table th {
border: 2px solid #fff;
}
body.colorscheme-dark table tr:first-child th {
border-top: 0;
}
body.colorscheme-dark table tr:last-child td {
border-bottom: 0;
}
body.colorscheme-dark table tr td:first-child,body.colorscheme-dark table tr th:first-child {
border-left: 0;
}
body.colorscheme-dark table tr td:last-child,body.colorscheme-dark table tr th:last-child {
border-right: 0;
}
@media(prefers-color-scheme:dark) {
body.colorscheme-auto {
color: #fff;
background-color: #212121;
}
body.colorscheme-auto a {
color: #7289da;
}
body.colorscheme-auto h1,body.colorscheme-auto h2,body.colorscheme-auto h3,body.colorscheme-auto h4,body.colorscheme-auto h5,body.colorscheme-auto h6 {
color: #fff;
}
body.colorscheme-auto h1:hover .heading-link,body.colorscheme-auto h2:hover .heading-link,body.colorscheme-auto h3:hover .heading-link,body.colorscheme-auto h4:hover .heading-link,body.colorscheme-auto h5:hover .heading-link,body.colorscheme-auto h6:hover .heading-link {
visibility: visible;
}
body.colorscheme-auto h1 .heading-link,body.colorscheme-auto h2 .heading-link,body.colorscheme-auto h3 .heading-link,body.colorscheme-auto h4 .heading-link,body.colorscheme-auto h5 .heading-link,body.colorscheme-auto h6 .heading-link {
color: #7289da;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden;
}
body.colorscheme-auto h1 .title-link,body.colorscheme-auto h2 .title-link,body.colorscheme-auto h3 .title-link,body.colorscheme-auto h4 .title-link,body.colorscheme-auto h5 .title-link,body.colorscheme-auto h6 .title-link {
color: inherit;
font-weight: inherit;
text-decoration: none;
}
body.colorscheme-auto code {
background-color: #424242;
color: #fff;
}
body.colorscheme-auto .highlight pre {
background-color: #424242;
color: #fff;
}
body.colorscheme-auto :not(.highlight)>pre code {
background-color: inherit;
color: inherit;
}
body.colorscheme-auto blockquote {
border-left: 2px solid #424242;
}
body.colorscheme-auto th,body.colorscheme-auto td {
padding: 1.6rem;
}
body.colorscheme-auto table {
border-collapse: collapse;
}
body.colorscheme-auto table td,body.colorscheme-auto table th {
border: 2px solid #fff;
}
body.colorscheme-auto table tr:first-child th {
border-top: 0;
}
body.colorscheme-auto table tr:last-child td {
border-bottom: 0;
}
body.colorscheme-auto table tr td:first-child,body.colorscheme-auto table tr th:first-child {
border-left: 0;
}
body.colorscheme-auto table tr td:last-child,body.colorscheme-auto table tr th:last-child {
border-right: 0;
}
}
body.colorscheme-dark .content .post .tags .tag {
background-color: #424242;
}
body.colorscheme-dark .content .post .tags .tag a {
color: #fff;
}
body.colorscheme-dark .content .post .tags .tag a:active {
color: #fff;
}
body.colorscheme-dark .content .list ul li .title {
color: #fff;
}
body.colorscheme-dark .content .list ul li .title:hover,body.colorscheme-dark .content .list ul li .title:focus {
color: #7289da;
}
body.colorscheme-dark .content .centered .about ul li a {
color: #fff;
}
body.colorscheme-dark .content .centered .about ul li a:hover,body.colorscheme-dark .content .centered .about ul li a:focus {
color: #7289da;
}
@media(prefers-color-scheme:dark) {
body.colorscheme-auto .content .post .tags .tag {
background-color: #424242;
}
body.colorscheme-auto .content .post .tags .tag a {
color: #fff;
}
body.colorscheme-auto .content .post .tags .tag a:active {
color: #fff;
}
body.colorscheme-auto .content .list ul li .title {
color: #fff;
}
body.colorscheme-auto .content .list ul li .title:hover,body.colorscheme-auto .content .list ul li .title:focus {
color: #4e5d94;
}
body.colorscheme-auto .content .centered .about ul li a {
color: #fff;
}
body.colorscheme-auto .content .centered .about ul li a:hover,body.colorscheme-auto .content .centered .about ul li a:focus {
color: #4e5d94;
}
}
body.colorscheme-dark .notice .notice-title {
border-bottom: 1px solid #212121;
}
@media(prefers-color-scheme:dark) {
body.colorscheme-auto .notice .notice-title {
border-bottom: 1px solid #212121;
}
}
body.colorscheme-dark .navigation a,body.colorscheme-dark .navigation span {
color: #fff;
}
body.colorscheme-dark .navigation a:hover,body.colorscheme-dark .navigation a:focus {
color: #7289da;
}
@media only screen and (max-width:768px) {
body.colorscheme-dark .navigation .navigation-list {
background-color: #2E323E;
border-top: solid 2px #4E5D94;
border-bottom: solid 2px #4E5D94;
}
}
@media only screen and (max-width:768px) {
body.colorscheme-dark .navigation .navigation-list .menu-separator {
border-top: 2px solid #fff;
}
}
@media only screen and (max-width:768px) {
body.colorscheme-dark .navigation #menu-toggle:checked+label>i {
color: #424242;
}
}
body.colorscheme-dark .navigation i {
color: #fff;
}
body.colorscheme-dark .navigation i:hover,body.colorscheme-dark .navigation i:focus {
color: #7289da;
}
body.colorscheme-dark .navigation .menu-button i:hover,body.colorscheme-dark .navigation .menu-button i:focus {
color: #fff;
}
@media(prefers-color-scheme:dark) {
body.colorscheme-auto .navigation a,body.colorscheme-auto .navigation span {
color: #fff;
}
body.colorscheme-auto .navigation a:hover,body.colorscheme-auto .navigation a:focus {
color: #7289da;
}
}
@media only screen and (prefers-color-scheme:dark) and (max-width:768px) {
body.colorscheme-auto .navigation .navigation-list {
background-color: #212121;
border-top: solid 2px #424242;
border-bottom: solid 2px #424242;
}
}
@media only screen and (prefers-color-scheme:dark) and (max-width:768px) {
body.colorscheme-auto .navigation .navigation-list .menu-separator {
border-top: 2px solid #fff;
}
}
@media only screen and (prefers-color-scheme:dark) and (max-width:768px) {
body.colorscheme-auto .navigation #menu-toggle:checked+label>i {
color: #424242;
}
}
@media(prefers-color-scheme:dark) {
body.colorscheme-auto .navigation i {
color: #fff;
}
body.colorscheme-auto .navigation i:hover,body.colorscheme-auto .navigation i:focus {
color: #7289da;
}
body.colorscheme-auto .navigation .menu-button i:hover,body.colorscheme-auto .navigation .menu-button i:focus {
color: #fff;
}
}
body.colorscheme-dark .tabs label.tab-label {
background-color: #424242;
border-color: #4f4f4f;
}
body.colorscheme-dark .tabs input.tab-input:checked+label.tab-label {
background-color: #212121;
}
body.colorscheme-dark .tabs .tab-content {
background-color: #212121;
border-color: #4f4f4f;
}
@media(prefers-color-scheme:dark) {
body.colorscheme-auto .tabs label.tab-label {
background-color: #424242;
border-color: #4f4f4f;
}
body.colorscheme-auto .tabs input.tab-input:checked+label.tab-label {
background-color: #212121;
}
body.colorscheme-auto .tabs .tab-content {
background-color: #212121;
border-color: #4f4f4f;
}
}
body.colorscheme-dark .taxonomy-element {
background-color: #424242;
}
body.colorscheme-dark .taxonomy-element a {
color: #fff;
}
body.colorscheme-dark .taxonomy-element a:active {
color: #fff;
}
@media(prefers-color-scheme:dark) {
body.colorscheme-auto .taxonomy-element {
background-color: #424242;
}
body.colorscheme-auto .taxonomy-element a {
color: #fff;
}
body.colorscheme-auto .taxonomy-element a:active {
color: #fff;
}
}
body.colorscheme-dark .footer a {
color: #fff;
text-decoration: none;
}
body.colorscheme-dark .footer a:hover, a:focus, a:active {
color: #7289da;
}
@media(prefers-color-scheme:dark) {
body.colorscheme-auto .footer a {
color: #7289da;
}
}
body.colorscheme-adark .float-container a {
color: #fff;
background-color: #424242;
}
body.colorscheme-dark .float-container a:hover,body.colorscheme-dark .float-container a:focus {
color: #7289da;
}
@media only screen and (max-width:768px) {
body.colorscheme-dark .float-container a:hover,body.colorscheme-dark .float-container a:focus {
color: #fff;
}
}
@media(prefers-color-scheme:dark) {
body.colorscheme-auto .float-container a {
color: #fff;
background-color: #424242;
}
body.colorscheme-auto .float-container a:hover,body.colorscheme-auto .float-container a:focus {
color: #7289da;
}
}
@media only screen and (prefers-color-scheme:dark) and (max-width:768px) {
body.colorscheme-auto .float-container a:hover,body.colorscheme-auto .float-container a:focus {
color: #4e5d94;
}
}
.align-left {
text-align: left;
}
.align-center {
text-align: center;
}
.align-right {
text-align: right;
}

View File

@ -1,4 +0,0 @@
@import "_variables";
@import "_base_rtl";
@import "_content_rtl";
@import "_navigation_rtl";

File diff suppressed because it is too large Load Diff

View File

@ -1,195 +0,0 @@
baseURL = "http://www.example.com"
title = "johndoe"
theme = "hugo-coder"
languageCode = "en"
defaultContentLanguage = "en"
paginate = 20
pygmentsStyle = "bw"
pygmentsCodeFences = true
pygmentsCodeFencesGuessSyntax = true
enableEmoji = true
# Enable Disqus comments
# disqusShortname = "yourdiscussshortname"
[params]
author = "John Doe"
# license = '<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA-4.0</a>'
description = "John Doe's personal website"
keywords = "blog,developer,personal"
info = ["Full Stack DevOps", "Magician"]
avatarURL = "images/avatar.jpg"
#gravatar = "john.doe@example.com"
dateFormat = "January 2, 2006"
since = 2019
# Git Commit in Footer, uncomment the line below to enable it
commit = "https://github.com/luizdepra/hugo-coder/tree/"
# Right To Left, shift content direction for languagues such as Arabic
rtl = false
# Specify light/dark colorscheme
# Supported values:
# "auto" (use preference set by browser)
# "dark" (dark background, light foreground)
# "light" (light background, dark foreground) (default)
colorScheme = "auto"
# Hide the toggle button, along with the associated vertical divider
hideColorSchemeToggle = false
# Series see also post count
maxSeeAlsoItems = 5
# Custom CSS
customCSS = []
# Custom SCSS, file path is relative to Hugo's asset folder (default: {your project root}/assets)
customSCSS = []
# Custom JS
customJS = []
# If you want to use fathom(https://usefathom.com) for analytics, add this section
# [params.fathomAnalytics]
# siteID = "ABCDE"
# serverURL = "analytics.example.com" # Default value is cdn.usefathom.com, overwrite this if you are self-hosting
# If you want to use plausible(https://plausible.io) for analytics, add this section
# [params.plausibleAnalytics]
# domain = "example.com"
# serverURL = "analytics.example.com" # Default value is plausible.io, overwrite this if you are self-hosting or using a custom domain
# If you want to use goatcounter(https://goatcounter.com) for analytics, add this section
# [params.goatCounter]
# code = "code"
# If you want to use Cloudflare Web Analytics(https://cloudflare.com) for analytics, add this section
# [params.cloudflare]
# token = "token"
# If you want to use Matomo(https://matomo.org) for analytics, add this section
# [params.matomo]
# siteID = "ABCDE" # Default value is "1", overwrite this if you are cloud-hosting
# serverURL = "analytics.example.com" # For cloud-hosting, use provided URL, e.g. example.matomo.cloud
# If you want to use Google Tag Manager(https://analytics.google.com/) for analytics, add this section
# [params.googleTagManager]
# id = "gid"
# If you want to use Application Insights(https://azure.com/) for analytics, add this section
# [params.applicationInsights]
# connectionString = "connectionString"
# If you want to implement a Content-Security-Policy, add this section
# [params.csp]
# childsrc = ["'self'"]
# fontsrc = ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net/"]
# formaction = ["'self'"]
# framesrc = ["'self'", "https://www.youtube.com"]
# imgsrc = ["'self'"]
# objectsrc = ["'none'"]
# stylesrc = [
# "'self'",
# "'unsafe-inline'",
# "https://fonts.googleapis.com/",
# "https://cdn.jsdelivr.net/",
# ]
# scriptsrc = [
# "'self'",
# "'unsafe-inline'",
# "https://www.google-analytics.com",
# "https://cdn.jsdelivr.net/",
# ]
# prefetchsrc = ["'self'"]
# # connect-src directive defines valid targets for to XMLHttpRequest (AJAX), WebSockets or EventSource
# connectsrc = ["'self'", "https://www.google-analytics.com"]
[taxonomies]
category = "categories"
series = "series"
tag = "tags"
author = "authors"
[[params.social]]
name = "Github"
icon = "fa fa-2x fa-github"
weight = 1
url = "https://github.com/johndoe/"
[[params.social]]
name = "Gitlab"
icon = "fa fa-2x fa-gitlab"
weight = 2
url = "https://gitlab.com/johndoe/"
[[params.social]]
name = "Twitter"
icon = "fa fa-2x fa-twitter"
weight = 3
url = "https://twitter.com/johndoe/"
[[params.social]]
name = "LinkedIn"
icon = "fa fa-2x fa-linkedin"
weight = 4
url = "https://www.linkedin.com/in/johndoe/"
[[params.social]]
name = "Medium"
icon = "fa fa-2x fa-medium"
weight = 5
url = "https://medium.com/@johndoe"
[[params.social]]
name = "RSS"
icon = "fa fa-2x fa-rss"
weight = 6
url = "https://myhugosite.com/index.xml"
rel = "alternate"
type = "application/rss+xml"
[languages.en]
languageName = ":uk:"
[[languages.en.menu.main]]
name = "About"
weight = 1
url = "about/"
[[languages.en.menu.main]]
name = "Blog"
weight = 2
url = "posts/"
[[languages.en.menu.main]]
name = "Projects"
weight = 3
url = "projects/"
[[languages.en.menu.main]]
name = "Contact me"
weight = 5
url = "contact/"
[languages.pt-br]
languageName = ":brazil:"
title = "João Ninguém"
[languages.pt-br.params]
author = "João Ninguém"
info = "Full Stack DevOps e Mágico"
description = "Sítio pessoal de João Ninguém"
keywords = "blog,desenvolvedor,pessoal"
[[languages.pt-br.menu.main]]
name = "Sobre"
weight = 1
url = "about/"
[[languages.pt-br.menu.main]]
name = "Blog"
weight = 2
url = "posts/"
[[languages.pt-br.menu.main]]
name = "Projetos"
weight = 3
url = "projects/"
[[languages.pt-br.menu.main]]
name = "Contato"
weight = 5
url = "contact/"

View File

@ -1,25 +0,0 @@
+++
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/yuin/goldmark
* 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 extremely 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).

View File

@ -1,25 +0,0 @@
+++
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"
+++
Escrito em Go, Hugo é um gerador de sites estáticos de código aberto disponível sobre a licença [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) O Hugo suporta TOML, YAML e JSON como arquivos de dados, Markdown e HTML como arquivos de conteúdo, e usa shortcodes para adicionar conteúdos ricos. Outras funcionalidades notaveis são taxonomias, modo multilingual, processamento de imagens, formatos de saída customizaveis, minificação de HTML/CSS/JS e suporte a fluxos SASS/SCSS.
O Hugo faz o uso de vários projetos de código aberto incluíndo:
* https://github.com/yuin/goldmark
* https://github.com/alecthomas/chroma
* https://github.com/muesli/smartcrop
* https://github.com/spf13/cobra
* https://github.com/spf13/viper
O Hugo é ideal para blogs, sites corporativos, protfólio criativos, revistas online, aplicações de página única ou até sites com milhares de páginas.
O Hugo é para pessoas que querem cuidar do seu próprio site sem se preocupar com a configuração ambientes complicados, dependências e bancos de dados.
Sites contru;idos com Hugo são extremamente rápidos, seguros e podem ser implantados em qualquer lugar, incluíndo AWS, GitHub Pages, Heroku, Netlify e outros provedores de hospedagem.
Saiba mais e contribua em [GitHub](https://github.com/gohugoio).

View File

@ -1,6 +0,0 @@
+++
title = "Contact"
slug = "contact"
+++
Follow me, @johndoe.

View File

@ -1,6 +0,0 @@
+++
title = "Contato"
slug = "contact"
+++
Me siga em @joaoninguem.

View File

@ -1,46 +0,0 @@
+++
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 >}}

View File

@ -1,46 +0,0 @@
+++
author = "Hugo Authors"
title = "Suporte a Emojis"
date = "2019-03-05"
description = "Um guia de utilização de emojis com Hugo"
tags = [
"emoji",
]
+++
Emojis podem ser ativados em um projeto Hugo de diversar formas.
<!--more-->
A função [`emojify`](https://gohugo.io/functions/emojify/) pode ser chamada diretamente nos templates ou com [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
Para ativar os emojis globalmente, aplique `enableEmoji` com o valor `true` na [configuração](https://gohugo.io/getting-started/configuration/) do seu site e então você poderá adicionar códigos de emoji diretamente nos arquivos de conteúdo. Por exemplo:
<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>
O [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) é uma referência útil para identificar códigos de emojis.
***
**Nota:** Os passos anteriores ativam os caractéres e sequências de emoji do Padrão Unicode no Hugo, porém a renderização desses glifos depende do navegador e plataforma utilizada. Para escolher o estilo dos emojis você pode tanto usar um font de emoji de terceiros ou uma lista de fontes. Por exemplo:
{{< 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 >}}

View File

@ -1,15 +0,0 @@
+++
author = "Hugo Authors"
date = "2019-03-04"
title = "External Page: Hugo Coder Wiki"
slug = "hugo-coder-wiki"
tags = [
"hugo",
"development",
"themes"
]
categories = [
"Development",
]
externalLink = "https://github.com/luizdepra/hugo-coder/wiki"
+++

View File

@ -1,15 +0,0 @@
+++
author = "Hugo Authors"
date = "2019-03-04"
title = "Página Externa: Wiki Hugo Coder"
slug = "hugo-coder-wiki"
tags = [
"hugo",
"development",
"themes"
]
categories = [
"Development",
]
externalLink = "https://github.com/luizdepra/hugo-coder/wiki"
+++

View File

@ -1,133 +0,0 @@
+++
author = "Hugo Authors"
title = "HTML and CSS only tabs"
date = "2022-05-15"
description = "Sample article showcasing shortcodes for HTML/CSS only tabs"
tags = [
"markdown",
"css",
"html",
]
categories = [
"themes",
"syntax",
]
series = ["Themes Guide"]
aliases = ["migrate-from-jekyl"]
+++
## Basic shortcodes
The following content:
```markdown
{{</* tabgroup */>}}
{{</* tab name="Hello" */>}}
Hello World!
{{</* /tab */>}}
{{</* tab name="Goodbye" */>}}
Goodbye Everybody!
{{</* /tab */>}}
{{</* /tabgroup */>}}
```
Will generate:
{{< tabgroup >}}
{{< tab name="Hello" >}}
Hello World!
{{< /tab >}}
{{< tab name="Goodbye" >}}
Goodbye Everybody!
{{< /tab >}}
{{< /tabgroup >}}
## Right alighment
You can also align the tabs to the right:
```markdown
{{</* tabgroup align="right" */>}}
{{</* tab name="Hello" */>}}
Hello World!
{{</* /tab */>}}
{{</* tab name="Goodbye" */>}}
Goodbye Everybody!
{{</* /tab */>}}
{{</* /tabgroup */>}}
```
Giving you this look:
{{< tabgroup align="right" >}}
{{< tab name="Hello" >}}
Hello World!
{{< /tab >}}
{{< tab name="Goodbye" >}}
Goodbye Everybody!
{{< /tab >}}
{{< /tabgroup >}}
## Markdown content
Any valid markdown can be used inside the tab:
~~~markdown
{{</* tabgroup align="right" style="code" */>}}
{{</* tab name="Ruby" */>}}
```ruby
puts 'Hello'
```
{{</* /tab */>}}
{{</* tab name="Python" */>}}
```python
print('Hello')
```
{{</* /tab */>}}
{{</* tab name="JavaScript" */>}}
```js
console.log('Hello')
```
{{</* /tab */>}}
{{</* /tabgroup */>}}
~~~
And you get this lovely content:
{{< tabgroup align="right" style="code" >}}
{{< tab name="Ruby" >}}
```ruby
puts 'Hello'
```
{{< /tab >}}
{{< tab name="Python" >}}
```python
print('Hello')
```
{{< /tab >}}
{{< tab name="JavaScript" >}}
```js
console.log('Hello')
```
{{< /tab >}}
{{< /tabgroup >}}
In this case `style="code"` makes it look a little nicer for scenarios where
your content purely a code block.

View File

@ -1,148 +0,0 @@
+++
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",
]
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.<br>
> — <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 them out-of-the-box.
Name | Age
--------|------
Bob | 27
Alice | 23
#### Inline Markdown within tables
| Italics | Bold | Code |
| -------- | -------- | ------ |
| *italics* | **bold** | `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
* Fruit
* Apple
* Orange
* Banana
* Dairy
* Milk
* Cheese
## 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.

View File

@ -1,149 +0,0 @@
+++
author = "Hugo Authors"
title = "Guia de Sintaxe Markdown"
date = "2019-03-11"
description = "Artigo de exemplo mostrando a sintaxe básica Markdown e a formatação de elementos HTML."
tags = [
"markdown",
"css",
"html",
]
categories = [
"temas",
"sintaxe",
]
series = ["Guia do Thema"]
aliases = ["migrate-from-jekyl"]
+++
Esse artigo é um exemplo básico para mostrar a sintaxe Markdown que é usada nos arquivos de conteúdo do Hugo. Ele também mostrar como cada elemento básico HTML é estilizado com CSS com os temas do Hugo.
<!--more-->
## Cabeçalhos
Os seguintes elementos HTML `<h1>`—`<h6>` representam 6 níveis de cabeçalhos de seção. `<h1>` é para seções de nível mais alto enquanto `<h6>` é para o nível mais baixo.
# H1
## H2
### H3
#### H4
##### H5
###### H6
## Parágrafo
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.
## Citações
O elemento de citações representa um conteúdo citado de outra origem, opcionalmente com atribuição que deve estar contida em um elemento `footer` ou `cite`, e também opcionalmente com informações in-line como anotações e abreviações.
#### Citações sem atribuição
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use *Markdown syntax* within a blockquote.
#### Citações com atribuição
> Não comunique compartilhando memória, compartilhe memória comunicando.<br>
> — <cite>Rob Pike[^1]</cite>
[^1]: A citação acima foi extraída da [apresentação](https://www.youtube.com/watch?v=PAAkCSZUG1c) do Rob Pike durante a Gopherfest, de 18 de Novembro de 2015.
## Tabelas
Tabelas não fazem parte do cerne da especificação do Markdown, mas o Hugo oferece suporte a elas.
Nome | Idade
--------|-------
Bob | 27
Alice | 23
#### Tabelas com Markdown inline
| Italics | Bold | Code |
| -------- | -------- | ------ |
| *italics* | **bold** | `code` |
## Blocos de código
#### Blocos de código com crase
```html
<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>Exemplo de Documento HTML5</title>
</head>
<body>
<p>Teste</p>
</body>
</html>
```
#### Blocos de código com quatro espaços
<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>Exemplo de Documento HTML5</title>
</head>
<body>
<p>Teste</p>
</body>
</html>
#### Blocos de código com highlight shortcode interno do Hugo
{{< highlight html >}}
<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>Exemplo de Documento HTML5</title>
</head>
<body>
<p>Teste</p>
</body>
</html>
{{< /highlight >}}
## Tipos de Listas
#### Listas Ordenada
1. Primeiro item
2. Segundo item
3. Terceiro item
#### Listas não Ordenada
* Um item
* Outro item
* Algum outro item
#### Listas aninhadas
* Frutas
* Maçã
* Laranja
* Banana
* Laticínios
* Leite
* Queijo
## Outros Elementos — abbr, sub, sup, kbd, mark
<abbr title="Graphics Interchange Format">GIF</abbr> é um formato de imagem bitmap.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Aperte <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> para fechar.
A maioria das <mark>salamandras</mark> são noturnas e caçam insetos, vermes, e outras criaturas pequenas.

View File

@ -1,49 +0,0 @@
---
author: Hugo Authors
title: Math Typesetting
date: 2019-03-08
description: A brief guide to setup KaTeX
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:
```bash
{{ 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.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
{{ end }}
{{</ math.inline >}}
### Examples
{{< math.inline >}}
<p>
Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)
</p>
{{</ math.inline >}}
Block math:
$$
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
$$

View File

@ -1,49 +0,0 @@
---
author: Hugo Authors
title: Configuração de Equações Matemáticas
date: 2019-03-08
description: Um guia rápido sobre utilizar KaTeX
math: true
---
Em um projeto Hugo as Notações Matemáticas podem ser usadas com a ajuda de bibliotecas JavaScript de terceiros.
<!--more-->
Nesse exemplo usaremos o [KaTeX](https://katex.org/).
- Crie um partial template em `/layouts/partials/math.html`
- Dentro, utilize o [Auto-render Extension](https://katex.org/docs/autorender.html) ou sirva os scripts localmente.
- Inclua o partial nos seus templates da seguinte forma:
```bash
{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ end }}
```
- Para ativar o KaTex globalmente defina o parâmetro `math` como `true` na confgiuração do projeto
- Para ativar o KaTex em páginas específicas inclua o parâmetro `math: true` nos arquivos de conteúdo
**Nota:** Use a referência online [Supported TeX Functions](https://katex.org/docs/supported.html) como base para criar notações matemáticas.
{{< math.inline >}}
{{ if or .Page.Params.math .Site.Params.math }}
<!-- KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
{{ end }}
{{</ math.inline >}}
### Examples
{{< math.inline >}}
<p>
Notação inline: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)
</p>
{{</ math.inline >}}
Notação em bloco:
$$
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
$$

View File

@ -1,33 +0,0 @@
+++
date = "2022-07-25"
title = "Mermaid JS support"
description = "The post demonstrates Mermaid JS support"
series = ["Theme", "Hugo"]
+++
If you want to use [Mermaid-JS](https://mermaid-js.github.io/mermaid/#/) on your website.
Provide `mermaid` as [Shortcode](https://gohugo.io/content-management/shortcodes/#readout) in your markdown file.
{{<mermaid>}}
flowchart LR
A --> B
B --> C
C --> D
D --> B
{{</mermaid>}}
{{<mermaid>}}
sequenceDiagram
participant Alice
participant Bob
Alice->>Bob: Hi Bob
Bob->>Alice: Hi Alice
{{</mermaid>}}
Find more example on [Mermaid-JS](https://mermaid-js.github.io/mermaid/#/) website.

View File

@ -1,43 +0,0 @@
+++
author = "Hugo Authors"
title = "More Rich Content"
date = "2019-03-09"
description = "A brief description about Hugo Coder's Custom Shortcodes"
tags = [
"shortcodes"
]
+++
Hugo Coder provides some Custom Shortcodes.
<!--more-->
---
## Shortcodes Avisos
{{< notice note >}}
One note here.
{{< /notice >}}
{{< notice tip >}}
I'm giving a tip about something.
{{< /notice >}}
{{< notice example >}}
This is an example.
{{< /notice >}}
{{< notice question >}}
Is this a question?
{{< /notice >}}
{{< notice info >}}
Notice that this box contain information.
{{< /notice >}}
{{< notice warning >}}
This is the last warning!
{{< /notice >}}
{{< notice error >}}
There is an error in your code.
{{< /notice >}}

View File

@ -1,43 +0,0 @@
+++
author = "Hugo Authors"
title = "Mais Conteúdo Rico"
date = "2019-03-09"
description = "Uma breve descrição sobre Shortcodes customizados do Hugo Coder"
tags = [
"shortcodes"
]
+++
O Hugo Coder proporciona alguns Shortcodes Customizados.
<!--more-->
---
## Shortcodes Avisos
{{< notice note >}}
Uma nota aqui.
{{< /notice >}}
{{< notice tip >}}
Estou lhe dando uma dica.
{{< /notice >}}
{{< notice example >}}
Isso é um exemplo.
{{< /notice >}}
{{< notice question >}}
Isso é um pergunta?
{{< /notice >}}
{{< notice info >}}
Note que essa caixa contém informações.
{{< /notice >}}
{{< notice warning >}}
Este é o último aviso!
{{< /notice >}}
{{< notice error >}}
Há um erro no seu código.
{{< /notice >}}

View File

@ -1,45 +0,0 @@
+++
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 >}}

View File

@ -1,45 +0,0 @@
+++
author = "Hugo Authors"
title = "Texto de Exemplo"
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 >}}

View File

@ -1,34 +0,0 @@
+++
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-hugos-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-->
---
## YouTube Privacy Enhanced Shortcode
{{< youtube ZJthWmvUzzc >}}
<br>
---
## Twitter Simple Shortcode
{{< twitter_simple 1085870671291310081 >}}
<br>
---
## Vimeo Simple Shortcode
{{< vimeo_simple 48912912 >}}

View File

@ -1,34 +0,0 @@
+++
author = "Hugo Authors"
title = "Conteúdo Rico"
date = "2019-03-10"
description = "Uma breve descrição sobre Shortcodes do Hugo"
tags = [
"shortcodes",
"privacy",
]
+++
O Hugo vem com vários [Shortcodes Internos](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) para conteúdo rico, assim como uma [Configuração de Privacidade](https://gohugo.io/about/hugo-and-gdpr/) e uma gama de Shortcodes simples que permitem embutir versões estáticas e sem JS de várias de redes sociais.
<!--more-->
---
## Shortcode do YouTube com privacidade melhorada
{{< youtube ZJthWmvUzzc >}}
<br>
---
## Shortcode simples do Twitter
{{< twitter_simple 1085870671291310081 >}}
<br>
---
## Shortcode simples do Vimeo
{{< vimeo_simple 48912912 >}}

View File

@ -1,6 +0,0 @@
+++
title = "Projects"
slug = "projects"
+++
Nothing to see here... Move along!

View File

@ -1,6 +0,0 @@
+++
title = "Projetos"
slug = "projects"
+++
Nada para ver aqui.. Circulando!

Binary file not shown.

Before

Width:  |  Height:  |  Size: 406 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 B

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="32px" height="32px" viewBox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve">
<g>
<rect x="4.686" y="4.686" transform="matrix(0.7071 0.7071 -0.7071 0.7071 16 -6.6274)" fill="#000000" width="22.627" height="22.627"/>
<polygon fill="#FFFFFF" points="29.403,16 21.874,23.529 21.874,20.472 26.346,16 21.874,11.528 21.874,8.471 "/>
<polygon fill="#FFFFFF" points="19.811,9.464 19.811,14.71 12.166,14.71 12.166,9.488 16,5.654 "/>
<polygon fill="#FFFFFF" points="19.811,16.492 19.811,22.535 16,26.346 12.166,22.512 12.166,16.492 "/>
<polygon fill="#FFFFFF" points="10.126,11.528 5.654,16 10.126,20.472 10.126,23.529 2.597,16 10.126,8.471 "/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="1000px" height="1000px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<path d="M500,167.46L167.46,500L500,832.54L832.54,500L500,167.46z M500,712.33l-78.95-78.95V518.41h157.91v114.96L500,712.33z
M578.96,481.59H421.05V366.62L500,287.67l78.96,78.96V481.59z M378.91,345.12v63.64L287.67,500l91.24,91.24v63.64L224.029,500
L378.91,345.12z M621.59,590.74L712.33,500l-90.74-90.74v-63.64L775.97,500L621.59,654.38V590.74z"/>
</svg>

Before

Width:  |  Height:  |  Size: 830 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,43 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="1000px" height="1000px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<path d="M163.797,388.66L52.457,500l111.34,111.34L275.137,500L163.797,388.66z M123.254,469.451L92.705,500l30.549,30.549v21.308
L71.396,500l51.857-51.856V469.451z M190.234,544.654l-26.438,26.438l-26.436-26.435v-38.493h52.873V544.654z M190.234,493.836
h-52.873v-38.493l26.436-26.435l26.438,26.438V493.836z M204.506,530.381L234.889,500l-30.383-30.381v-21.308L256.197,500
l-51.691,51.689V530.381z"/>
<g>
<g>
<path d="M321.498,458.552v28.811h30.41v-28.811h13.125v71.919h-13.125v-31.691h-30.41v31.691h-13.125v-71.919H321.498z"/>
<path d="M393.096,458.552v41.935c0,14.085,5.869,20.595,14.727,20.595c9.496,0,15.152-6.51,15.152-20.595v-41.935h13.123v41.081
c0,22.194-11.416,32.012-28.703,32.012c-16.646,0-27.422-9.283-27.422-31.905v-41.188H393.096z"/>
<path d="M508.766,527.163c-4.588,1.707-13.551,4.055-23.154,4.055c-12.166,0-21.342-3.095-28.17-9.604
c-6.402-6.082-10.139-15.579-10.031-26.463c0-22.729,16.219-37.347,40.016-37.347c8.855,0,15.791,1.813,19.1,3.415l-2.881,10.563
c-3.947-1.708-8.75-3.095-16.326-3.095c-15.365,0-26.143,9.07-26.143,25.822c0,16.326,10.029,26.036,24.969,26.036
c4.695,0,8.217-0.64,9.924-1.493v-17.927h-12.697v-10.351h25.395V527.163z"/>
<path d="M586.021,493.765c0,24.115-14.619,37.88-34.467,37.88c-20.273,0-33.078-15.473-33.078-36.6
c0-22.088,13.871-37.667,34.146-37.667C573.643,457.378,586.021,473.276,586.021,493.765z M532.348,494.831
c0,14.619,7.363,26.25,19.955,26.25c12.697,0,19.846-11.738,19.846-26.783c0-13.552-6.723-26.355-19.846-26.355
C539.283,467.942,532.348,479.999,532.348,494.831z"/>
<path d="M621.555,497.499v9.07h-27.211v-9.07H621.555z"/>
<path d="M685.254,528.337c-3.094,1.601-9.924,3.201-18.566,3.201c-22.834,0-36.705-14.299-36.705-36.174
c0-23.688,16.432-37.986,38.412-37.986c8.645,0,14.832,1.814,17.5,3.201l-2.881,10.457c-3.414-1.494-8.109-2.774-14.084-2.774
c-14.619,0-25.184,9.177-25.184,26.463c0,15.792,9.283,25.93,25.076,25.93c5.336,0,10.883-1.067,14.299-2.668L685.254,528.337z"/>
<path d="M757.498,493.765c0,24.115-14.619,37.88-34.467,37.88c-20.273,0-33.078-15.473-33.078-36.6
c0-22.088,13.871-37.667,34.146-37.667C745.119,457.378,757.498,473.276,757.498,493.765z M703.824,494.831
c0,14.619,7.363,26.25,19.955,26.25c12.697,0,19.846-11.738,19.846-26.783c0-13.552-6.723-26.355-19.846-26.355
C710.76,467.942,703.824,479.999,703.824,494.831z"/>
<path d="M768.809,459.513c5.762-0.961,13.125-1.494,20.914-1.494c13.445,0,22.729,2.773,29.344,8.322
c6.936,5.656,11.205,14.191,11.205,26.463c0,12.805-4.375,22.408-11.205,28.597c-7.148,6.51-18.566,9.817-32.545,9.817
c-7.682,0-13.445-0.427-17.713-0.961V459.513z M781.934,520.44c1.814,0.32,4.588,0.32,7.256,0.32
c17.072,0.106,27.209-9.283,27.209-27.529c0.107-15.9-9.068-24.97-25.502-24.97c-4.162,0-7.148,0.32-8.963,0.747V520.44z"/>
<path d="M881.918,498.565h-27.102v21.128h30.303v10.777h-43.428v-71.919h41.828v10.777h-28.703v18.566h27.102V498.565z"/>
<path d="M896.645,459.513c4.908-0.854,12.271-1.494,19.848-1.494c10.35,0,17.393,1.707,22.195,5.762
c3.947,3.308,6.188,8.322,6.188,14.405c0,9.283-6.295,15.579-13.018,18.032v0.32c5.121,1.922,8.217,6.937,10.029,13.872
c2.242,8.963,4.162,17.286,5.656,20.061h-13.551c-1.068-2.134-2.775-8.003-4.803-16.966c-2.027-9.391-5.441-12.378-12.91-12.592
h-6.617v29.558h-13.018V459.513z M909.662,491.31h7.791c8.855,0,14.404-4.694,14.404-11.844c0-7.896-5.549-11.523-14.086-11.523
c-4.16,0-6.828,0.319-8.109,0.64V491.31z"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

View File

@ -1,44 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="1000px" height="1000px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<path d="M500,209.999L285.653,424.347L500,638.692l214.347-214.346L500,209.999z M500,561.208l-50.89-50.889v-74.105h101.785v74.1
L500,561.208z M550.896,412.479H449.11v-74.105L500,287.483l50.896,50.896V412.479z M421.948,324.515v41.021l-58.811,58.811
l58.811,58.811v41.021l-99.832-99.832L421.948,324.515z M578.374,482.835l58.488-58.488l-58.488-58.488v-41.021l99.509,99.51
l-99.509,99.51V482.835z"/>
<g>
<g>
<path d="M160.496,709.028v31.916h33.688v-31.916h14.542v79.674h-14.542v-35.109h-33.688v35.109h-14.541v-79.674H160.496z"/>
<path d="M239.816,709.028v46.455c0,15.605,6.501,22.818,16.313,22.818c10.521,0,16.786-7.213,16.786-22.818v-46.455h14.537v45.512
c0,24.586-12.646,35.461-31.797,35.461c-18.442,0-30.379-10.281-30.379-35.344v-45.629H239.816z"/>
<path d="M367.957,785.036c-5.081,1.893-15.012,4.494-25.651,4.494c-13.477,0-23.643-3.43-31.206-10.639
c-7.093-6.738-11.233-17.26-11.113-29.318c0-25.178,17.968-41.373,44.328-41.373c9.813,0,17.495,2.012,21.161,3.783l-3.191,11.703
c-4.376-1.891-9.693-3.43-18.088-3.43c-17.021,0-28.96,10.051-28.96,28.607c0,18.088,11.109,28.844,27.661,28.844
c5.2,0,9.1-0.709,10.992-1.654v-19.861h-14.066v-11.467h28.134V785.036z"/>
<path d="M453.54,748.038c0,26.717-16.194,41.963-38.179,41.963c-22.463,0-36.646-17.139-36.646-40.547
c0-24.467,15.366-41.725,37.827-41.725C439.828,707.729,453.54,725.343,453.54,748.038z M394.082,749.22
c0,16.195,8.154,29.082,22.105,29.082c14.064,0,21.987-13.008,21.987-29.672c0-15.016-7.448-29.199-21.987-29.199
C401.765,719.431,394.082,732.79,394.082,749.22z"/>
<path d="M492.905,752.175v10.047h-30.144v-10.047H492.905z"/>
<path d="M563.474,786.339c-3.429,1.773-10.992,3.547-20.565,3.547c-25.301,0-40.666-15.844-40.666-40.076
c0-26.24,18.203-42.08,42.557-42.08c9.571,0,16.43,2.008,19.387,3.545l-3.192,11.584c-3.785-1.654-8.985-3.074-15.604-3.074
c-16.197,0-27.896,10.168-27.896,29.316c0,17.496,10.283,28.727,27.776,28.727c5.914,0,12.061-1.184,15.841-2.957L563.474,786.339
z"/>
<path d="M643.507,748.038c0,26.717-16.196,41.963-38.182,41.963c-22.461,0-36.644-17.139-36.644-40.547
c0-24.467,15.366-41.725,37.827-41.725C629.795,707.729,643.507,725.343,643.507,748.038z M584.048,749.22
c0,16.195,8.155,29.082,22.104,29.082c14.066,0,21.986-13.008,21.986-29.672c0-15.016-7.447-29.199-21.986-29.199
C591.73,719.431,584.048,732.79,584.048,749.22z"/>
<path d="M656.039,710.091c6.382-1.063,14.539-1.652,23.17-1.652c14.892,0,25.179,3.072,32.505,9.221
c7.685,6.264,12.413,15.721,12.413,29.313c0,14.188-4.848,24.826-12.413,31.68c-7.92,7.213-20.565,10.879-36.054,10.879
c-8.512,0-14.893-0.475-19.621-1.068V710.091z M670.578,777.589c2.008,0.357,5.082,0.357,8.039,0.357
c18.912,0.115,30.143-10.285,30.143-30.5c0.119-17.613-10.049-27.662-28.252-27.662c-4.61,0-7.922,0.355-9.93,0.828V777.589z"/>
<path d="M781.344,753.356H751.32v23.406h33.57v11.939h-48.113v-79.674h46.338v11.938H751.32v20.57h30.023V753.356z"/>
<path d="M797.658,710.091c5.438-0.943,13.593-1.652,21.986-1.652c11.467,0,19.268,1.889,24.588,6.383
c4.373,3.662,6.857,9.219,6.857,15.959c0,10.281-6.978,17.258-14.422,19.977v0.354c5.673,2.129,9.102,7.686,11.11,15.367
c2.482,9.932,4.61,19.152,6.267,22.225h-15.014c-1.182-2.363-3.072-8.867-5.319-18.797c-2.245-10.402-6.029-13.713-14.304-13.947
h-7.328v32.744h-14.422V710.091z M812.08,745.317h8.629c9.811,0,15.959-5.199,15.959-13.121c0-8.748-6.148-12.766-15.604-12.766
c-4.61,0-7.567,0.354-8.983,0.709V745.317z"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

View File

@ -1,7 +1,3 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
{{ .Text | safeHTML }}
<a class="heading-link" href="#{{ .Anchor | safeURL }}">
<i class="fa fa-link" aria-hidden="true" title="{{ i18n "link_to_heading" | default "Link to heading" }}"></i>
<span class="sr-only">{{ i18n "link_to_heading" | default "Link to heading" }}</span>
</a>
</h{{ .Level }}>

View File

@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" }} class="external-link" target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>

View File

@ -1,9 +1,10 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{ partial "head.html" . }}
</head>
<head>
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{ partial "head.html" . }}
</head>
{{ $csClass := "colorscheme-light" }}
{{ if eq .Site.Params.colorScheme "dark" }}
@ -12,7 +13,7 @@
{{ $csClass = "colorscheme-auto" }}
{{ end }}
<body class="preload-transitions {{ $csClass }}{{ if .Site.Params.rtl }} rtl{{ end }}">
<body class="preload-transitions">
{{ partial "float" . }}
<main class="wrapper">
{{ partial "header.html" . }}
@ -25,12 +26,13 @@
</main>
{{ if .HasShortcode "mermaid" }}
<script src="https://cdn.jsdelivr.net/npm/mermaid@9.1.5/dist/mermaid.min.js" integrity="sha256-RqbL4xBKYq/iP+616ZrXdmaNyCuRX1mW7wjsHPfa8uY=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@9.3.0/dist/mermaid.min.js"
integrity="sha256-QdTG1YTLLTwD3b95jLqFxpQX9uYuJMNAtVZgwKX4oYU=" crossorigin="anonymous"></script>
<script>
mermaid.initialize({ startOnLoad: true });
</script>
{{ end }}
<!--
{{ if .Site.IsServer }}
{{ $script := resources.Get "js/coder.js" }}
<script src="{{ $script.RelPermalink }}"></script>
@ -38,7 +40,7 @@
{{ $script := resources.Get "js/coder.js" | minify | fingerprint }}
<script src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
{{ end }}
--->
{{ range .Site.Params.customJS }}
{{ if $.Site.IsServer }}
{{ $script := resources.Get . }}
@ -49,6 +51,17 @@
{{ end }}
{{ end }}
{{ range .Site.Params.customRemoteJS }}
{{ if $.Site.IsServer }}
{{ $script := resources.GetRemote . }}
<script src="{{ $script.RelPermalink }}"></script>
{{ else }}
{{ $script := resources.GetRemote . | minify | fingerprint }}
<script src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
{{ end }}
{{ end }}
{{ template "_internal/google_analytics.html" . }}
{{ if and .Site.Params.fathomAnalytics .Site.Params.fathomAnalytics.siteID }}
@ -67,6 +80,10 @@
{{- partial "analytics/cloudflare" . -}}
{{ end }}
{{ if and .Site.Params.wideAngleAnalytics .Site.Params.wideAngleAnalytics.siteID }}
{{- partial "analytics/wideangle" . -}}
{{ end }}
{{ if and .Site.Params.matomo .Site.Params.matomo.serverURL }}
{{- partial "analytics/matomo" . -}}
{{ end }}
@ -76,10 +93,22 @@
{{ end }}
{{ if and .Site.Params.applicationInsights .Site.Params.applicationInsights.connectionString }}
{{- partial "analytics/applicationinsights" . -}}
{{- partial "analytics/applicationinsights" . -}}
{{ end }}
{{ if and .Site.Params.microAnalytics .Site.Params.microAnalytics.id }}
{{- partial "analytics/microanalyticsio" . -}}
{{ end }}
{{ if and .Site.Params.yandexMetrika .Site.Params.yandexMetrika.id }}
{{- partial "analytics/yandex-metrika" . -}}
{{ end }}
{{ if and .Site.Params.umami .Site.Params.umami.siteID }}
{{- partial "analytics/umami" . -}}
{{ end }}
{{- partial "body/extensions" . -}}
</body>
</html>
</html>

View File

@ -3,7 +3,7 @@
{{- i18n .Data.Plural 1 | title -}}
{{- print ": " -}}
{{- end -}}
{{- i18n (lower .Title) | default .Title | title }} - {{ .Site.Title -}}
{{- i18n (lower .Title) | default .Title | title }} &#45; {{ .Site.Title -}}
{{ end }}
{{ define "content" }}
{{ partial "list.html" . }}

View File

@ -1,5 +1,5 @@
{{ define "title" }}
{{ .Title }} - {{ .Site.Title }}
{{ .Title }} &#45; {{ .Site.Title }}
{{ end }}
{{ define "content" }}
{{ partial "page.html" . }}

View File

@ -3,7 +3,7 @@
{{- i18n .Data.Plural | title -}}
{{- print ": " -}}
{{- end -}}
{{- i18n (lower .Title) | default .Title | title }} - {{ .Site.Title -}}
{{- i18n (lower .Title) | default .Title | title }} &#45; {{ .Site.Title -}}
{{ end }}
{{ define "content" }}
{{ partial "terms.html" . }}

View File

@ -0,0 +1,8 @@
<script
async
defer
data-host="https://microanalytics.io"
data-dnt="{{ .Site.Params.microAnalytics.dnt | default "true" }}"
src="https://microanalytics.io/js/script.js"
id="{{ .Site.Params.microAnalytics.id }}">
</script>

View File

@ -1 +1 @@
<script async defer data-domain="{{ .Site.Params.plausibleAnalytics.domain }}" src="https://{{ .Site.Params.plausibleAnalytics.serverURL | default "plausible.io" }}/js/plausible.js"></script>
<script async defer data-domain="{{ .Site.Params.plausibleAnalytics.domain }}" src="https://{{ .Site.Params.plausibleAnalytics.serverURL | default "plausible.io" }}/js/script{{if .Site.Params.plausibleAnalytics.fileDownloadsTracking}}.file-downloads{{end}}{{if .Site.Params.plausibleAnalytics.outboundLinksTracking}}.outbound-links{{end}}.js"></script>

View File

@ -0,0 +1,4 @@
<!-- Umami Analytics START -->
<script async defer data-website-id="{{ .Site.Params.umami.siteID }}"
src="{{ .Site.Params.umami.serverURL }}/umami.js"></script>
<!-- Umami Analytics END -->

View File

@ -0,0 +1,5 @@
<script async defer
src='https://{{ .Site.Params.wideAngleAnalytics.serverURL | default "stats.wideangle.co" }}/script/{{ .Site.Params.wideAngleAnalytics.siteID}}.js'
data-waa-fingerprint='{{ .Site.Params.wideAngleAnalytics.fingerprint | default "false" }}'
data-waa-dnt-supress='{{ .Site.Params.wideAngleAnalytics.supressDNT | default "false" }}'>
</script>

View File

@ -0,0 +1,14 @@
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym({{ $.Site.Params.yandexMetrika.id }}, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/{{ $.Site.Params.yandexMetrika.id }}" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->

View File

@ -5,10 +5,10 @@
{{ end }}
©{{now.Year }}
{{ with .Site.Params.copyright }} {{ . }} {{ end }}
·
&#124;
{{ if (and .Site.Params.license) }}
{{ i18n "licensed_under" }} {{ .Site.Params.license | safeHTML }}
·
&#124;
{{ end }}
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
{{ if (and .Site.Params.commit .GitInfo) }}

View File

@ -1,24 +1,11 @@
{{ partial "head/meta-tags.html" . }}
{{ if .Permalink }}
<link rel="canonical" href="{{ .Permalink }}">
{{ end }}
{{ partialCached "head/custom-icons.html" . }}
{{ partial "head/meta-tags.html" . }}
{{ partialCached "head/theme-styles.html" . }}
{{ partialCached "head/color-scheme.html" . }}
{{ partialCached "head/custom-styles.html" . }}
{{ partialCached "head/custom-icons.html" . }}
{{ partial "head/alternative-output-formats.html" . }}
{{ partialCached "head/hugo-generator.html" . }}
{{ partial "head/extensions.html" . }}
{{ range .Site.Params.snow}}
<script src="{{ . | absURL }}"></script>
{{- end }}
{{ partial "head/extensions.html" . }}

View File

@ -1,7 +1,5 @@
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | relURL }}" sizes="32x32">
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | relURL }}" sizes="16x16">
<link rel="icon" type="image/webp" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | relURL }}" sizes="32x32">
<link rel="icon" type="image/webp" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | relURL }}" sizes="16x16">
<link rel="apple-touch-icon" href="{{ .Site.Params.touchicon | default "/images/apple-touch-icon.png" | relURL }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.Params.touchicon | default "/images/apple-touch-icon.png" | relURL }}">
<link rel="mask-icon" href="{{ .Site.Params.mask_icon | default "/images/safari-pinned-tab.svg" | relURL }}" color="{{ .Site.Params.mask_icon_color | default "#383C4A" }}">

View File

@ -1,4 +1,12 @@
{{/*
You can add further theme extensions or customizations here if they should
appear in <head>.
*/}}
<link rel="preconnect" href="//cdn.jsdelivr.net" />
<link rel="preconnect" href="//widget.time.is" />
<link rel="preconnect" href="//fonts.bunny.net" />
<link rel="preconnect" href="//cdn.satki.net" />
<p hidden>
<a rel="me" href="{{ .Site.Params.mastodon }}">Mastodon</a>
<a rel="me" href="{{ .Site.Params.backupmastodon }}">Mastodon</a>
<a rel="me" href="{{ .Site.Params.pronounspage }}">Pronouns.page</a>
</p>
{{ if not .Site.Params.hidesnow }}
<script src="https://cdn.satki.net/static/js/winter.js"></script>
{{ end }}

View File

@ -1,19 +1,13 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="light dark">
{{ if .Site.Params.csp }}
{{ partial "csp.html" . }}
{{ end }}
{{ with .Site.Params.author }}
<meta name="author" content="{{ . }}">{{ end }}
<meta name="description" content="{{ .Description | default (.Summary | default .Site.Params.description ) }}">
<meta name="keywords" content="{{ (delimit .Keywords " ,") | default .Site.Params.keywords }}">
<meta property="og:image" content="{{ .Site.Params.ogimage }}">
<meta name="twitter:image" content="{{ .Site.Params.ogimage }}">
<element hidden>
<a rel="me" href="{{ .Site.Params.mastodon }}">Mastodon</a>
</element>
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }}

View File

@ -1,5 +1,4 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous">
<link rel=" stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome/css/fork-awesome.min.css" crossorigin="anonymous">
{{ if .Site.IsServer }}
{{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}
{{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts }}
@ -9,7 +8,6 @@
{{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts | minify | fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
{{ end }}
{{ if .Site.Params.rtl }}
{{ if .Site.IsServer }}
{{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" "enableSourceMap" true ) }}

View File

@ -1,11 +1,8 @@
<nav class="navigation">
<section class="title-container">
<a class="navigation-title" href="{{ .Site.BaseURL | relLangURL }}">
{{ .Site.Title }}
</a>
{{ if or .Site.Menus.main .Site.IsMultiLingual }}
<input type="checkbox" id="menu-toggle" />
<label class="menu-button float-right" for="menu-toggle">
<label class="menu-button" for="menu-toggle">
<i class="fa fa-bars fa-fw" aria-hidden="true"></i>
</label>
<ul class="navigation-list">
@ -36,4 +33,4 @@
</ul>
{{ end }}
</section>
</nav>
</nav>

View File

@ -1,6 +1,6 @@
<h1>{{ .Site.Params.author }}</h1>
<h1 class="name">{{ .Site.Params.author }}</h1>
{{ if reflect.IsSlice .Site.Params.info }}
<h2>{{ range .Site.Params.info }}{{ . | markdownify }}<br>{{ end}}</h2>
{{ else }}
<h2>{{ .Site.Params.info | markdownify }} </h2>
{{ end }}
{{ end }}

View File

@ -1,13 +1,15 @@
<section class="container list">
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{- if eq .Kind "term" -}}
{{- i18n .Data.Plural 1 | title -}}
{{- print ": " -}}
{{- end -}}
{{- i18n (lower .Title) | default .Title | title -}}
</a>
</h1>
<header>
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{- if eq .Kind "term" -}}
{{- i18n .Data.Plural 1 | title -}}
{{- print ": " -}}
{{- end -}}
{{- i18n (lower .Title) | default .Title | title -}}
</a>
</h1>
</header>
{{ .Content }}
<ul>
{{ range .Paginator.Pages }}

View File

@ -1,3 +1,26 @@
{{- if and (not (eq (.Site.DisqusShortname | default "") "")) (eq (.Params.disableComments | default false) false) -}}
{{ template "_internal/disqus.html" . }}
{{- end -}}
<div id="disqus_thread"></div>
<script>
window.disqus_config = function () {
{{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}}
{{with .Params.disqus_title }}this.page.title = '{{ . }}';{{end}}
{{with .Params.disqus_url }}this.page.url = '{{ . | html }}';{{end}}
};
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
return;
}
var d = document, s = d.createElement('script'); s.async = true;
s.src = '//' + {{ .Site.DisqusShortname }} + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
// Disqus theme switching
document.addEventListener('themeChanged', function (e) {
if (document.readyState == 'complete') {
DISQUS.reset({ reload: true, config: disqus_config });
}
});
</script>
{{- end -}}

View File

@ -0,0 +1,29 @@
{{- if isset .Site.Params "giscus" -}}
{{- if and (isset .Site.Params.giscus "repo") (not (eq .Site.Params.giscus.repo "" )) (eq (.Params.disableComments | default false) false) -}}
<div class="comments">
<script>
let getTheme = window.localStorage && window.localStorage.getItem("colorscheme");
getTheme = getTheme == null ? '{{$.Site.Params.giscus.theme}}' : getTheme;
let s = document.createElement('script');
s.src = 'https://giscus.app/client.js';
s.setAttribute('data-repo', '{{ .Site.Params.giscus.repo }}');
s.setAttribute('data-repo-id', '{{ .Site.Params.giscus.repoID }}');
s.setAttribute('data-category', '{{ .Site.Params.giscus.category }}');
s.setAttribute('data-category-id', '{{ .Site.Params.giscus.categoryID }}');
s.setAttribute('data-mapping', '{{ default "pathname" .Site.Params.giscus.mapping }}');
s.setAttribute('data-term', '{{ .Site.Params.giscus.term }}');
s.setAttribute('data-strict', '{{ default "0" .Site.Params.giscus.strict }}');
s.setAttribute('data-reactions-enabled', '{{ default "1" .Site.Params.giscus.reactionsEnabled }}');
s.setAttribute('data-emit-metadata', '{{ default "0" .Site.Params.giscus.emitMetadata }}');
s.setAttribute('data-input-position', '{{ default "bottom" .Site.Params.giscus.inputPosition }}');
s.setAttribute('data-theme', getTheme);
s.setAttribute('data-lang', '{{ default "en" .Site.Params.giscus.lang }}');
s.setAttribute('data-loading', '{{ .Site.Params.giscus.loading }}');
s.setAttribute('crossorigin', 'anonymous');
s.setAttribute('async', '');
document.querySelector('div.comments').innerHTML = '';
document.querySelector('div.comments').appendChild(s);
</script>
</div>
{{- end -}}
{{- end -}}

View File

@ -1,11 +1,11 @@
{{- if or (.Params.math) (.Site.Params.math) (.Params.katex) (.Site.Params.katex) -}}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.css"
integrity="sha384-R4558gYOUz8mP9YWpZJjofhk+zx0AS11p36HnD2ZKj/6JR5z27gSSULCNHIRReVs" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css"
integrity="sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0" crossorigin="anonymous">
{{/* The loading of KaTeX is deferred to speed up page rendering */}}
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/katex.min.js"
integrity="sha384-z1fJDqw8ZApjGO3/unPWUPsIymfsJmyrDVWC8Tv/a1HeOtGmkwNd/7xUS0Xcnvsx" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.15.1/dist/contrib/auto-render.min.js"
integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.js"
integrity="sha384-PwRUT/YqbnEjkZO0zZxNqcxACrXe+j766U2amXcgMg5457rve2Y7I6ZJSm2A0mS4" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/contrib/auto-render.min.js"
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"
onload="renderMathInElement(document.body,
{
delimiters: [
@ -16,4 +16,4 @@
]
}
);"></script>
{{- end -}}
{{- end -}}

View File

@ -2,11 +2,8 @@
{{- if and (isset .Site.Params.utterances "repo") (not (eq .Site.Params.utterances.repo "" )) (eq (.Params.disableComments | default false) false) -}}
<div class="comments">
<script>
let getTheme = window.localStorage && window.localStorage.getItem("colorscheme");
getTheme = getTheme == null ? '{{$.Site.Params.utterances.theme}}' : getTheme;
let theme = getTheme === 'dark' ? 'github-dark' : 'github-light';
let s = document.createElement('script');
s.src = 'https://utteranc.es/client.js';
@ -17,8 +14,7 @@
s.setAttribute('async', '');
document.querySelector('div.comments').innerHTML = '';
document.querySelector('div.comments').appendChild(s);
</script>
</div>
{{- end -}}
{{- end -}}
{{- end -}}

View File

@ -4,6 +4,6 @@
{{- if gt $index 0 }}
<span class="separator"></span>
{{- end }}
<a href="{{ ( printf "authors/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- end -}}
</div>

View File

@ -4,6 +4,6 @@
{{- if gt $index 0 }}
<span class="separator"></span>
{{- end }}
<a href="{{ ( printf "categories/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- end -}}
</div>
</div>

View File

@ -5,7 +5,7 @@
<span class="separator"></span>
{{- end }}
<span class="tag">
<a href="{{ ( printf "tags/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
</span>
{{- end -}}
</div>
</div>

View File

@ -1,13 +1,15 @@
<section class="container taxonomy">
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{- if eq .Kind "term" -}}
{{- i18n .Data.Plural | title -}}
{{- print ": " -}}
{{- end -}}
{{- i18n (lower .Title) | default .Title | title -}}
</a>
</h1>
<header>
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{- if eq .Kind "term" -}}
{{- i18n .Data.Plural | title -}}
{{- print ": " -}}
{{- end -}}
{{- i18n (lower .Title) | default .Title | title -}}
</a>
</h1>
</header>
{{ .Content }}
<ul>
{{ $type := .Type }}

View File

@ -1,13 +1,15 @@
{{ define "title" }}
{{ title (i18n (lower .Title)) | default .Title }} - {{ .Site.Title }}
{{ title (i18n (lower .Title)) | default .Title }} · {{ .Site.Title }}
{{ end }}
{{ define "content" }}
<section class="container list">
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{ title (i18n (lower .Title)) | default .Title }}
</a>
</h1>
<header>
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{ title (i18n (lower .Title)) | default .Title }}
</a>
</h1>
</header>
{{ .Content }}
<ul>
{{- range .Paginator.Pages -}}

View File

@ -1,5 +1,5 @@
{{ define "title" }}
{{ .Title }} - {{ .Site.Title }}
{{ .Title }} · {{ .Site.Title }}
{{ end }}
{{ define "content" }}
<section class="container post">
@ -25,13 +25,13 @@
{{ i18n "reading_time" .ReadingTime }}
</span>
</div>
{{ with .Page.Params.Authors }}{{ partial "taxonomy/authors.html" . }}{{ end }}
{{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
{{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
{{ with .GetTerms "authors" }}{{ partial "taxonomy/authors.html" . }}{{ end }}
{{ with .GetTerms "categories" }}{{ partial "taxonomy/categories.html" . }}{{ end }}
{{ with .GetTerms "tags" }}{{ partial "taxonomy/tags.html" . }}{{ end }}
</div>
</header>
<div>
<div class="post-content">
{{ if .Params.featuredImage }}
<img src="{{ .Params.featuredImage | relURL }}" alt="Featured image"/>
{{ end }}
@ -44,6 +44,7 @@
{{ partial "posts/disqus.html" . }}
{{ partial "posts/commento.html" . }}
{{ partial "posts/utterances.html" . }}
{{ partial "posts/giscus.html" . }}
</footer>
</article>

Some files were not shown because too many files have changed in this diff Show More