Skip to content

Commit

Permalink
Add social links, change hashtag to before pseudoelement
Browse files Browse the repository at this point in the history
  • Loading branch information
b1r1b1r1 committed May 22, 2024
1 parent 63909c3 commit 87ffb0c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
9 changes: 7 additions & 2 deletions content/blog/sasctf2024-stuhnet/index.md
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
21 changes: 16 additions & 5 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@ <h1>{{ .Title }}</h1>
<span class="text-faded"
>Posted on <time datetime="{{ .Date.Format "2006-01-02" }}">{{ dateFormat ":date_long" .Date }}</time> by
</span>
{{- if isset .Params "social" -}}
<a href="{{ .Params.social }}">{{ .Params.author }}</a>
{{- else -}}
<span>{{ .Params.author }}</span>
{{ range .Params.authors }}
{{- if isset . "social" -}}
<a href="{{ .social }}">{{ .name }}</a>
{{- else -}}
<span>{{ .name }}</span>
{{- end -}}
{{ if and (.links) (gt (len .links) 0) }}
(
{{- range $index, $link := .links -}}
{{ if ne $index 0 -}}
,
{{ end -}}<a href="{{ $link.link }}">{{ $link.name }}</a>
{{- end -}}
)
{{ end }}
{{- end -}}

{{- if .Draft -}}
Expand All @@ -31,7 +42,7 @@ <h1>{{ .Title }}</h1>
<nav class="tags">
<ul class="flex flex-wrap">
{{ range .Params.tags }}
<li class="mr-2"><span class="mr-[2px] text-tag">#</span><span>{{ . }}</span></li>
<li class="mr-2 before:text-tag before:content-['#']">{{ . }}</li>
{{ end }}
</ul>
</nav>
Expand Down

0 comments on commit 87ffb0c

Please sign in to comment.