From 4820afe917921f9016c0d769c6957f585d3e0cf6 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 7 Nov 2020 00:16:16 +0800 Subject: [PATCH] Merge the blog and the main website --- config.toml | 33 +++++++++++++++++++++++++++++++-- content/_index.adoc | 16 ++++++++++++++-- content/blog/_index.adoc | 7 +++++++ layouts/blog/list.html | 24 ++++++++++++++++++++++++ layouts/index.html | 16 ---------------- layouts/shortcodes/links.html | 6 ++++++ static/pp.webp | Bin 0 -> 6146 bytes 7 files changed, 82 insertions(+), 20 deletions(-) create mode 100644 content/blog/_index.adoc create mode 100644 layouts/blog/list.html create mode 100644 layouts/shortcodes/links.html create mode 100644 static/pp.webp diff --git a/config.toml b/config.toml index 7ff15b2..261780f 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,6 @@ -baseURL = "https://foo-dogsquared.github.io/blog/" +baseURL = "https://foo-dogsquared.github.io/" languageCode = "en-us" -title = "A Hack's Code" +title = "Gabriel Arazas" summaryLength = 0 paginate = 40 copyright = """ @@ -59,11 +59,40 @@ canonifyURLs = true name = "About" url = "about/" + [[menu.main]] + identifier = "blog" + name = "Blog" + url = "blog/" + [[menu.main]] identifier = "archives" name = "Archives" url = "archives/" + [[menu.links]] + identifer = "blog" + name = "Blog" + url = "/blog" + + [[menu.links]] + identifier = "Code" + name = "Code" + url = "https://github.com/foo-dogsquared/" + + [[menu.links]] + identifer = "notes" + name = "Notes" + url = "https://github.com/foo-dogsquared/wiki" + + [[menu.links]] + identifer = "music" + name = "Music" + url = "https://www.youtube.com/channel/UCuMiU9bzATu5oTp-vhOlL2Q" + + +[permalinks] + posts = "/blog/posts/:title/" + [params] mainSections = ["posts", "projects"] toc = true diff --git a/content/_index.adoc b/content/_index.adoc index 6ca8dc8..83ce319 100644 --- a/content/_index.adoc +++ b/content/_index.adoc @@ -3,8 +3,20 @@ title: Homepage --- = Homepage +:figure-caption!: + Hey there! -Welcome to my small home on the deepest corners of the internet. -Just a hobbyist programmer and a wannabe creative artisan productively wasting time on looking on other inspirations. :) +I'm Gabriel Arazas (`foo-dogsquared`), a hobbyist on software development and programming, an expert in procastination, and a hack on anything else. +You can see more what's my deal on xref:about.adoc[another page] because I want to make introductions nice and brief. + +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. +image::pp.webp[width=60%] + +{{< links >}} + +If you want the old way on getting contact with me, you can shoot an email at `foo.dogsquared{at}gmail{dot}com`. diff --git a/content/blog/_index.adoc b/content/blog/_index.adoc new file mode 100644 index 0000000..f1eeac4 --- /dev/null +++ b/content/blog/_index.adoc @@ -0,0 +1,7 @@ +--- +title: Blog +--- + += Blog + + diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 0000000..4fafdc4 --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,24 @@ +{{ define "main" }} +
+{{ .Content }} + +{{- /* The homepage should show only pages from the given sections (with `$.Site.Params.mainSections`). +Otherwise, we take the pages of a section. */ -}} +{{- $pages := where $.Site.RegularPages "Type" "in" $.Site.Params.mainSections }} + + + +{{ if $paginator.HasNext }} +

+ View all posts +

+{{ end }} +{{- end }} + diff --git a/layouts/index.html b/layouts/index.html index 05cc6c4..79fe5f5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -8,20 +8,4 @@ Otherwise, we take the pages of a section. */ -}} {{- if .IsHome }} {{- $pages = where $.Site.RegularPages "Type" "in" $.Site.Params.mainSections }} {{- end }} - - - -{{ if $paginator.HasNext }} -

- View all posts -

-{{ end }} -{{- end }} - diff --git a/layouts/shortcodes/links.html b/layouts/shortcodes/links.html new file mode 100644 index 0000000..ae966ae --- /dev/null +++ b/layouts/shortcodes/links.html @@ -0,0 +1,6 @@ + + diff --git a/static/pp.webp b/static/pp.webp new file mode 100644 index 0000000000000000000000000000000000000000..24d7d120ee4e3481b55e17abc5a5b9d1a7a36b14 GIT binary patch literal 6146 zcmdT{c{o(>9zU}nSwjdhmTZx1(@>UVX>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