From 3ec95503252645b87c625df10a8ac44d04563166 Mon Sep 17 00:00:00 2001
From: "C. Lente" <7017340+clente@users.noreply.github.com>
Date: Wed, 1 Feb 2023 15:06:05 -0300
Subject: Bring files from personal blog
---
.github/dependabot.yml | 14 ---
.github/stale.yml | 17 ----
.github/workflows/ci.yml | 2 +-
.gitignore | 1 -
.jsbeautifyrc | 27 -----
archetypes/blog.md | 13 ---
archetypes/default.md | 22 ----
assets/style.css | 219 ++++++++++++++++++++++++++++++++++++++++
layouts/_default/baseof.html | 5 +-
layouts/_default/list.html | 28 ++---
layouts/_default/single.html | 6 +-
layouts/i18n/en.toml | 26 +++++
layouts/i18n/pt.toml | 26 +++++
layouts/partials/footer.html | 6 +-
layouts/partials/header.html | 2 +-
layouts/partials/nav.html | 20 ++--
layouts/partials/style.html | 4 +
layouts/robots.txt | 3 +-
layouts/shortcodes/rawhtml.html | 2 +
package-lock.json | 183 ---------------------------------
package.json | 28 -----
21 files changed, 321 insertions(+), 333 deletions(-)
delete mode 100644 .github/dependabot.yml
delete mode 100644 .github/stale.yml
delete mode 100644 .gitignore
delete mode 100644 .jsbeautifyrc
delete mode 100644 archetypes/blog.md
delete mode 100644 archetypes/default.md
create mode 100644 assets/style.css
create mode 100644 layouts/i18n/en.toml
create mode 100644 layouts/i18n/pt.toml
create mode 100644 layouts/shortcodes/rawhtml.html
delete mode 100644 package-lock.json
delete mode 100644 package.json
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
deleted file mode 100644
index 60a68af..0000000
--- a/.github/dependabot.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-# see https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
-version: 2
-updates:
- # Maintain dependencies for GitHub Actions
- - package-ecosystem: "github-actions"
- directory: "/"
- schedule:
- interval: "daily"
-
- # Maintain dependencies for npm
- - package-ecosystem: "npm"
- directory: "/"
- schedule:
- interval: "daily"
diff --git a/.github/stale.yml b/.github/stale.yml
deleted file mode 100644
index dc90e5a..0000000
--- a/.github/stale.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# Number of days of inactivity before an issue becomes stale
-daysUntilStale: 60
-# Number of days of inactivity before a stale issue is closed
-daysUntilClose: 7
-# Issues with these labels will never be considered stale
-exemptLabels:
- - pinned
- - security
-# Label to use when marking an issue as stale
-staleLabel: wontfix
-# Comment to post when marking an issue as stale. Set to `false` to disable
-markComment: >
- This issue has been automatically marked as stale because it has not had
- recent activity. It will be closed if no further activity occurs. Thank you
- for your contributions.
-# Comment to post when closing a stale issue. Set to `false` to disable
-closeComment: false
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index bba7684..76eae43 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,7 +22,7 @@ jobs:
hugo-version: latest
- name: Build local ./exampleSite
- run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://janraasch.github.io/hugo-bearblog/
+ run: hugo --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://clente.github.io/hugo-bearcub/
- name: Deploy to GitHub Pages
if: github.event_name == 'push'
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 3c3629e..0000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
diff --git a/.jsbeautifyrc b/.jsbeautifyrc
deleted file mode 100644
index 4e39ba0..0000000
--- a/.jsbeautifyrc
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "indent_size": 2,
- "indent_char": " ",
- "indent_with_tabs": false,
- "editorconfig": false,
- "eol": "\n",
- "end_with_newline": true,
- "indent_level": 0,
- "preserve_newlines": true,
- "max_preserve_newlines": 10,
- "space_in_paren": false,
- "space_in_empty_paren": false,
- "jslint_happy": false,
- "space_after_anon_function": false,
- "space_after_named_function": false,
- "brace_style": "collapse",
- "unindent_chained_methods": false,
- "break_chained_methods": false,
- "keep_array_indentation": false,
- "unescape_strings": false,
- "wrap_line_length": 0,
- "e4x": false,
- "comma_first": false,
- "operator_position": "before-newline",
- "indent_empty_lines": false,
- "templating": ["auto"]
-}
diff --git a/archetypes/blog.md b/archetypes/blog.md
deleted file mode 100644
index e4594c6..0000000
--- a/archetypes/blog.md
+++ /dev/null
@@ -1,13 +0,0 @@
-+++
-title = "{{ replace .Name "-" " " | title }}"
-date = "{{ .Date }}"
-
-#
-# description is optional
-#
-# description = "An optional description for SEO. If not provided, an automatically created summary will be used."
-
-tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}]
-+++
-
-This is a page about »{{ replace .Name "-" " " | title }}«.
diff --git a/archetypes/default.md b/archetypes/default.md
deleted file mode 100644
index e8406b3..0000000
--- a/archetypes/default.md
+++ /dev/null
@@ -1,22 +0,0 @@
-+++
-title = "{{ replace .Name "-" " " | title }}"
-date = "{{ .Date }}"
-
-#
-# Set menu to "main" to add this page to
-# the main menu on top of the page
-#
-menu = "main"
-
-#
-# description is optional
-#
-# description = "An optional description for SEO. If not provided, an automatically created summary will be used."
-
-#
-# tags are optional
-#
-# tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}]
-+++
-
-This is a page about »{{ replace .Name "-" " " | title }}«.
diff --git a/assets/style.css b/assets/style.css
new file mode 100644
index 0000000..a1e8614
--- /dev/null
+++ b/assets/style.css
@@ -0,0 +1,219 @@
+/* Bear */
+
+body {
+ font-family: Verdana, sans-serif;
+ margin: auto;
+ padding: 20px;
+ max-width: 720px;
+ text-align: left;
+ background-color: #1d1f27;
+ word-wrap: break-word;
+ overflow-wrap: break-word;
+ line-height: 1.5;
+ color: #c9d1d9;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+strong,
+b {
+ color: #eee;
+}
+
+a {
+ color: #8cc2dd;
+}
+
+.title {
+ text-decoration: none;
+ border: 0;
+}
+
+.title span {
+ font-weight: 400;
+}
+
+nav a {
+ margin-right: 10px;
+}
+
+textarea {
+ background-color: #252525;
+ color: #ddd;
+ width: 100%;
+ font-size: 16px;
+}
+
+input {
+ background-color: #252525;
+ color: #ddd;
+ font-size: 16px;
+}
+
+content {
+ line-height: 1.6;
+}
+
+table {
+ width: 100%;
+}
+
+img {
+ max-width: 100%;
+}
+
+code {
+ padding: 2px 5px;
+}
+
+pre code {
+ display: block;
+ padding: 20px;
+ white-space: pre-wrap;
+ font-size: 14px;
+ overflow-x: auto;
+}
+
+blockquote {
+ border-left: 1px solid #999;
+ color: #ccc;
+ padding-left: 20px;
+ font-style: italic;
+}
+
+footer {
+ padding: 25px;
+ text-align: center;
+}
+
+.helptext {
+ color: #aaa;
+ font-size: small;
+}
+
+.errorlist {
+ color: #eba613;
+ font-size: small;
+}
+
+/* blog posts */
+ul.blog-posts {
+ list-style-type: none;
+ padding: unset;
+}
+
+ul.blog-posts li {
+ display: flex;
+ line-height: 2.1;
+}
+
+ul.blog-posts li span {
+ flex: 0 0 130px;
+}
+
+ul.blog-posts li a:visited {
+ color: #8b6fcb;
+}
+
+a.blog-tags {
+ line-height: 2;
+}
+
+.disabled {
+ color: currentColor;
+ cursor: not-allowed;
+ opacity: 0.5;
+}
+
+/* Chroma */
+
+/* Background */ .bg { color: #f8f8f2; background-color: #282a36; }
+/* PreWrapper */ .chroma { color: #f8f8f2; background-color: #282a36; }
+/* Other .chroma .x { } */
+/* Error .chroma .err { } */
+/* CodeLine .chroma .cl { } */
+/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
+/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
+/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
+/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
+/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #929292 }
+/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #929292 }
+/* Line */ .chroma .line { display: flex; }
+/* Keyword */ .chroma .k { color: #ff79c6 }
+/* KeywordConstant */ .chroma .kc { color: #ff79c6 }
+/* KeywordDeclaration */ .chroma .kd { color: #8be9fd; font-style: italic }
+/* KeywordNamespace */ .chroma .kn { color: #ff79c6 }
+/* KeywordPseudo */ .chroma .kp { color: #ff79c6 }
+/* KeywordReserved */ .chroma .kr { color: #ff79c6 }
+/* KeywordType */ .chroma .kt { color: #8be9fd }
+/* Name .chroma .n { } */
+/* NameAttribute */ .chroma .na { color: #50fa7b }
+/* NameBuiltin */ .chroma .nb { color: #8be9fd; font-style: italic }
+/* NameBuiltinPseudo .chroma .bp { } */
+/* NameClass */ .chroma .nc { color: #50fa7b }
+/* NameConstant .chroma .no { } */
+/* NameDecorator .chroma .nd { } */
+/* NameEntity .chroma .ni { } */
+/* NameException .chroma .ne { } */
+/* NameFunction */ .chroma .nf { color: #50fa7b }
+/* NameFunctionMagic .chroma .fm { } */
+/* NameLabel */ .chroma .nl { color: #8be9fd; font-style: italic }
+/* NameNamespace .chroma .nn { } */
+/* NameOther .chroma .nx { } */
+/* NameProperty .chroma .py { } */
+/* NameTag */ .chroma .nt { color: #ff79c6 }
+/* NameVariable */ .chroma .nv { color: #8be9fd; font-style: italic }
+/* NameVariableClass */ .chroma .vc { color: #8be9fd; font-style: italic }
+/* NameVariableGlobal */ .chroma .vg { color: #8be9fd; font-style: italic }
+/* NameVariableInstance */ .chroma .vi { color: #8be9fd; font-style: italic }
+/* NameVariableMagic .chroma .vm { } */
+/* Literal .chroma .l { } */
+/* LiteralDate .chroma .ld { } */
+/* LiteralString */ .chroma .s { color: #f1fa8c }
+/* LiteralStringAffix */ .chroma .sa { color: #f1fa8c }
+/* LiteralStringBacktick */ .chroma .sb { color: #f1fa8c }
+/* LiteralStringChar */ .chroma .sc { color: #f1fa8c }
+/* LiteralStringDelimiter */ .chroma .dl { color: #f1fa8c }
+/* LiteralStringDoc */ .chroma .sd { color: #f1fa8c }
+/* LiteralStringDouble */ .chroma .s2 { color: #f1fa8c }
+/* LiteralStringEscape */ .chroma .se { color: #f1fa8c }
+/* LiteralStringHeredoc */ .chroma .sh { color: #f1fa8c }
+/* LiteralStringInterpol */ .chroma .si { color: #f1fa8c }
+/* LiteralStringOther */ .chroma .sx { color: #f1fa8c }
+/* LiteralStringRegex */ .chroma .sr { color: #f1fa8c }
+/* LiteralStringSingle */ .chroma .s1 { color: #f1fa8c }
+/* LiteralStringSymbol */ .chroma .ss { color: #f1fa8c }
+/* LiteralNumber */ .chroma .m { color: #bd93f9 }
+/* LiteralNumberBin */ .chroma .mb { color: #bd93f9 }
+/* LiteralNumberFloat */ .chroma .mf { color: #bd93f9 }
+/* LiteralNumberHex */ .chroma .mh { color: #bd93f9 }
+/* LiteralNumberInteger */ .chroma .mi { color: #bd93f9 }
+/* LiteralNumberIntegerLong */ .chroma .il { color: #bd93f9 }
+/* LiteralNumberOct */ .chroma .mo { color: #bd93f9 }
+/* Operator */ .chroma .o { color: #ff79c6 }
+/* OperatorWord */ .chroma .ow { color: #ff79c6 }
+/* Punctuation .chroma .p { } */
+/* Comment */ .chroma .c { color: #7c90d0 }
+/* CommentHashbang */ .chroma .ch { color: #7c90d0 }
+/* CommentMultiline */ .chroma .cm { color: #7c90d0 }
+/* CommentSingle */ .chroma .c1 { color: #7c90d0 }
+/* CommentSpecial */ .chroma .cs { color: #7c90d0 }
+/* CommentPreproc */ .chroma .cp { color: #ff79c6 }
+/* CommentPreprocFile */ .chroma .cpf { color: #ff79c6 }
+/* Generic .chroma .g { } */
+/* GenericDeleted */ .chroma .gd { color: #ff5555 }
+/* GenericEmph */ .chroma .ge { text-decoration: underline }
+/* GenericError .chroma .gr { } */
+/* GenericHeading */ .chroma .gh { font-weight: bold }
+/* GenericInserted */ .chroma .gi { color: #50fa7b; font-weight: bold }
+/* GenericOutput */ .chroma .go { color: #44475a }
+/* GenericPrompt .chroma .gp { } */
+/* GenericStrong .chroma .gs { } */
+/* GenericSubheading */ .chroma .gu { font-weight: bold }
+/* GenericTraceback .chroma .gt { } */
+/* GenericUnderline */ .chroma .gl { text-decoration: underline }
+/* TextWhitespace .chroma .w { } */
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 6bce2dc..1f30b5d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -11,12 +11,13 @@
{{- partial "seo_tags.html" . -}}
+ {{ $css := resources.Get "style.css" | minify }}
+
+
{{ with .OutputFormats.Get "rss" -}}
{{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
- {{- partial "style.html" . -}}
-
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 8b8c14b..6c4f7d0 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,10 +1,10 @@
{{ define "main" }}
Filtering for "{{ .Title }}"
-
- Remove filter
-
+ {{ i18n "filter" }} "{{ .Title }}"
+
+ {{ i18n "remove" }}
+
{{ end }}
{{ range .Pages }}
@@ -16,7 +16,11 @@
- {{ .Title }}
+ {{ if .Params.link }}
+ {{ .Title }}
+ {{ else }}
+ {{ .Title }}
+ {{ end }}
{{ else }}
{{ if .Data.Singular }}
{{else}}
-
-
@@ -8,13 +8,13 @@
-{{ end }}{{ end }} +{{ end }}{{ range (.GetTerms "tags") }} - #{{ .LinkTitle }} + #{{ .LinkTitle }} {{ end }}
{{ end }} diff --git a/layouts/i18n/en.toml b/layouts/i18n/en.toml new file mode 100644 index 0000000..708eb64 --- /dev/null +++ b/layouts/i18n/en.toml @@ -0,0 +1,26 @@ +[home] + other = '/en' + +[posts] + other = '/en/posts' + +[other-lang] + other = "Português 🇧🇷" + +[other-home] + other = "/" + +[reply] + other = 'Reply to ' + +[filter] + other = 'Filtering for' + +[remove] + other = 'Remove filter' + +[stone] + other = 'Made of stone' + +[stone-link] + other = '/en/posts/stone-websites' \ No newline at end of file diff --git a/layouts/i18n/pt.toml b/layouts/i18n/pt.toml new file mode 100644 index 0000000..d2f2548 --- /dev/null +++ b/layouts/i18n/pt.toml @@ -0,0 +1,26 @@ +[home] + other = '/' + +[posts] + other = '/posts' + +[other-lang] + other = "English 🇺🇸" + +[other-home] + other = "/en" + +[reply] + other = 'Resposta a ' + +[filter] + other = 'Filtrando para' + +[remove] + other = 'Remover filtro' + +[stone] + other = 'Feito de pedra' + +[stone-link] + other = '/posts/sites-de-pedra' \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8eca955..83a3214 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1 +1,5 @@ -{{ if ne .Site.Params.hideMadeWithLine true }}Made with Hugo ʕ•ᴥ•ʔ Bear{{ end }} +{{ if ne .Site.Params.hideMadeWithLine true }} + + {{ .Site.Copyright }} | {{ i18n "stone" }} + +{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e47df70..ba8e9ec 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,4 @@ - +