aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-16 20:25:27 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-16 20:25:27 +0200
commit9b4fb13f94bc8fa2f7d50519652bead8ede4ee3a (patch)
treebf9f324c19e92a4759535cd3793366eebfae0439
parentb07eb8d1c06e582e5f177c159d820778029a9d93 (diff)
move stuff around
-rw-r--r--_config.yml8
-rw-r--r--_items/avanswifi.md (renamed from _posts/2021-09-09-avanswifi.md)0
-rw-r--r--_items/connect4.md (renamed from _posts/2021-04-24-connect4.md)0
-rw-r--r--_items/git.md (renamed from _posts/2021-04-28-git.md)0
-rw-r--r--_items/homeauto.md (renamed from _posts/2021-08-17-homeauto.md)0
-rw-r--r--_items/latex.md (renamed from _posts/2022-01-24-latex.md)0
-rw-r--r--_items/redpwn2021.md (renamed from _posts/2021-07-13-redpwn2021.md)0
-rw-r--r--_items/scoop.md (renamed from _posts/2021-07-22-scoop.md)0
-rw-r--r--_items/software.md (renamed from _posts/2021-04-13-software.md)0
-rw-r--r--_sass/globals.css15
-rw-r--r--_sass/tags.css2
-rw-r--r--index.md20
-rw-r--r--search.html15
13 files changed, 43 insertions, 17 deletions
diff --git a/_config.yml b/_config.yml
index 2e1ba16..1c542f1 100644
--- a/_config.yml
+++ b/_config.yml
@@ -1,17 +1,21 @@
title: "Loek's Blog"
domain: blog.pipeframe.xyz
-permalink: /post/:title/
exclude:
- makefile
- license
- readme.md
+collections:
+ items:
+ permalink: /post/:title/
+ output: true
defaults:
- scope:
- type: posts
+ type: items
values:
layout: default
lang: en
toc: true
+ output: true
markdown: kramdown
sass:
style: compressed
diff --git a/_posts/2021-09-09-avanswifi.md b/_items/avanswifi.md
index 95cfbfe..95cfbfe 100644
--- a/_posts/2021-09-09-avanswifi.md
+++ b/_items/avanswifi.md
diff --git a/_posts/2021-04-24-connect4.md b/_items/connect4.md
index 6c5c329..6c5c329 100644
--- a/_posts/2021-04-24-connect4.md
+++ b/_items/connect4.md
diff --git a/_posts/2021-04-28-git.md b/_items/git.md
index 48de24b..48de24b 100644
--- a/_posts/2021-04-28-git.md
+++ b/_items/git.md
diff --git a/_posts/2021-08-17-homeauto.md b/_items/homeauto.md
index 544cf07..544cf07 100644
--- a/_posts/2021-08-17-homeauto.md
+++ b/_items/homeauto.md
diff --git a/_posts/2022-01-24-latex.md b/_items/latex.md
index 11db094..11db094 100644
--- a/_posts/2022-01-24-latex.md
+++ b/_items/latex.md
diff --git a/_posts/2021-07-13-redpwn2021.md b/_items/redpwn2021.md
index df9da29..df9da29 100644
--- a/_posts/2021-07-13-redpwn2021.md
+++ b/_items/redpwn2021.md
diff --git a/_posts/2021-07-22-scoop.md b/_items/scoop.md
index 36c7cc2..36c7cc2 100644
--- a/_posts/2021-07-22-scoop.md
+++ b/_items/scoop.md
diff --git a/_posts/2021-04-13-software.md b/_items/software.md
index d2cda4a..d2cda4a 100644
--- a/_posts/2021-04-13-software.md
+++ b/_items/software.md
diff --git a/_sass/globals.css b/_sass/globals.css
index 81c0b75..769153e 100644
--- a/_sass/globals.css
+++ b/_sass/globals.css
@@ -8,14 +8,23 @@ html, body {
hyphens: auto;
}
-.contentWrapper a {
+.block { display: block; }
+
+.contentWrapper a.nolink {
+ color: unset;
+}
+
+.contentWrapper a:not(.nolink) {
color: var(--links);
- text-decoration: none;
position: relative;
display: inline-block;
}
-.contentWrapper a::after {
+.contentWrapper a {
+ text-decoration: none;
+}
+
+.contentWrapper a:not(.nolink)::after {
content: '';
position: absolute;
left: 0;
diff --git a/_sass/tags.css b/_sass/tags.css
index 2468d3f..8e8e242 100644
--- a/_sass/tags.css
+++ b/_sass/tags.css
@@ -9,7 +9,7 @@
border-radius: 999px;
text-decoration: none;
- color: var(--fg);
+ color: var(--fg) !important;
box-shadow: inset 0 0 0 2px var(--tag-color);
diff --git a/index.md b/index.md
index d80d642..e1758b9 100644
--- a/index.md
+++ b/index.md
@@ -27,16 +27,16 @@ https://{{ site.domain }}/atom.xml
## Recent posts
<div class="recentPosts">
-{% for post in site.posts limit:4 %}
- <div class="postCard">
- <a href="{{ post.url }}">
- <img src="{{ post.cover }}" alt="post cover" class="cover">
- <h2 class="title">{{ post.title }}</h2>
- <strong class="subtitle">{{ post.subtitle }}</strong>
- </a>
- {% include tags.html tags=post.tags %}
- </div>
-{% endfor %}
+ {% for post in site.items limit:4 %}
+ <div class="postCard">
+ <a href="{{ post.url }}" class="nolink block">
+ <img src="{{ post.cover }}" alt="post cover" class="cover">
+ <h2 class="title">{{ post.title }}</h2>
+ <strong class="subtitle">{{ post.subtitle }}</strong>
+ </a>
+ {% include tags.html tags=post.tags %}
+ </div>
+ {% endfor %}
</div>
[Go to all posts](/search){:.button}
diff --git a/search.html b/search.html
index ed39150..026a20c 100644
--- a/search.html
+++ b/search.html
@@ -13,5 +13,18 @@ toc: false
</button>
</form>
-<div class="searchResults"></div>
+<div class="searchResults">
+ {% for post in site.items %}
+ <div class="post">
+ <a href="{{ post.url }}" class="nolink block">
+ <b class="title">{{ post.title }}</b>
+ <p class="subtitle">{{ post.subtitle }}</p>
+ <p class="authordate">???</p>
+ <input class="keywords" type="hidden" value=""/>
+ </a>
+ {% include tags.html tags=post.tags %}
+ </div>
+ {% endfor %}
+</div>
+