From 87ffb0c8ffdbe2a890730e1cfe6c76d817109e92 Mon Sep 17 00:00:00 2001 From: b1r1b1r1 <48091103+b1r1b1r1@users.noreply.github.com> Date: Wed, 22 May 2024 16:29:10 +0200 Subject: [PATCH] Add social links, change hashtag to before pseudoelement --- content/blog/sasctf2024-stuhnet/index.md | 9 +++++++-- layouts/_default/single.html | 21 ++++++++++++++++----- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/content/blog/sasctf2024-stuhnet/index.md b/content/blog/sasctf2024-stuhnet/index.md index cf141c5..67a80bb 100644 --- a/content/blog/sasctf2024-stuhnet/index.md +++ b/content/blog/sasctf2024-stuhnet/index.md @@ -1,7 +1,12 @@ --- params: - author: "falamous" - social: https://t.me/falamous + authors: + - name: "falamous" + social: https://t.me/falamous + links: + - name: channel + link: https://t.me/theinkyvoid + title: "SAS CTF 2024 - CK0P0 CTYXHET writeup" tldr: "challenge we solved by running angr on a binary generated from pseudocode of the wasm file" date: "2024-05-21T22:24:53+02:00" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0739f70..e988e2a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,10 +4,21 @@

{{ .Title }}

Posted on by - {{- if isset .Params "social" -}} - {{ .Params.author }} - {{- else -}} - {{ .Params.author }} + {{ range .Params.authors }} + {{- if isset . "social" -}} + {{ .name }} + {{- else -}} + {{ .name }} + {{- end -}} + {{ if and (.links) (gt (len .links) 0) }} + ( + {{- range $index, $link := .links -}} + {{ if ne $index 0 -}} + , + {{ end -}}{{ $link.name }} + {{- end -}} + ) + {{ end }} {{- end -}} {{- if .Draft -}} @@ -31,7 +42,7 @@

{{ .Title }}