Skip to content

Commit e612ec6

Browse files
committed
add researchers to frontmatter and post layout
1 parent b2affa8 commit e612ec6

3 files changed

Lines changed: 210 additions & 0 deletions

File tree

_data/researchers.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
slavetomints:
2+
name: Slavetomints
3+
url: https://slavetomints.github.io
4+
ashthetik:
5+
name: Ashthetik
6+
url: https://ashleyxir.xyz
7+
callmezombie:
8+
name: callmezombie
9+
url: https://github.com/Zonbi-san

_layouts/post.html

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
---
2+
layout: default
3+
refactor: true
4+
panel_includes:
5+
- toc
6+
tail_includes:
7+
- related-posts
8+
- post-nav
9+
script_includes:
10+
- comment
11+
---
12+
13+
{% include lang.html %}
14+
15+
{% include toc-status.html %}
16+
17+
<article class="px-1" data-toc="{{ enable_toc }}">
18+
<header>
19+
<h1 data-toc-skip>{{ page.title }}</h1>
20+
{% if page.description %}
21+
<p class="post-desc fw-light mb-4">{{ page.description }}</p>
22+
{% endif %}
23+
24+
<div class="post-meta text-muted">
25+
<!-- published date -->
26+
<span>
27+
{{ site.data.locales[lang].post.posted }}
28+
{% include datetime.html date=page.date tooltip=true lang=lang %}
29+
</span>
30+
31+
<!-- lastmod date -->
32+
{% if page.last_modified_at and page.last_modified_at != page.date %}
33+
<span>
34+
{{ site.data.locales[lang].post.updated }}
35+
{% include datetime.html date=page.last_modified_at tooltip=true lang=lang %}
36+
</span>
37+
{% endif %}
38+
39+
{% if page.image %}
40+
{% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
41+
{% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
42+
{% capture alt %}alt="{{ page.image.alt | xml_escape | default: "Preview Image" }}"{% endcapture %}
43+
44+
{% if page.image.lqip %}
45+
{%- capture lqip -%}lqip="{{ page.image.lqip }}"{%- endcapture -%}
46+
{% endif %}
47+
48+
<div class="mt-3 mb-3">
49+
<img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip }}>
50+
{%- if page.image.alt -%}
51+
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
52+
{%- endif -%}
53+
</div>
54+
{% endif %}
55+
56+
<div class="d-flex justify-content-between">
57+
<!-- author(s) -->
58+
<span>
59+
{% if page.author %}
60+
{% assign authors = page.author %}
61+
{% elsif page.authors %}
62+
{% assign authors = page.authors %}
63+
{% endif %}
64+
65+
{{ site.data.locales[lang].post.written_by }}
66+
67+
<em>
68+
{% if authors %}
69+
{% for author in authors %}
70+
{% if site.data.authors[author].url -%}
71+
<a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
72+
{%- else -%}
73+
{{ site.data.authors[author].name }}
74+
{%- endif %}
75+
{% unless forloop.last %}{{ '</em>, <em>' }}{% endunless %}
76+
{% endfor %}
77+
{% else %}
78+
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
79+
{% endif %}
80+
</em>
81+
</span>
82+
83+
<div>
84+
<!-- pageviews -->
85+
{% if site.pageviews.provider and site.analytics[site.pageviews.provider].id %}
86+
<span>
87+
<em id="pageviews">
88+
<i class="fas fa-spinner fa-spin small"></i>
89+
</em>
90+
{{ site.data.locales[lang].post.pageview_measure }}
91+
</span>
92+
{% endif %}
93+
94+
<!-- read time -->
95+
{% include read-time.html content=content prompt=true lang=lang %}
96+
</div>
97+
</div>
98+
99+
<!-- researchers -->
100+
{% if page.researchers %}
101+
<div class="mt-1">
102+
Researchers:
103+
<em>
104+
{% for researcher in page.researchers %}
105+
{% assign r = site.data.researchers[researcher] %}
106+
{% if r %}
107+
<a href="{{ r.url | default: '#' }}">{{ r.name }}</a>
108+
{% else %}
109+
{{ researcher }}
110+
{% endif %}
111+
{% unless forloop.last %}{{ '</em>, <em>' }}{% endunless %}
112+
{% endfor %}
113+
</em>
114+
</div>
115+
{% endif %}
116+
</div>
117+
</header>
118+
119+
{% if enable_toc %}
120+
<div id="toc-bar" class="d-flex align-items-center justify-content-between invisible">
121+
<span class="label text-truncate">{{ page.title }}</span>
122+
<button type="button" class="toc-trigger btn me-1">
123+
<i class="fa-solid fa-list-ul fa-fw"></i>
124+
</button>
125+
</div>
126+
127+
<button id="toc-solo-trigger" type="button" class="toc-trigger btn btn-outline-secondary btn-sm">
128+
<span class="label ps-2 pe-1">{{- site.data.locales[lang].panel.toc -}}</span>
129+
<i class="fa-solid fa-angle-right fa-fw"></i>
130+
</button>
131+
132+
<dialog id="toc-popup" class="p-0">
133+
<div class="header d-flex flex-row align-items-center justify-content-between">
134+
<div class="label text-truncate py-2 ms-4">{{- page.title -}}</div>
135+
<button id="toc-popup-close" type="button" class="btn mx-1 my-1 opacity-75">
136+
<i class="fas fa-close"></i>
137+
</button>
138+
</div>
139+
<div id="toc-popup-content" class="px-4 py-3 pb-4"></div>
140+
</dialog>
141+
{% endif %}
142+
143+
<div class="content">
144+
{{ content }}
145+
</div>
146+
147+
<div class="post-tail-wrapper text-muted">
148+
<!-- categories -->
149+
{% if page.categories.size > 0 %}
150+
<div class="post-meta mb-3">
151+
<i class="far fa-folder-open fa-fw me-1"></i>
152+
{% for category in page.categories %}
153+
<a href="{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/">{{ category }}</a>
154+
{%- unless forloop.last -%},{%- endunless -%}
155+
{% endfor %}
156+
</div>
157+
{% endif %}
158+
159+
<!-- tags -->
160+
{% if page.tags.size > 0 %}
161+
<div class="post-tags">
162+
<i class="fa fa-tags fa-fw me-1"></i>
163+
{% for tag in page.tags %}
164+
<a
165+
href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
166+
class="post-tag no-text-decoration"
167+
>
168+
{{- tag -}}
169+
</a>
170+
{% endfor %}
171+
</div>
172+
{% endif %}
173+
174+
<div
175+
class="
176+
post-tail-bottom
177+
d-flex justify-content-between align-items-center mt-5 pb-2
178+
"
179+
>
180+
<div class="license-wrapper">
181+
{% if site.data.locales[lang].copyright.license.template %}
182+
{% capture _replacement %}
183+
<a href="{{ site.data.locales[lang].copyright.license.link }}">
184+
{{ site.data.locales[lang].copyright.license.name }}
185+
</a>
186+
{% endcapture %}
187+
188+
{{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
189+
{% endif %}
190+
</div>
191+
192+
{% include post-sharing.html lang=lang %}
193+
</div>
194+
<!-- .post-tail-bottom -->
195+
</div>
196+
<!-- div.post-tail-wrapper -->
197+
</article>

_posts/2025-07-10-just-another-minecraft-rat.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ tags:
1212
date: 2025-07-10
1313
description: Cause why install just mods?
1414
author: slavetomints
15+
researchers:
16+
- slavetomints
17+
- ashthetik
18+
- callmezombie
1519
---
1620
>In this blog post, we will discuss malware and malicious software. There will be screenshots of the code, as well as small snippets of the things that it does. It is your responsibility not to run the code or snippets, as they will have real-life implications for the security of your system. This is for educational purposes only, and we are not liable for what you do with your computers.
1721
{: .prompt-danger }

0 commit comments

Comments
 (0)