From 8f1572a8a3eb00039d08f0349786206ebe82967e Mon Sep 17 00:00:00 2001 From: Maik de Kruif Date: Fri, 19 Nov 2021 12:36:55 +0100 Subject: [PATCH] Add intro message to list pages --- content/portfolio/_index.md | 9 +++++++++ content/posts/_index.md | 7 +++++++ content/writeups/_index.md | 7 +++++++ themes/maik-blog/assets/scss/_main.scss | 8 ++++---- themes/maik-blog/layouts/_default/list.html | 2 +- themes/maik-blog/layouts/portfolio/list.html | 2 +- themes/maik-blog/layouts/writeups/list.html | 2 +- 7 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 content/portfolio/_index.md create mode 100644 content/posts/_index.md create mode 100644 content/writeups/_index.md diff --git a/content/portfolio/_index.md b/content/portfolio/_index.md new file mode 100644 index 0000000..636a565 --- /dev/null +++ b/content/portfolio/_index.md @@ -0,0 +1,9 @@ ++++ +author = "Maik de Kruif" +title = "Portfolio" +description = "Over the years I have developed various pieces of software and accomplished many goals. Most of them can be found on my GitHub, but I have also listed some here with a bit of extra information." ++++ + +Over the years I have developed various pieces of software and accomplished many goals. + +Most of them can be found on [my GitHub](https://github.com/maikka39/), but I have also listed some here with a bit of extra information. diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..fcf7f6a --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,7 @@ ++++ +author = "Maik de Kruif" +title = "Posts" +description = "Every now and then I'll write a post. Here's a collection of my previous ones." ++++ + +Every now and then I'll write a post. Here's a collection of my previous ones. diff --git a/content/writeups/_index.md b/content/writeups/_index.md new file mode 100644 index 0000000..8d77508 --- /dev/null +++ b/content/writeups/_index.md @@ -0,0 +1,7 @@ ++++ +author = "Maik de Kruif" +title = "Writeups" +description = "A collection of my write-ups on Capture The Flag (CTF) events, hardware challenges and real life encounters. They explain how the goal was accomplished and try to teach you how to approach these kinds of challenges." ++++ + +A collection of my write-ups on Capture The Flag (CTF) events, hardware challenges and real life encounters. They explain how the goal was accomplished and try to teach you how to approach these kinds of challenges. diff --git a/themes/maik-blog/assets/scss/_main.scss b/themes/maik-blog/assets/scss/_main.scss index cc38715..3879973 100644 --- a/themes/maik-blog/assets/scss/_main.scss +++ b/themes/maik-blog/assets/scss/_main.scss @@ -304,11 +304,11 @@ ol ol { } .content { - display: flex; - flex-direction: column; + // display: flex; + // flex-direction: column; flex: 1 auto; - align-items: center; - justify-content: center; + // align-items: center; + // justify-content: center; margin: 0; @media #{$media-size-phone} { diff --git a/themes/maik-blog/layouts/_default/list.html b/themes/maik-blog/layouts/_default/list.html index 6f80895..733dfa0 100644 --- a/themes/maik-blog/layouts/_default/list.html +++ b/themes/maik-blog/layouts/_default/list.html @@ -4,7 +4,7 @@

{{ .Title }}

- {{- if .Content }} + {{- if and .Content (not .Paginator.HasPrev) }}
{{ .Content }}
{{- end }} diff --git a/themes/maik-blog/layouts/portfolio/list.html b/themes/maik-blog/layouts/portfolio/list.html index c20eb80..f2b281e 100644 --- a/themes/maik-blog/layouts/portfolio/list.html +++ b/themes/maik-blog/layouts/portfolio/list.html @@ -3,7 +3,7 @@

Portfolio

- {{- if .Content }} + {{- if and .Content (not .Paginator.HasPrev) }}
{{ .Content }}
{{- end }} diff --git a/themes/maik-blog/layouts/writeups/list.html b/themes/maik-blog/layouts/writeups/list.html index cf2a1cc..7941b4a 100644 --- a/themes/maik-blog/layouts/writeups/list.html +++ b/themes/maik-blog/layouts/writeups/list.html @@ -4,7 +4,7 @@

{{ .Title }}

- {{- if .Content }} + {{- if and .Content (not .Paginator.HasPrev) }}
{{ .Content }}
{{- end }}