mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 01:57:54 +00:00
Merge the blog and the main website
This commit is contained in:
parent
ffaf08a7d7
commit
4820afe917
33
config.toml
33
config.toml
@ -1,6 +1,6 @@
|
|||||||
baseURL = "https://foo-dogsquared.github.io/blog/"
|
baseURL = "https://foo-dogsquared.github.io/"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
title = "A Hack's Code"
|
title = "Gabriel Arazas"
|
||||||
summaryLength = 0
|
summaryLength = 0
|
||||||
paginate = 40
|
paginate = 40
|
||||||
copyright = """
|
copyright = """
|
||||||
@ -59,11 +59,40 @@ canonifyURLs = true
|
|||||||
name = "About"
|
name = "About"
|
||||||
url = "about/"
|
url = "about/"
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
identifier = "blog"
|
||||||
|
name = "Blog"
|
||||||
|
url = "blog/"
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
identifier = "archives"
|
identifier = "archives"
|
||||||
name = "Archives"
|
name = "Archives"
|
||||||
url = "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]
|
[params]
|
||||||
mainSections = ["posts", "projects"]
|
mainSections = ["posts", "projects"]
|
||||||
toc = true
|
toc = true
|
||||||
|
@ -3,8 +3,20 @@ title: Homepage
|
|||||||
---
|
---
|
||||||
|
|
||||||
= Homepage
|
= Homepage
|
||||||
|
:figure-caption!:
|
||||||
|
|
||||||
|
|
||||||
Hey there!
|
Hey there!
|
||||||
Welcome to my small home on the deepest corners of the internet.
|
I'm Gabriel Arazas (`foo-dogsquared`), a hobbyist on software development and programming, an expert in procastination, and a hack on anything else.
|
||||||
Just a hobbyist programmer and a wannabe creative artisan productively wasting time on looking on other inspirations. :)
|
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`.
|
||||||
|
|
||||||
|
7
content/blog/_index.adoc
Normal file
7
content/blog/_index.adoc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: Blog
|
||||||
|
---
|
||||||
|
|
||||||
|
= Blog
|
||||||
|
|
||||||
|
|
24
layouts/blog/list.html
Normal file
24
layouts/blog/list.html
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<hr>
|
||||||
|
{{ .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 }}
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{{- $paginator := .Paginate $pages }}
|
||||||
|
{{- range $paginator.Pages }}
|
||||||
|
<li>
|
||||||
|
<time datetime="{{ .PublishDate.Format "2006-01-02" }}">{{ .PublishDate.Format "2006-01-02" }}</time> - <a href="{{ .Permalink }}" aria-label="{{ .Title }}">{{ .Title }}</a></h1>
|
||||||
|
</li>
|
||||||
|
{{- end }}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{{ if $paginator.HasNext }}
|
||||||
|
<p style="margin: 1em;">
|
||||||
|
<a href="{{ "/archives" | relLangURL }}">View all posts</a>
|
||||||
|
</p>
|
||||||
|
{{ end }}
|
||||||
|
{{- end }}
|
||||||
|
|
@ -8,20 +8,4 @@ Otherwise, we take the pages of a section. */ -}}
|
|||||||
{{- if .IsHome }}
|
{{- if .IsHome }}
|
||||||
{{- $pages = where $.Site.RegularPages "Type" "in" $.Site.Params.mainSections }}
|
{{- $pages = where $.Site.RegularPages "Type" "in" $.Site.Params.mainSections }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
<ul>
|
|
||||||
{{- $paginator := .Paginate $pages }}
|
|
||||||
{{- range $paginator.Pages }}
|
|
||||||
<li>
|
|
||||||
<time datetime="{{ .PublishDate.Format "2006-01-02" }}">{{ .PublishDate.Format "2006-01-02" }}</time> - <a href="{{ .Permalink }}" aria-label="{{ .Title }}">{{ .Title }}</a></h1>
|
|
||||||
</li>
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
|
||||||
|
|
||||||
{{ if $paginator.HasNext }}
|
|
||||||
<p style="margin: 1em;">
|
|
||||||
<a href="{{ "/archives" | relLangURL }}">View all posts</a>
|
|
||||||
</p>
|
|
||||||
{{ end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
|
6
layouts/shortcodes/links.html
Normal file
6
layouts/shortcodes/links.html
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<ul style="display: flex; flex-flow: row wrap; justify-content: space-around; list-style: none">
|
||||||
|
{{ range $.Site.Menus.links }}
|
||||||
|
<li><a style="font-size: 1.5em" href="{{ .URL }}" rel="me">{{ .Name }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
|
BIN
static/pp.webp
Normal file
BIN
static/pp.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
Loading…
Reference in New Issue
Block a user