diff options
-rw-r--r-- | _config.yml | 2 | ||||
-rw-r--r-- | _includes/head.html | 13 | ||||
-rw-r--r-- | _includes/opengraph.html | 4 | ||||
-rw-r--r-- | _includes/tags.html | 6 | ||||
-rw-r--r-- | _includes/title.html | 1 | ||||
-rw-r--r-- | _layouts/post.html | 21 | ||||
-rw-r--r-- | _plugins/tag-color.rb | 13 | ||||
-rw-r--r-- | _posts/2021-04-13-software.md | 2 | ||||
-rw-r--r-- | _posts/2021-04-24-connect4.md | 3 | ||||
-rw-r--r-- | _posts/2021-04-28-git.md | 2 | ||||
-rw-r--r-- | _posts/2021-07-13-redpwn2021.md | 4 | ||||
-rw-r--r-- | _posts/2021-07-22-scoop.md | 2 | ||||
-rw-r--r-- | _posts/2021-08-17-homeauto.md | 2 | ||||
-rw-r--r-- | _posts/2021-09-09-avanswifi.md | 2 | ||||
-rw-r--r-- | _posts/2022-01-24-latex.md | 2 | ||||
-rw-r--r-- | css/button.css (renamed from styles/button.css) | 0 | ||||
-rw-r--r-- | css/card.css (renamed from styles/card.css) | 0 | ||||
-rw-r--r-- | css/code.css (renamed from styles/code.css) | 0 | ||||
-rw-r--r-- | css/globals.css (renamed from styles/globals.css) | 0 | ||||
-rw-r--r-- | css/image.css (renamed from styles/image.css) | 0 | ||||
-rw-r--r-- | css/layout.css (renamed from styles/layout.css) | 0 | ||||
-rw-r--r-- | css/navbar.css (renamed from styles/navbar.css) | 0 | ||||
-rw-r--r-- | css/print.css (renamed from styles/print.css) | 0 | ||||
-rw-r--r-- | css/search.css (renamed from styles/search.css) | 0 | ||||
-rw-r--r-- | css/tags.css (renamed from styles/tags.css) | 0 | ||||
-rw-r--r-- | css/theme.css (renamed from styles/theme.css) | 0 |
26 files changed, 48 insertions, 31 deletions
diff --git a/_config.yml b/_config.yml index f82b166..dc5d159 100644 --- a/_config.yml +++ b/_config.yml @@ -1,3 +1,4 @@ +title: "Loek's blog" permalink: /post/:title exclude: - makefile @@ -7,3 +8,4 @@ defaults: type: posts values: layout: post + lang: "en" diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..09ade8d --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,13 @@ +<meta charset="UTF-8"> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> +<link rel="stylesheet" href="/css/button.css"> +<link rel="stylesheet" href="/css/card.css"> +<link rel="stylesheet" href="/css/code.css"> +<link rel="stylesheet" href="/css/globals.css"> +<link rel="stylesheet" href="/css/image.css"> +<link rel="stylesheet" href="/css/layout.css"> +<link rel="stylesheet" href="/css/navbar.css"> +<link rel="stylesheet" href="/css/print.css"> +<link rel="stylesheet" href="/css/search.css"> +<link rel="stylesheet" href="/css/tags.css"> +<link rel="stylesheet" href="/css/theme.css"> diff --git a/_includes/opengraph.html b/_includes/opengraph.html new file mode 100644 index 0000000..7cb9517 --- /dev/null +++ b/_includes/opengraph.html @@ -0,0 +1,4 @@ +<meta property='og:site_name' content='{{ page.date }}' /> +<meta property='og:title' content='{{ page.title }}' /> +<meta property='og:description' content='{{ page.subtitle }}' /> +<meta property="og:image" content='{{ page.cover }}' /> diff --git a/_includes/tags.html b/_includes/tags.html new file mode 100644 index 0000000..c392d3a --- /dev/null +++ b/_includes/tags.html @@ -0,0 +1,6 @@ +<div class="tags"> + <span>Tags:</span> + {% for tag in include.tags %} + <a class="tag" href="/search?q={{ tag }}" style="--tag-hue: {{ tag | to_tag_color }};">{{ tag }}</a> + {% endfor %} +</div> diff --git a/_includes/title.html b/_includes/title.html new file mode 100644 index 0000000..40efd39 --- /dev/null +++ b/_includes/title.html @@ -0,0 +1 @@ +<title>{{ page.title }} - {{ site.title }}</title> diff --git a/_layouts/post.html b/_layouts/post.html index 847df76..485f560 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,27 +1,24 @@ <!DOCTYPE html> -<html lang="en"> +<html lang='{{ page.lang }}'> <head> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>{{ page.title }} - Loek's Blog</title> - <meta property='og:site_name' content='{{ page.date }}' /> - <meta property='og:title' content='{{ page.title }}' /> - <meta property='og:description' content='{{ page.subtitle }}' /> + {% include head.html %} + {% include title.html %} + {% include opengraph.html %} </head> <body> <div className='centeredPage'> <div className='titleWrapper'> <h1>{{ page.title }}</h1> - <p className='subtile'>{{ page.subtitle }}</p> - {props.meta.tags && <Tags tags={props.meta.tags} />} + {% if page.subtitle %}<p className='subtile'>{{ page.subtitle }}</p>{% endif %} + {% if page.tags %}{% include tags.html tags=page.tags %}{% endif %} </div> <div className='navAreaWrapper'> <div className='sticky'> - <Navbar /> - <Chapters chapters={props.meta.chapters} /> + <!-- <Navbar /> --> + <!-- <Chapters chapters={props.meta.chapters} /> --> </div> </div> - <MobileNavbar /> + <!-- <MobileNavbar /> --> <div className='contentWrapper'> {{ content }} </div> diff --git a/_plugins/tag-color.rb b/_plugins/tag-color.rb new file mode 100644 index 0000000..3927abf --- /dev/null +++ b/_plugins/tag-color.rb @@ -0,0 +1,13 @@ +module TagColor + def to_tag_color(str) + sum = 0 + str.chars.each do |i| + sum += ?i.ord + sum %= 360 + end + sum + end +end + +Liquid::Template.register_filter(TagColor) + diff --git a/_posts/2021-04-13-software.md b/_posts/2021-04-13-software.md index 9cad319..d2cda4a 100644 --- a/_posts/2021-04-13-software.md +++ b/_posts/2021-04-13-software.md @@ -1,8 +1,6 @@ --- title: Software that I use subtitle: Desktop software, server software, phone apps, everything -author: Loek -date: April 13 2021 tags: - software - open diff --git a/_posts/2021-04-24-connect4.md b/_posts/2021-04-24-connect4.md index c1e0c69..6c5c329 100644 --- a/_posts/2021-04-24-connect4.md +++ b/_posts/2021-04-24-connect4.md @@ -1,8 +1,5 @@ --- title: Connect 4 beta live! -subtitle: Announcement post -author: Loek -date: April 24 2021 tags: - connect 4 - beta diff --git a/_posts/2021-04-28-git.md b/_posts/2021-04-28-git.md index 17d43dc..48de24b 100644 --- a/_posts/2021-04-28-git.md +++ b/_posts/2021-04-28-git.md @@ -1,8 +1,6 @@ --- title: My git setup subtitle: How I use git on my server -author: Loek -date: April 28 2021 tags: - git - server diff --git a/_posts/2021-07-13-redpwn2021.md b/_posts/2021-07-13-redpwn2021.md index 3c1a991..df9da29 100644 --- a/_posts/2021-07-13-redpwn2021.md +++ b/_posts/2021-07-13-redpwn2021.md @@ -1,10 +1,6 @@ --- title: redpwnCTF 2021 subtitle: A noob's perspective -authors: - - Loek - - Willem -date: July 13 2021 tags: - hacking - CTF diff --git a/_posts/2021-07-22-scoop.md b/_posts/2021-07-22-scoop.md index c0ef34d..36c7cc2 100644 --- a/_posts/2021-07-22-scoop.md +++ b/_posts/2021-07-22-scoop.md @@ -1,8 +1,6 @@ --- title: Scoop guide subtitle: Handbook and quick explanations -author: Loek -date: July 22 2021 tags: - windows - normie diff --git a/_posts/2021-08-17-homeauto.md b/_posts/2021-08-17-homeauto.md index 5a89988..4836a34 100644 --- a/_posts/2021-08-17-homeauto.md +++ b/_posts/2021-08-17-homeauto.md @@ -1,8 +1,6 @@ --- title: My home automation adventure subtitle: How to make your house a shitty utopia -author: Loek -date: August 17 2021 tags: - home - automation diff --git a/_posts/2021-09-09-avanswifi.md b/_posts/2021-09-09-avanswifi.md index 4359bac..95cfbfe 100644 --- a/_posts/2021-09-09-avanswifi.md +++ b/_posts/2021-09-09-avanswifi.md @@ -1,8 +1,6 @@ --- title: Avans wifi setup subtitle: How to use Avans eduroam with NetworkManager -author: Loek -date: September 9 2021 tags: - software cover: /img/avanswifi.png diff --git a/_posts/2022-01-24-latex.md b/_posts/2022-01-24-latex.md index 4db2ec1..11db094 100644 --- a/_posts/2022-01-24-latex.md +++ b/_posts/2022-01-24-latex.md @@ -1,8 +1,6 @@ --- title: My LaTeX setup subtitle: How to set up a simple LaTeX environment with XeTeX and latexmk -author: Loek -date: January 24 2022 tags: - software - latex diff --git a/styles/button.css b/css/button.css index 9efe41f..9efe41f 100644 --- a/styles/button.css +++ b/css/button.css diff --git a/styles/card.css b/css/card.css index f49b40e..f49b40e 100644 --- a/styles/card.css +++ b/css/card.css diff --git a/styles/code.css b/css/code.css index dde7bdb..dde7bdb 100644 --- a/styles/code.css +++ b/css/code.css diff --git a/styles/globals.css b/css/globals.css index 5ccd71f..5ccd71f 100644 --- a/styles/globals.css +++ b/css/globals.css diff --git a/styles/image.css b/css/image.css index d354ab9..d354ab9 100644 --- a/styles/image.css +++ b/css/image.css diff --git a/styles/layout.css b/css/layout.css index 706f5c9..706f5c9 100644 --- a/styles/layout.css +++ b/css/layout.css diff --git a/styles/navbar.css b/css/navbar.css index 26d0b1d..26d0b1d 100644 --- a/styles/navbar.css +++ b/css/navbar.css diff --git a/styles/print.css b/css/print.css index 4867c83..4867c83 100644 --- a/styles/print.css +++ b/css/print.css diff --git a/styles/search.css b/css/search.css index e424b6b..e424b6b 100644 --- a/styles/search.css +++ b/css/search.css diff --git a/styles/tags.css b/css/tags.css index 2468d3f..2468d3f 100644 --- a/styles/tags.css +++ b/css/tags.css diff --git a/styles/theme.css b/css/theme.css index c3a8dee..c3a8dee 100644 --- a/styles/theme.css +++ b/css/theme.css |