diff --git a/.travis.yml b/.travis.yml
index 3274dcb..d0a3a76 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,14 +3,15 @@ language: generic
before_install:
- sudo apt-get update
- - sudo apt-get install python3
- - sudo apt-get install ruby wget graphviz
+ - sudo apt-get install python3 git
+ - sudo apt-get install ruby go jq wget graphviz
- wget "https://github.com/gohugoio/hugo/releases/download/v${HUGO_RELEASE}/hugo_extended_${HUGO_RELEASE}_Linux-64bit.deb"
- sudo dpkg -i *.deb
- sudo gem install asciidoctor asciidoctor-diagram
+ - git clone https://git.sr.ht/~sircmpwn/openring && cd openring && go build
script:
- - hugo
+ - make build
env:
global:
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5b68c71
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+.PHONY = build
+build: build-openring
+ hugo
+
+.PHONY = build-openring
+build-openring:
+ ./bin/openring-create
+
+.PHONY = serve
+serve: build-openring
+ hugo serve --buildFuture
diff --git a/README.adoc b/README.adoc
index e5fcac1..e0b3b68 100644
--- a/README.adoc
+++ b/README.adoc
@@ -1,13 +1,13 @@
= blog
-My blog.
+My blog featuring a fairly customized version of https://github.com/foo-dogsquared/hugo-theme-more-contentful/[my More Contentful Hugo theme].
== Getting started
-Though, it's obvious but hey.
+Though, it's obvious but then again, you may not remember how to do well in a year.
=== Prerequisites
@@ -16,6 +16,7 @@ Though, it's obvious but hey.
* Hugo
* https://golang.org/[Go] runtime
* https://asciidoctor.org/[Asciidoctor]
+* https://git.sr.ht/~sircmpwn/openring/[openring] (you can easily compile one yourself with the Go toolchain)
=== Setting up
diff --git a/assets/scss/extend.scss b/assets/scss/extend.scss
index 9065c06..d671a84 100644
--- a/assets/scss/extend.scss
+++ b/assets/scss/extend.scss
@@ -2,6 +2,20 @@
--accented-border-style: var(--base0C) solid 1px;
}
+// Base
+footer {
+ margin-bottom: 1.5em;
+ > * {
+ margin-top: 1em;
+ margin-bottom: 0;
+ }
+}
+
+// Layouts
+.site__socials {
+ margin-top: 1em;
+}
+
.post__meta--single {
p > span:first-child {
white-space: nowrap;
@@ -52,6 +66,10 @@ code[class*="language-"], pre[class*="language-"] {
color: var(--base00);
font-size: 0.9em;
padding: 0.5em;
+
+ &::selection {
+ background: var(--base07);
+ }
}
> *.content {
@@ -74,3 +92,11 @@ code[class*="language-"], pre[class*="language-"] {
justify-content: center;
}
}
+
+@media all and (max-width: 860px) {
+ .imageblock {
+ > .content {
+ width: 100% !important;
+ }
+ }
+}
diff --git a/assets/templates/openring-input.html b/assets/templates/openring-input.html
new file mode 100644
index 0000000..7703d12
--- /dev/null
+++ b/assets/templates/openring-input.html
@@ -0,0 +1,53 @@
+
+
+ Posts from other blogs I follow
+
+ {{range .Articles}}
+
+
{{.Title}}
+
+
+ via {{.SourceTitle}}
+
+ {{- if ne (datef "2006-01-02" .Date) "0001-01-01" }}
+ - {{.Date | datef "2006-01-02"}}
+ {{- end }}
+
+
+ {{end}}
+
+
+ Generated by
+ openring
+
+
+
diff --git a/bin/openring-create b/bin/openring-create
new file mode 100644
index 0000000..f2eba45
--- /dev/null
+++ b/bin/openring-create
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+LIMIT=5
+INPUT_TEMP="./assets/templates/openring-input.html"
+OUTPUT="./layouts/partials/openring.html"
+DATA="data/blogs.json"
+
+# Checks whether it is locally compiled or not.
+if [[ -a ./openring ]]; then
+ OPENRING="./openring/openring";
+else
+ OPENRING="openring";
+fi
+
+for feed in $(jq ".[]" "$DATA" | shuf --head-count $LIMIT); do
+ OPENRING="$OPENRING -s $feed";
+done
+
+OPENRING="$OPENRING -n $LIMIT < $INPUT_TEMP > $OUTPUT"
+
+echo "$OPENRING"
+eval $OPENRING
diff --git a/config.toml b/config.toml
index 261780f..100cd27 100644
--- a/config.toml
+++ b/config.toml
@@ -1,6 +1,7 @@
baseURL = "https://foo-dogsquared.github.io/"
languageCode = "en-us"
title = "Gabriel Arazas"
+enableGitInfo = true
summaryLength = 0
paginate = 40
copyright = """
@@ -56,7 +57,7 @@ canonifyURLs = true
[menu]
[[menu.main]]
identifier = "about"
- name = "About"
+ name = "About me"
url = "about/"
[[menu.main]]
@@ -96,3 +97,6 @@ canonifyURLs = true
[params]
mainSections = ["posts", "projects"]
toc = true
+ extraNotes = """
+ This site uses [Prism](https://prismjs.com/), [MathJax](https://www.mathjax.org/), and [GoatCounter analytics](https://foo-dogsquared.goatcounter.com/).
+ """
diff --git a/content/_index.adoc b/content/_index.adoc
index 83ce319..10dce09 100644
--- a/content/_index.adoc
+++ b/content/_index.adoc
@@ -13,7 +13,7 @@ You can see more what's my deal on xref:about.adoc[another page] because I want
Welcome to my small home on the deepest corners of the internet, by the way.
Have a seat and take a look in my digital cavern.
-.Here's my first productive digital art painting.
+.Here's my first productive digital art painting placeholder created with Krita.
image::pp.webp[width=60%]
{{< links >}}
diff --git a/data/blogs.json b/data/blogs.json
new file mode 100644
index 0000000..b7a70e3
--- /dev/null
+++ b/data/blogs.json
@@ -0,0 +1,15 @@
+[
+ "https://alex-hhh.github.io/feeds/all.rss.xml",
+ "https://blog.yoshuawuyts.com/rss.xml",
+ "https://brettgilio.com/rss.xml",
+ "http://distill.pub/rss.xml",
+ "https://drewdevault.com/feed.xml",
+ "https://emersion.fr/blog/rss.xml",
+ "https://fasterthanli.me/index.xml",
+ "https://guix.gnu.org/feeds/blog.atom",
+ "https://kde.org/announcements/index.xml",
+ "https://ma.ttias.be/cronweekly/index.xml",
+ "https://protesilaos.com/codelog.xml",
+ "https://sachachua.com/blog/feed/",
+ "https://www.malloc47.com/rss.xml"
+]
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..0a10091
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,14 @@
+
+
+ {{- partial "head.html" . -}}
+
+ {{- partial "components/theme-button.html" . }}
+ {{- partial "header.html" . -}}
+ {{- block "main" . }}{{- end }}
+ {{- partial "footer.html" . -}}
+ {{- if hugo.IsProduction -}}
+
+ {{- end }}
+
+
+
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 9d1344d..1703686 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -4,10 +4,10 @@
- {{ partial "partials/components/post-meta.html" . }}
+ {{- partial "partials/components/post-meta.html" . }}
- {{ $is_toc := cond (ne .Params.toc nil) .Params.toc $.Site.Params.toc }}
- {{ if (and $is_toc (gt (countrunes .TableOfContents) 0)) }}
+ {{- $is_toc := cond (ne .Params.toc nil) .Params.toc $.Site.Params.toc }}
+ {{- if (and $is_toc (gt (countrunes .TableOfContents) 0)) }}
diff --git a/layouts/shortcodes/links.html b/layouts/shortcodes/links.html
index ae966ae..780b65a 100644
--- a/layouts/shortcodes/links.html
+++ b/layouts/shortcodes/links.html
@@ -1,6 +1,6 @@
-