Skip to content

Commit 585056a

Browse files
committed
re-structuring the site
1 parent d32334b commit 585056a

File tree

9 files changed

+224
-14
lines changed

9 files changed

+224
-14
lines changed

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,13 @@
2626
// Run tasks in macOS
2727
"terminal.integrated.profiles.osx": {
2828
"zsh": { "path": "/bin/zsh", "args": ["-l", "-i"] }
29-
}
29+
},
30+
"cSpell.words": [
31+
"endcapture",
32+
"endfor",
33+
"forloop",
34+
"lqip",
35+
"rubygems",
36+
"Writeups"
37+
]
3038
}

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ paginate: 10
152152
# The base URL of your site
153153
baseurl: ""
154154

155+
155156
# ------------ The following options are not recommended to be modified ------------------
156157

157158
kramdown:

_tabs/archives.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
layout: archives
33
icon: fas fa-archive
4-
order: 3
4+
order: 4
55
---

_tabs/blog.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
layout: default
3+
title: "Blog"
4+
permalink: /blog/
5+
icon: fas fa-newspaper
6+
order: 1
7+
---
8+
9+
<h1>Blog Posts</h1>
10+
11+
12+
{% include lang.html %}
13+
14+
{% assign all_pinned = '' | split: '' %}
15+
{% assign all_normal = '' | split: '' %}
16+
17+
{% for post in site.posts %}
18+
{% if post.tags contains "blog" %}
19+
{% if post.pin %}
20+
{% assign all_pinned = all_pinned | push: post %}
21+
{% elsif post.hidden != true %}
22+
{% assign all_normal = all_normal | push: post %}
23+
{% endif %}
24+
{% endif %}
25+
{% endfor %}
26+
27+
{% assign posts = all_pinned | concat: all_normal %}
28+
29+
<div id="post-list" class="flex-grow-1 px-xl-1">
30+
{% for post in posts %}
31+
<article class="card-wrapper card">
32+
<a href="{{ post.url | relative_url }}" class="post-preview row g-0 flex-md-row-reverse">
33+
{% assign card_body_col = '12' %}
34+
35+
{% if post.image %}
36+
{% assign src = post.image.path | default: post.image %}
37+
{% capture src %}{% include media-url.html src=src subpath=post.media_subpath %}{% endcapture %}
38+
39+
{% assign alt = post.image.alt | xml_escape | default: 'Preview Image' %}
40+
41+
{% assign lqip = null %}
42+
43+
{% if post.image.lqip %}
44+
{% capture lqip_url %}{% include media-url.html src=post.image.lqip subpath=post.media_subpath %}{% endcapture %}
45+
{% assign lqip = 'lqip="' | append: lqip_url | append: '"' %}
46+
{% endif %}
47+
48+
<div class="col-md-5">
49+
<img src="{{ src }}" alt="{{ alt }}" {{ lqip }}>
50+
</div>
51+
52+
{% assign card_body_col = '7' %}
53+
{% endif %}
54+
55+
<div class="col-md-{{ card_body_col }}">
56+
<div class="card-body d-flex flex-column">
57+
<h1 class="card-title my-2 mt-md-0">{{ post.title }}</h1>
58+
59+
<div class="card-text content mt-0 mb-3">
60+
<p>{% include post-description.html %}</p>
61+
</div>
62+
63+
<div class="post-meta flex-grow-1 d-flex align-items-end">
64+
<div class="me-auto">
65+
<!-- posted date -->
66+
<i class="far fa-calendar fa-fw me-1"></i>
67+
{% include datetime.html date=post.date lang=lang %}
68+
69+
<!-- categories -->
70+
{% if post.categories.size > 0 %}
71+
<i class="far fa-folder-open fa-fw me-1"></i>
72+
<span class="categories">
73+
{% for category in post.categories %}
74+
{{ category }}
75+
{%- unless forloop.last -%},{%- endunless -%}
76+
{% endfor %}
77+
</span>
78+
{% endif %}
79+
</div>
80+
81+
{% if post.pin %}
82+
<div class="pin ms-1">
83+
<i class="fas fa-thumbtack fa-fw"></i>
84+
<span>{{ site.data.locales[lang].post.pin_prompt }}</span>
85+
</div>
86+
{% endif %}
87+
</div>
88+
<!-- .post-meta -->
89+
</div>
90+
<!-- .card-body -->
91+
</div>
92+
</a>
93+
</article>
94+
{% endfor %}
95+
</div>
96+
<!-- #post-list -->
97+

_tabs/categories.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
layout: categories
33
icon: fas fa-stream
4-
order: 1
4+
order: 3
55
---

