Skip to content

Commit ecab109

Browse files
committed
feat: make uses fully customizable by using only the data yml
1 parent 4be5c0e commit ecab109

File tree

3 files changed

+113
-88
lines changed

3 files changed

+113
-88
lines changed

_data/gear.yml

Lines changed: 60 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,71 @@
1-
hardware:
1+
- category: Hardware
2+
fa_icon: fas fa-microchip
3+
items:
24
- name: Mac mini 2023 (M2 / 16GB / 512GB)
3-
fa_icon: fas fa-computer
4-
simple_icon:
5+
material: desktop_mac
56
- name: LG 27UL850-W
6-
fa_icon: fas fa-display
7-
simple_icon:
7+
material: monitor
88
- name: Apple AirPods Pro 2 (for peace of mind)
9-
fa_icon: fas fa-headphones
10-
simple_icon:
11-
- name: Logitech MX Mechanical Mini
12-
fa_icon: fas fa-keyboard
13-
simple_icon:
14-
- name: Logitech MX Master 3S
15-
fa_icon: fas fa-mouse
16-
simple_icon:
17-
- name: PS5, Steam Deck OLED 512
18-
fa_icon: fa-solid fa-gamepad
19-
software:
9+
material: headphones
10+
- name: Logitech MX Mechanical Mini for Mac
11+
material: keyboard
12+
- name: Logitech MX Master 3S for Mac
13+
material: mouse
14+
- name: PS5 | Steam Deck OLED 512
15+
material: sports_esports
16+
17+
- category: Software
18+
fa_icon: fas fa-code
19+
info: Egy halom általam használt vagy csak egyszerűen hasznos appot / libet találhatsz még a Github profilomon
20+
info_url: https://github.com/tothlp?tab=stars
21+
items:
2022
- name: IntelliJ IDEA Ultimate
2123
simple_icon: intellijidea/white
2224
- name: VS Code
2325
fa_icon: fas fa-code
2426
- name: Warp
2527
simple_icon: warp/white
26-
gear:
28+
29+
- category: HO / Gear
30+
fa_icon: fas fa-gear
31+
items:
32+
- name: IKEA Relatera (995.528.65, 117x60)
33+
material: desk
34+
url: https://www.ikea.com/hu/hu/p/relatera-asztal-uelo-allomunkahoz-feher-s99552865/
35+
- name: IKEA Markus
36+
material: chair_alt
37+
url: https://www.ikea.com/hu/hu/p/markus-irodai-szek-vissle-soetetszuerke-70261150/
2738
- name: Artimo Desk Mat Felt Series
28-
fa_icon: fa-solid fa-rug
29-
- name: Ikea LAGERGÅNG
30-
fa_icon: fa-regular fa-lightbulb
39+
material: crop_16_9
40+
url: https://artimo.design/products/desk-mat-felt-series?variant=46710248079694
41+
- name: IKEA LAGERGÅNG
42+
material: table_lamp
43+
url: https://www.ikea.com/hu/hu/p/lagergang-led-es-lampa-monitorhoz-fenyereje-szabh-tuerkiz-10542422/
3144
- name: Samsonite Securipak 2.0 17.3"
32-
fa_icon: fa-solid fa-briefcase
45+
material: personal_bag
46+
- name: Bellroy Tech Kit Compact
47+
material: cases
48+
- name: UGREEN Nexode 65W | NOMAD USB-C Cable
49+
material: battery_charging_full
50+
51+
- category: Coffee
52+
fa_icon: fas fa-coffee
53+
info: Receptek, egyéb kávés tartalmak
54+
info_url: /coffee
55+
items:
56+
- label: Pod Brewer
57+
name: Krups Essenza Mini (XN1108CP)
58+
- label: Coldbrew
59+
name: Hario Mizudashi
60+
- label: Espresso - Percolation
61+
name: Bialetti Moka Express
62+
- label: Filter
63+
name: Aeropress (+ Fellow Prismo, optional)
64+
- label: Other, non-used brewers
65+
name: Nanopresso, French Press
66+
- label: Scale
67+
name: Timemore Black Mirror Basic
68+
- label: Grinder
69+
name: 1Zpresso JX
70+
- label: Kettle
71+
name: Tchibo (98096) elektromos hattyúnyakú vízforraló

