Skip to content

Commit 2ffc45b

Browse files
author
Linus
committed
more fixes
1 parent c0240bf commit 2ffc45b

File tree

6 files changed

+55
-62
lines changed

6 files changed

+55
-62
lines changed

content/posts/babykernel_uiuctf_2025.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -480,20 +480,6 @@ void pretty_print(unsigned char* buf, size_t size) {
480480
printf("\n");
481481
}
482482

483-
uint64_t u64(unsigned char* arr) {
484-
uint64_t res = 0;
485-
for (int i = 0; i < 8; i++) {
486-
res |= (uint64_t)arr[i] << (i * 8);
487-
}
488-
return res;
489-
}
490-
491-
void p64(uint64_t val, unsigned char out[8]) {
492-
for (int i = 0; i < 8; i++) {
493-
out[i] = (val >> (8 * i)) & 0xff;
494-
}
495-
}
496-
497483
int main() {
498484
//open the vulnerable driver
499485
fd = open("/dev/vuln", O_RDWR);

content/sidebar/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ links:
55
- link: "https://github.com/AmeliaYeah"
66
icon: "github.png"
77
name: "Github"
8-
- link: "https://ctftime.org/team/167390"
8+
- link: "https://ctftime.org/user/119915"
99
icon: "ctftime.png"
1010
name: "CTFTime"
1111
- link: "https://letterboxd.com/melzipan/"

hugo.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ enableRobotsTXT: true
88
params:
99
theme: "dark-pink"
1010
author: "AmeliaYeah"
11+
posts-per-page: 3
1112

1213
permalinks:
1314
posts: "/posts/:year/:month/:day/:title"

themes/neopost/layouts/_default/single.html

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77
{{ end }}
88

99
<article>
10-
{{- if (index .Params "table-of-contents") }}
11-
<div id="post-toc-mobile">
12-
<button id="post-toc-btn" class="dropbox-btn" onclick="toggleDropbox('post-toc')" ></button>
13-
<div id="post-toc" class="dropbox-content table-of-contents float">
14-
{{ partial "toc.html" . }}
10+
<div class="post-heading-information">
11+
{{- if (index .Params "table-of-contents") }}
12+
<div id="post-toc-mobile">
13+
<button id="post-toc-btn" class="dropbox-btn" onclick="toggleDropbox('post-toc')" ></button>
14+
<div id="post-toc" class="dropbox-content table-of-contents float">
15+
{{ partial "toc.html" . }}
16+
</div>
1517
</div>
18+
{{ end }}
1619
</div>
17-
{{ end }}
18-
<h2>{{ .Title }}</h2>
20+
<h1 class="post-title">{{ .Title }}</h1>
1921
{{ $tags := .Params.tags }}
2022
tags:
2123
{{ range $index, $tag := .Params.tags }}
@@ -24,22 +26,7 @@ <h2>{{ .Title }}</h2>
2426
<div class="post-header">
2527
@{{ .Params.author }} <span class="timestamp">{{ .Date.Format "January 2, 2006" }}</span>
2628
</div>
27-
<p>{{ .Summary }}</p>
28-
{{ with index .Params "title-images" }}
29-
<div>
30-
{{ range first 2 . }}
31-
<a href="{{ . }}" target="_blank"><img style="max-height: 15rem; margin-right: .3rem;" src="{{ . }}"></a>
32-
{{ end }}
33-
</div>
34-
{{ end }}
35-
<div class="auto-numbering" id="full-content">{{ .ContentWithoutSummary | safeHTML }}</div>
36-
{{ with index .Params "ending-images" }}
37-
<div>
38-
{{ range first 3 . }}
39-
<a href="{{ . }}" target="_blank"><img style="max-height: 15rem; margin-right: .3rem;" src="{{ . }}"></a>
40-
{{ end }}
41-
</div>
42-
{{ end }}
29+
<div class="auto-numbering" id="full-content">{{ .Content | safeHTML }}
4330
</article>
4431
<script>
4532
window.addEventListener('click', e => {
@@ -57,7 +44,6 @@ <h2>{{ .Title }}</h2>
5744

5845
function toggleDropbox(id) {
5946
let dropbox = document.getElementById(id);
60-
6147
dropbox.toggleAttribute("visible");
6248
}
6349
</script>

themes/neopost/layouts/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,18 @@ <h1>{{ .Params.title }}</h1>
103103
{{ partial "toc.html" $page }}
104104
</div>
105105
{{ end }}
106-
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
106+
107+
<h1><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
108+
107109
{{ $tags := $page.Params.tags }}
108-
tags:
109110
{{ range $index, $tag := .Params.tags }}
110111
<a href="{{ relLangURL (printf "/tags/%s" $tag) }}">{{ $tag }}</a>{{ if ne $index (sub ($tags | len) 1) }},{{ end }}
111112
{{ end }}
112113

113-
<div class="post-header">
114-
@{{ $page.Params.author }} <span class="timestamp">{{ $page.Date.Format "January 2, 2006" }}</span>
115-
</div>
116114
<div class="description">
117-
<p>{{ default ($page.Title) $page.Description }}</p>
115+
<p style="margin: 0">
116+
{{ default ($page.Title) $page.Description }}
117+
</p>
118118
</div>
119119
</article>
120120
{{ end }}

themes/neopost/layouts/partials/style.css

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ a,li,p,h1,h2,h3,h4,h5,h6 {
5353
font-size: 1em;
5454
width: fit-content;
5555
height: 100%;
56+
cursor: pointer;
5657
}
5758

5859
.toolbar-bttn:hover {
@@ -173,8 +174,9 @@ h1,h2,h3,h4,h5,h6 {
173174
}
174175
175176
p {
176-
margin-top: 0;
177-
margin: 0.1;
177+
margin: 0;
178+
line-height: 1.2em;
179+
margin-bottom: 0.7em;
178180
font-size: 1.1em;
179181
}
180182
@@ -183,20 +185,30 @@ a {
183185
}
184186
185187
h1 {
188+
text-shadow: var(--outline-color) 0 0 10px;
189+
}
190+
191+
h1, h1 > a {
186192
font-size: 32px;
187193
color: var(--post-header-color);
188-
filter: drop-shadow(2px 0 0 var(--outline-color)) drop-shadow(0 2px 0 var(--outline-color)) drop-shadow(-2px 0 0 var(--outline-color)) drop-shadow(0 -2px 0 var(--outline-color))drop-shadow(0 1px 1px var(--outline-color2)) drop-shadow(1px 0 1px var(--outline-color2));
189194
}
190195
191196
h2 {
192-
font-size: 32px;
197+
font-size: 35px;
198+
text-decoration: double underline;
199+
text-decoration-thickness: 2px;
193200
}
194201
195202
h3 {
196203
text-decoration: solid underline;
197204
font-size: 24px;
198205
}
199206
207+
h2,h3,h4,h5,h6 {
208+
margin-bottom: 0.5em;
209+
margin-top: 0.7em;
210+
}
211+
200212
header {
201213
background-size: 100%;
202214
background-position: center;
@@ -239,7 +251,8 @@ li.page-item a{
239251
border: 2px solid var(--border-color);
240252
border-radius: .3em;
241253
margin-bottom: 1em;
242-
box-shadow: var(--post-shadow-color) 5px 5px;
254+
font-size: 1.1em;
255+
opacity: 0.5;
243256
244257
user-select: none;
245258
}
@@ -250,9 +263,7 @@ li.page-item.active a{
250263
}
251264
252265
li.page-item:not(.disabled):not(.active) a:hover{
253-
background-color: var(--select-color);
254-
color: var(--accent-color);
255-
border-color: var(--accent-color);
266+
opacity: 1;
256267
}
257268
258269
li {
@@ -441,12 +452,13 @@ header h1 a:hover {
441452
color: var(--special-text-color);
442453
font-weight: bold;
443454
padding: .5rem 0;
455+
margin-bottom: 1rem;
444456
border-bottom: 4px double var(--outline-color);
445457
}
446458

447459
.timestamp {
448-
font-weight: normal;
449-
margin: .2em;
460+
font-weight: bold;
461+
font-size: 12px;
450462
float: right;
451463
}
452464

@@ -503,7 +515,7 @@ header h1 a:hover {
503515
.dropbox-content {
504516
display: none;
505517
position: absolute;
506-
z-index: 1
518+
z-index: 100;
507519
}
508520

509521
.table-of-contents {
@@ -530,9 +542,9 @@ header h1 a:hover {
530542
}
531543

532544
.table-of-contents.float {
533-
width: max-content;
534-
max-width: 50vw;
535-
max-height: 50%;
545+
width: fit-content;
546+
max-width: fit-content;
547+
max-height: 50vh;
536548
overflow: auto;
537549
}
538550

@@ -557,11 +569,11 @@ header h1 a:hover {
557569
}
558570

559571
#single-post > article {
560-
width: calc(100% - 20rem);
572+
width: calc(100% - 20rem - 20px);
561573
margin-bottom: 0;
562574
}
563575

564-
#single-post > article > #post-toc-mobile {
576+
#single-post > article > div > #post-toc-mobile {
565577
display: none;
566578
}
567579

@@ -603,7 +615,7 @@ header h1 a:hover {
603615
margin: .3em 1em;
604616
}
605617

606-
#single-post > article > #post-toc-mobile {
618+
#single-post > article > div > #post-toc-mobile {
607619
display: inline;
608620
}
609621

@@ -614,6 +626,14 @@ header h1 a:hover {
614626
#single-post > article {
615627
width: 100%;
616628
}
629+
630+
.post-heading-information {
631+
position: sticky;
632+
top: 0;
633+
padding: 5px;
634+
z-index: 10;
635+
background-color: var(--bg-color2);
636+
}
617637
}
618638

619639
</style>

0 commit comments

Comments
 (0)