_tabs/ctfs.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
layout: default
3+
title: "CTF Writeups"
4+
permalink: /writeups/
5+
icon: fas fa-flag
6+
order: 2
7+
---
8+
9+
<h1>CTF Writeups</h1>
10+
11+
12+
{% include lang.html %}
13+
14+
{% assign all_pinned = '' | split: '' %}
15+
{% assign all_normal = '' | split: '' %}
16+
17+
{% for post in site.posts %}
18+
{% if post.tags contains "writeups" %}
19+
{% if post.pin %}
20+
{% assign all_pinned = all_pinned | push: post %}
21+
{% elsif post.hidden != true %}
22+
{% assign all_normal = all_normal | push: post %}
23+
{% endif %}
24+
{% endif %}
25+
{% endfor %}
26+
27+
{% assign posts = all_pinned | concat: all_normal %}
28+
29+
<div id="post-list" class="flex-grow-1 px-xl-1">
30+
{% for post in posts %}
31+
<article class="card-wrapper card">
32+
<a href="{{ post.url | relative_url }}" class="post-preview row g-0 flex-md-row-reverse">
33+
{% assign card_body_col = '12' %}
34+
35+
{% if post.image %}
36+
{% assign src = post.image.path | default: post.image %}
37+
{% capture src %}{% include media-url.html src=src subpath=post.media_subpath %}{% endcapture %}
38+
39+
{% assign alt = post.image.alt | xml_escape | default: 'Preview Image' %}
40+
41+
{% assign lqip = null %}
42+
43+
{% if post.image.lqip %}
44+
{% capture lqip_url %}{% include media-url.html src=post.image.lqip subpath=post.media_subpath %}{% endcapture %}
45+
{% assign lqip = 'lqip="' | append: lqip_url | append: '"' %}
46+
{% endif %}
47+
48+
<div class="col-md-5">
49+
<img src="{{ src }}" alt="{{ alt }}" {{ lqip }}>
50+
</div>
51+
52+
{% assign card_body_col = '7' %}
53+
{% endif %}
54+
55+
<div class="col-md-{{ card_body_col }}">
56+
<div class="card-body d-flex flex-column">
57+
<h1 class="card-title my-2 mt-md-0">{{ post.title }}</h1>
58+
59+
<div class="card-text content mt-0 mb-3">
60+
<p>{% include post-description.html %}</p>
61+
</div>
62+
63+
<div class="post-meta flex-grow-1 d-flex align-items-end">
64+
<div class="me-auto">
65+
<!-- posted date -->
66+
<i class="far fa-calendar fa-fw me-1"></i>
67+
{% include datetime.html date=post.date lang=lang %}
68+
69+
<!-- categories -->
70+
{% if post.categories.size > 0 %}
71+
<i class="far fa-folder-open fa-fw me-1"></i>
72+
<span class="categories">
73+
{% for category in post.categories %}
74+
{{ category }}
75+
{%- unless forloop.last -%},{%- endunless -%}
76+
{% endfor %}
77+
</span>
78+
{% endif %}
79+
</div>
80+
81+
{% if post.pin %}
82+
<div class="pin ms-1">
83+
<i class="fas fa-thumbtack fa-fw"></i>
84+
<span>{{ site.data.locales[lang].post.pin_prompt }}</span>
85+
</div>
86+
{% endif %}
87+
</div>
88+
<!-- .post-meta -->
89+
</div>
90+
<!-- .card-body -->
91+
</div>
92+
</a>
93+
</article>
94+
{% endfor %}
95+
</div>
96+
<!-- #post-list -->
97+

_tabs/tags.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

index.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

_tabs/about.md renamed to index.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
---
2-
# the default layout is 'page'
2+
layout: page
3+
# Index page
34
icon: fas fa-info-circle
4-
order: 4
5+
permalink: /
6+
7+
---
8+
9+
# About Me
10+
<br>
11+
512
---
613

714
Hello! I'm Slavetomints <a href="https://www.lgbtqnation.com/2022/02/adding-pronouns-email-signatures/" title="Why include pronouns?">(she/her)</a>, a cybersecurity student passionate about CTF challenges, Cyber Skyline's National Cyber League, and all things tech. Explore my projects, guides, and writeups to dive into my world of cybersecurity adventures.
@@ -24,6 +31,15 @@ Hello! I'm Slavetomints <a href="https://www.lgbtqnation.com/2022/02/adding-pron
2431
<br>
2532

2633
---
34+
35+
![](https://readme-stats-fork-mauve.vercel.app/api/top-langs/?username=slavetomints&theme=blueberry&hide=html,css&hide_border=false&no-bg=true&no-frame=true&layout=compact&langs_count=10)
36+
37+
![](https://readme-stats-fork-mauve.vercel.app/api/?username=slavetomints&theme=blueberry&rank_icon=github&show_icons=true&count_private=true)
38+
39+
![](https://github-readme-streak-stats-five-roan.vercel.app?user=slavetomints&theme=blueberry)
40+
41+
---
42+
2743
## Contact
2844

2945
You can reach me at the following, please give 1-2 business days for a response:

0 commit comments

Comments
 (0)