_layouts/Post.html

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<link href="{{ site.baseurl }}/assets/css/Util.css" rel="stylesheet" media="all" class="default" />
3838
<link href="{{ site.baseurl }}/assets/css/vendor/Katex.css" rel="stylesheet" media="all" class="default" />
3939
<script src="https://kit.fontawesome.com/e1ff1f6e50.js" crossorigin="anonymous"></script>
40+
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
4041

4142
<!--[if IE]>
4243
<link href="/assets/css/ie-target.css" rel="stylesheet" type="text/css"/>
@@ -97,15 +98,15 @@ <h5 class="meta-title">← BACK</h5>
9798
li {border-bottom: 1px solid var(--color-border-light); list-style: none; padding: 0.4rem 0 0.4rem 0;}
9899
.content ul { padding-left: 0px;}
99100
h3 {padding-top: 1rem; padding-bottom: 0rem;}
100-
</style>
101+
</style>
101102
{%- endif -%}
102103

103104
{%- if page.format == "log" -%}
104-
<!-- Layout 4 Logs-->
105+
<!-- Layout 4 Logs-->
105106
{% comment %}
106107
# The following snippet checks if the cover is a URL or a local file, making it possible to use local and remote images as covers.
107108
# Local images must use relative url, while remote images must use the full URL.
108-
{% endcomment %}
109+
{% endcomment %}
109110
{% if page.cover contains "http" %}
110111
{% assign cover = page.cover %}
111112
{% else %}
@@ -141,8 +142,8 @@ <h1 style="padding-bottom: 0px">
141142
{%- endif -%}
142143
</div>
143144

144-
{%- include Content.html -%}
145-
{%- include Backlinks.html -%}
145+
{%- include Content.html -%}
146+
{%- include Backlinks.html -%}
146147
{%- else -%}
147148

148149

@@ -169,16 +170,16 @@ <h5 class="meta-title"><a href="{{ site.baseurl }}/">← Home</a></h5>
169170
<div class="jumbo">{{page.title}}</div>
170171
{%- include Content.html -%}
171172
{% for post in site.posts %}
172-
<div class="list-feed">
173+
<div class="list-feed">
173174
<a href="{{ site.baseurl }}{{post.url}}" style="text-decoration: none;display: flex;justify-content: space-between;flex-direction: row;width: 100%;">
174175
<div class="writinglist-title">{{post.title }}</div>
175176
</a>
176177
</div>
177178
{%- endfor -%}
178-
</div>
179+
</div>
179180

180181
<ul>
181-
182+
182183
{%- endif -%}
183184

184185
<!--- Post Layout-->
@@ -211,13 +212,13 @@ <h1>{{ page.title }}</h1>
211212
<div class="title-right">
212213
<p>{{ page.description }}</p>
213214
</div>
214-
</div>
215+
</div>
215216
{%- include Content.html -%}
216217
</div>
217218
{%- endif -%}
218219
</div>
219-
</section>
220-
{%- include Footer.html -%}
220+
</section>
221+
{%- include Footer.html -%}
221222
</main>
222223
</body>
223224
</html>

_notes/lists/uses.md

Lines changed: 41 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,54 @@
11
---
22
title: Uses
33
format: list
4-
description: "Utoljára frissítve: 2025. 03. 11."
4+
description: "Utoljára frissítve: 2025. 03. 12."
55
permalink: /uses
66
---
77

