From 9c44ad660a02a7ac5b8d162abe7307acc0b460ab Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 20 Jan 2021 15:01:56 +0800 Subject: [PATCH] Update more of the site layout --- Makefile | 9 +++++++-- assets/scss/extend.scss | 24 ++++++++++++++++++++++++ config.toml | 1 + data/blogs.json | 4 ++-- data/more-contentful/contacts.toml | 5 +++++ go.mod | 2 +- go.sum | 8 ++++---- 7 files changed, 44 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index ac6dfa8..4fe46de 100644 --- a/Makefile +++ b/Makefile @@ -7,5 +7,10 @@ build-openring: ./bin/openring-create --input assets/templates/openring-input.html --output layouts/partials/openring.html .PHONY = serve -serve: build-openring - ls assets/templates/openring-input.html | entr make build-openring& hugo serve --buildFuture +serve: + ls assets/templates/openring-input.html | entr make build-openring& hugo serve --buildFuture --verboseLog + +.PHONY = update +update: + curl --silent --location https://api.github.com/repos/foo-dogsquared/hugo-theme-more-contentful/commits | jq '.[0].sha' --raw-output | xargs --replace='{}' hugo mod get -u "github.com/foo-dogsquared/hugo-theme-more-contentful@{}" && hugo mod tidy + curl --silent --location https://api.github.com/repos/foo-dogsquared/hugo-web-feeds/commits | jq '.[0].sha' --raw-output | xargs --replace='{}' hugo mod get -u "github.com/foo-dogsquared/hugo-web-feeds@{}" && hugo mod tidy diff --git a/assets/scss/extend.scss b/assets/scss/extend.scss index e8f1b2d..022dfed 100644 --- a/assets/scss/extend.scss +++ b/assets/scss/extend.scss @@ -1,9 +1,23 @@ :root { --accented-border-style: var(--base0C) solid .1vw; --code-size: 50vh; + + --body-family: "Source Serif Pro", "IBM Plex Serif", "Noto Serif", serif; + --header-family: "Source Sans Pro", "IBM Plex Sans", "Noto Sans", sans-serif; + --mono-family: "Source Code Pro", "IBM Plex Mono", "Noto Mono", monospace; color: var(--base05); } +article { + h1 { + margin: 1rem auto; + } + + h1, h2, h3 { + margin-bottom: 1rem; + } +} + hr { border-color: var(--base0C); } @@ -20,6 +34,12 @@ footer[aria-label="Site footer"] { } // Layouts +.site__title { + --size: 2rem; + margin-bottom: unset; + font-size: var(--size); +} + .site__socials { margin-top: 1em; } @@ -172,6 +192,10 @@ sup.footnote { display: flex; justify-content: center; } + + > .title { + text-align: center; + } } @media all and (max-width: 860px) { diff --git a/config.toml b/config.toml index 17a07c1..867972b 100644 --- a/config.toml +++ b/config.toml @@ -24,6 +24,7 @@ canonifyURLs = true [markup.asciidocExt.attributes] toc = true sectanchors = true + "figure-caption!" = true [author] diff --git a/data/blogs.json b/data/blogs.json index 8145d19..55ad88d 100644 --- a/data/blogs.json +++ b/data/blogs.json @@ -8,9 +8,9 @@ "https://fasterthanli.me/index.xml", "https://guix.gnu.org/feeds/blog.atom", "https://kde.org/announcements/index.xml", - "https://kuon.ch/post/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" + "http://malloc47.com/rss.xml", + "https://www.copetti.org/index.xml" ] diff --git a/data/more-contentful/contacts.toml b/data/more-contentful/contacts.toml index fb3a772..fa0ef84 100644 --- a/data/more-contentful/contacts.toml +++ b/data/more-contentful/contacts.toml @@ -20,6 +20,11 @@ id = "gitlab" url = "https://gitlab.com/foo-dogsquared/" name = "GitLab" +[[links]] +id = "keybase" +url = "https://keybase.io/foo_dogsquared" +name = "Keybase" + [[links]] id = "rss" url = "index.atom" diff --git a/go.mod b/go.mod index 053921e..98042ba 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,6 @@ module github.com/foo-dogsquared/blog go 1.15 require ( - github.com/foo-dogsquared/hugo-theme-more-contentful v0.1.3 // indirect + github.com/foo-dogsquared/hugo-theme-more-contentful v0.1.4-0.20210115024857-46de6a9b626b // indirect github.com/foo-dogsquared/hugo-web-feeds v0.0.2 // indirect ) diff --git a/go.sum b/go.sum index 40f8d16..fd4ea16 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ -github.com/foo-dogsquared/hugo-mod-simple-icons v0.0.0-20201106121650-08c012c284f2/go.mod h1:yIWROkb+Zcex0JBLlZOnejI83GWOmz/aYtKSNXexLSk= +github.com/foo-dogsquared/hugo-mod-simple-icons v0.0.0-20210112174729-cd5a37e6a772/go.mod h1:Zj/H5B3seQ4WGPwEOE/LtRoMsVy7ooEB0xhUN3k9PnY= github.com/foo-dogsquared/hugo-theme-contentful v1.2.1-0.20201106111203-fd6a6c7a3839/go.mod h1:BL7L5CENEhUx+miRRaOZ9SVC92j9MAMztirBWtTpiPc= -github.com/foo-dogsquared/hugo-theme-more-contentful v0.1.3 h1:Wfxh9bbb5ks88v8BHrB17z0oeGi3lu0EK1LV7M+k840= -github.com/foo-dogsquared/hugo-theme-more-contentful v0.1.3/go.mod h1:q2QVvX0SJhtybk/2LDTejRg4RWXnDY6hcE7qYARnBNI= +github.com/foo-dogsquared/hugo-theme-more-contentful v0.1.4-0.20210115024857-46de6a9b626b h1:VNxwPjFCagsvz3w7WGqh8wYz4SX4Wst+m9JaWq+WV08= +github.com/foo-dogsquared/hugo-theme-more-contentful v0.1.4-0.20210115024857-46de6a9b626b/go.mod h1:zDZAiZgXJA3VWK++nLjajTaCW7Gk8DD8yUHJfNvHWxc= github.com/foo-dogsquared/hugo-web-feeds v0.0.2 h1:688h38JdIvxKSTdvAFfskEM2n9VJNNNacHwlFc4lvkg= github.com/foo-dogsquared/hugo-web-feeds v0.0.2/go.mod h1:0WxK3+xNIj/Wpk2kkUW0p6Uqmr/OZjPsRtQDCMazNmI= github.com/refactoringui/heroicons v0.4.2/go.mod h1:82HsLWQga7MkEl5aK8TctxPPIBlXrsyWcVTB57uipuk= -github.com/simple-icons/simple-icons v0.0.0-20201103182019-19568e5c3824/go.mod h1:oOgUUt8yVYOso/wEBi2ojfZP2MU/xxiNccIpaE+jCvE= +github.com/simple-icons/simple-icons v0.0.0-20210112161000-6f83d1dd8566/go.mod h1:oOgUUt8yVYOso/wEBi2ojfZP2MU/xxiNccIpaE+jCvE=