Skip to content

Commit

Permalink
add tags
Browse files Browse the repository at this point in the history
  • Loading branch information
moiSentineL committed Feb 14, 2024
1 parent 81ecfc2 commit 1c520df
Show file tree
Hide file tree
Showing 19 changed files with 116 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = function(eleventyConfig) {
dir: {
input: 'src',
includes: '_includes',
layouts: '_layouts',
data: '_data'
}
};
Expand Down
8 changes: 8 additions & 0 deletions src/_includes/colors.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

var check = "#264653";
var check2 = "#2a9d8f";
var check3 = "#e9c46a";
var check4 = "#f4a261";
var check5 = "#e76f51";


7 changes: 7 additions & 0 deletions src/_includes/posttags.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<tag>
{% for tag in tags -%}
{% if tag !== 'post' %}
<a id="{{ tag }}" href="/blog/t/{{ tag }}">#{{ tag }}</a>
{% endif %}
{%- endfor %}
</tag>
8 changes: 8 additions & 0 deletions src/_includes/archives.njk → src/_layouts/archives.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ layout: base.njk
<a href="{{ post.url }}" class="archive">{{ post.data.title }}</a> <time datetime="{{ post.date }}" style="color: #909090">{{ post.date | formatDate }}</time>
<br>
<span>{{ post.data.excerpt }}</span>
<br>
<tag>
{% for tag in post.data.tags -%}
{% if tag !== 'post' %}
<a id="{{ tag }}" href="/blog/t/{{ tag }}">#{{ tag }}</a>
{% endif %}
{%- endfor %}
</tag>
</li>
{%- endfor -%}
</ul>
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions src/_includes/blogs.njk → src/_layouts/blogs.njk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ layout: base.njk
<a href="{{ post.url }}" class="posttitle">{{ post.data.title }}</a> <time datetime="{{ post.date }}" style="color: #909090">{{ post.date | formatDate }}</time>
<br>
<span>{{ post.data.excerpt }}</span>
<br>
<tag>
{% for tag in post.data.tags -%}
{% if tag !== 'post' %}
<a id="{{ tag }}" href="/blog/t/{{ tag }}">#{{ tag }}</a>
{% endif %}
{%- endfor %}
</tag>
</li>
{% endif %}
{%- endfor -%}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/_includes/post.njk → src/_layouts/post.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:

<h1 class="title">{{ title }}</h1>
<h4 class="excerpt">{{ excerpt }}</h4>
{% include "posttags.njk" %}
<hr>

{{ content | safe }}
Expand Down
26 changes: 26 additions & 0 deletions src/_layouts/tags.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Posts tagged {{ tag }}
layout: base.njk
pagination:
data: collections
size: 1
alias: tag
permalink: "blog/t/{{ tag }}/"
---
{% include "bloghead.njk" %}
<main>
<hr>
<div style="text-align: center">
<h2>#{{ tag }}</h2>
</div>
<ul class="postlist">
{% set taglist = collections[ tag ] %}
{% for post in taglist | reverse %}
<li class="post">
<a href="{{ post.url }}" class="archive">{{ post.data.title }}</a> <time datetime="{{ post.date }}" style="color: #909090">{{ post.date | formatDate }}</time>
<br>
<span>{{ post.data.excerpt }}</span>
</li>
{%- endfor -%}
</ul>
</main>
1 change: 0 additions & 1 deletion src/blog/From the observatory.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
aliases:
tags:
- post
- Blog/u
added: February 13, 2024
link:
excerpt: a poem about birds and nature.
Expand Down
1 change: 0 additions & 1 deletion src/blog/God is Evil.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
aliases:
tags:
- post
- Blog/u
added: February 8, 2024
link: https://moisentinel.github.io/blog/p/god-is-evil/
excerpt: there's no way to conclude anything.
Expand Down
3 changes: 3 additions & 0 deletions src/blog/another renaissance.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: another Renaissance
date: 2024-01-28
tags:
- post
- philosophy
- musings

excerpt: "on polymathy, autodidactism and purpose"
---
Long gone are the times when you see people learn for the sake of learning, and long gone are the times when you see people curious, and use that curiosity to solve the unsolvable.
Expand Down
1 change: 1 addition & 0 deletions src/blog/curb your desires.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
tags:
- post
- uhuh
added: 2023-11-05
link: https://postulate.us/@moisentinel/main/p/2023-12-23-Curb-your-Desire-iK9VGAhPWEznNz6LChKtWN
excerpt: less is more?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
aliases:
tags:
- post
- Blog
added: February 5, 2024
link:
excerpt: my base-rate neglect
Expand Down
1 change: 0 additions & 1 deletion src/blog/why do I study.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
aliases:
tags:
- post
- Blog
date: 2024-02-04
link:
excerpt: "a realisation: transcending beyond the concept of scoring"
Expand Down
50 changes: 50 additions & 0 deletions src/css/css.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
src: url("IBMPlexMono-Regular.ttf");
}

:root {
--check: #1e90ff;
--check2: #ffffff;
}

html {
display: flex;
max-width: 75ch;
Expand Down Expand Up @@ -72,9 +77,13 @@ html {
table, th, td{
border: thin solid #e0e0e0;
}
tag {
color: #000000 !important;
}
a {
color:#e0e0e0;
}

h4.excerpt {
color: #b5b5b5;
}
Expand Down Expand Up @@ -160,6 +169,47 @@ a {
font-weight: bold;
}

tag{
font-size: 80%;
margin: 0;
}

tag #life {
text-decoration-color: #553E4E;
}

tag #literature {
text-decoration-color: #E9AFA3;
}

tag #philosophy {
text-decoration-color: #297373;
}

tag #technical {
text-decoration-color: #A1CCA5;
}

tag #musings {
text-decoration-color: #AEC5EB;
}

tag #debugging {
text-decoration-color: #52489C;
}

tag #essays {
text-decoration-color: #2C4251;
}

tag #rationality {
text-decoration-color: #A9FBC3;
}

tag #people {
text-decoration-color: #5C7457;
}

a:hover {
font-weight: bold;
text-decoration-color: #FC766AFF;
Expand Down
3 changes: 3 additions & 0 deletions src/pages/tags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: tags.njk
---

0 comments on commit 1c520df

Please sign in to comment.