8-
## <i class="fas fa-microchip"></i> Hardware
9-
10-
<ul>
11-
{% for entry in site.data.gear.hardware %}
12-
<li>
13-
{% if entry.fa_icon %}
14-
<i class="icon-left {{entry.fa_icon}}"></i>
8+
{% for category in site.data.gear %}
9+
<h2>
10+
{% if category.fa_icon %}
11+
<i class="icon-left {{category.fa_icon}}"></i>
12+
{% elsif category.simple_icon %}
13+
<img src="https://cdn.simpleicons.org/{{category.simple_icon}}" class="icon-left" style="width: 18px;">
14+
{% elsif category.material %}
15+
<i class="icon-left material-symbols-outlined">{{category.material}}</i>
1516
{% endif %}
16-
{% if entry.simple_icon %}
17-
<img src="https://cdn.simpleicons.org/{{entry.simple_icon}}" class="icon-left">
17+
{{category.category}}
18+
</h2>
19+
{% if category.info %}
20+
<blockquote>
21+
<i class="fas fa-info-circle icon-left"></i> {{category.info}}:
22+
{% if category.info_url %}
23+
{% capture starts_with_slash %}
24+
{{ category.info_url | slice: 0 | strip }}
25+
{% endcapture %}
26+
{% if starts_with_slash contains '/' %}
27+
<a href="{{category.info_url | relative_url}}">{{category.info_url}}</a>
28+
{% else %}
29+
<a href="{{category.info_url}}"></a>
30+
{% endif %}
1831
{% endif %}
19-
{{entry.name}}
20-
</li>
21-
{% endfor %}
22-
</ul>
23-
24-
## <i class="fas fa-gear"></i> HO / Gear
25-
32+
</blockquote>
33+
{% endif %}
2634
<ul>
27-
{% for entry in site.data.gear.gear %}
28-
<li>
29-
{% if entry.fa_icon %}
30-
<i class="icon-left {{entry.fa_icon}}"></i>
31-
{% endif %}
32-
{% if entry.simple_icon %}
33-
<img src="https://cdn.simpleicons.org/{{entry.simple_icon}}" class="icon-left">
34-
{% endif %}
35-
{{entry.name}}
36-
</li>
35+
{% for entry in category.items %}
36+
<li>
37+
{% if entry.fa_icon %}
38+
<i class="icon-left {{entry.fa_icon}}"></i>
39+
{% elsif entry.simple_icon %}
40+
<img src="https://cdn.simpleicons.org/{{entry.simple_icon}}" class="icon-left" style="width: 18px;">
41+
{% elsif entry.material %}
42+
<i class="icon-left material-symbols-outlined">{{entry.material}}</i>
43+
{% elsif entry.label %}
44+
<b>{{entry.label}}:</b>
45+
{% endif %}
46+
{{entry.name}}
47+
{% if entry.url %}
48+
<a href="{{entry.url}}" target="_blank"></a>
49+
{% endif %}
50+
</li>
3751
{% endfor %}
3852
</ul>
39-
40-
## <i class="fas fa-code"></i> Software
41-
42-
<ul>
43-
{% for entry in site.data.gear.software %}
44-
<li>
45-
{% if entry.fa_icon %}
46-
<i class="icon-left {{entry.fa_icon}}"></i>
47-
{% endif %}
48-
{% if entry.simple_icon %}
49-
<img src="https://cdn.simpleicons.org/{{entry.simple_icon}}" class="icon-left" style="width: 18px;">
50-
{% endif %}
51-
{{entry.name}}
52-
</li>
5353
{% endfor %}
54-
</ul>
55-
56-
> <i class="fas fa-info-circle"></i> Egy halom általam használt vagy csak egyszerűen hasznos appot / libet találhatsz még a Github profilomon: <a href="https://github.com/tothlp?tab=stars" alt="Github Stars">https://github.com/tothlp?tab=stars</a>
57-
58-
## <i class="fa-solid fa-mug-hot"></i><a name="coffee"></a> Coffee
59-
60-
* **Pod Brewer:** Krups Essenza Mini (XN1108CP)
61-
* **Coldbrew:** Hario Mizudashi
62-
* **"Espresso" / Percolation:** Bialetti Moka Express
63-
* **Filter:** Aeropress (+ Fellow Prismo, optional)
64-
* **Other, non-used brewers:** Nanopresso, French Press
65-
* **Scale:** Timemore Black Mirror Basic
66-
* **Grinder:** 1Zpresso JX
67-
* **Kettle:** Tchibo (98096) elektromos hattyúnyakú vízforraló
6854

69-
> <i class="fas fa-info-circle"></i> More coffee content: [[Coffee]]

0 commit comments

Comments
 (0)