Skip to content

Commit 87ffb0c

Browse files
committed
Add social links, change hashtag to before pseudoelement
1 parent 63909c3 commit 87ffb0c

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

content/blog/sasctf2024-stuhnet/index.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
---
22
params:
3-
author: "falamous"
4-
social: https://t.me/falamous
3+
authors:
4+
- name: "falamous"
5+
social: https://t.me/falamous
6+
links:
7+
- name: channel
8+
link: https://t.me/theinkyvoid
9+
510
title: "SAS CTF 2024 - CK0P0 CTYXHET writeup"
611
tldr: "challenge we solved by running angr on a binary generated from pseudocode of the wasm file"
712
date: "2024-05-21T22:24:53+02:00"

layouts/_default/single.html

+16-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,21 @@ <h1>{{ .Title }}</h1>
44
<span class="text-faded"
55
>Posted on <time datetime="{{ .Date.Format "2006-01-02" }}">{{ dateFormat ":date_long" .Date }}</time> by
66
</span>
7-
{{- if isset .Params "social" -}}
8-
<a href="{{ .Params.social }}">{{ .Params.author }}</a>
9-
{{- else -}}
10-
<span>{{ .Params.author }}</span>
7+
{{ range .Params.authors }}
8+
{{- if isset . "social" -}}
9+
<a href="{{ .social }}">{{ .name }}</a>
10+
{{- else -}}
11+
<span>{{ .name }}</span>
12+
{{- end -}}
13+
{{ if and (.links) (gt (len .links) 0) }}
14+
(
15+
{{- range $index, $link := .links -}}
16+
{{ if ne $index 0 -}}
17+
,
18+
{{ end -}}<a href="{{ $link.link }}">{{ $link.name }}</a>
19+
{{- end -}}
20+
)
21+
{{ end }}
1122
{{- end -}}
1223

1324
{{- if .Draft -}}
@@ -31,7 +42,7 @@ <h1>{{ .Title }}</h1>
3142
<nav class="tags">
3243
<ul class="flex flex-wrap">
3344
{{ range .Params.tags }}
34-
<li class="mr-2"><span class="mr-[2px] text-tag">#</span><span>{{ . }}</span></li>
45+
<li class="mr-2 before:text-tag before:content-['#']">{{ . }}</li>
3546
{{ end }}
3647
</ul>
3748
</nav>

0 commit comments

Comments
 (0)