feat: add featured works

This commit is contained in:
eggy 2023-11-19 01:19:43 -05:00
parent fc690345cc
commit a0eb2d3220
13 changed files with 24 additions and 3 deletions

1
assets/images/star.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="0" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>

After

Width:  |  Height:  |  Size: 339 B

View File

@ -1,6 +1,8 @@
<script setup lang="ts"> <script setup lang="ts">
import type { AnyParsedContent } from "@/shared/types"; import type { AnyParsedContent } from "@/shared/types";
import { calcReadingTime } from "@/shared/metadata"; import { calcReadingTime } from "@/shared/metadata";
import { SpecialTags } from "@/data/specialTags";
import IconStar from "@/assets/images/star.svg?component";
const props = defineProps<{ const props = defineProps<{
post: AnyParsedContent; post: AnyParsedContent;
@ -19,7 +21,8 @@ const descText =
<div <div
class="break-words max-w-full rounded-lg p-4 shadow-md border border-2 border-gray-300 dark:border-gray-600" class="break-words max-w-full rounded-lg p-4 shadow-md border border-2 border-gray-300 dark:border-gray-600"
> >
<h3 class="m-0"> <h3 class="m-0 flex items-center gap-1.5">
<IconStar v-if="post.tags.includes('featured')" class="fill-yellow-500 outline-none" />
<a <a
:href="post._path" :href="post._path"
class="no-underline text-left text-2xl sm:text-2xl font-bold hover:text-blue-700 dark:hover:text-blue-400 leading-tight transition" class="no-underline text-left text-2xl sm:text-2xl font-bold hover:text-blue-700 dark:hover:text-blue-400 leading-tight transition"
@ -29,13 +32,14 @@ const descText =
</h3> </h3>
<p class="my-1 text-sm"><Date :doc="post" /> · {{ descText }}</p> <p class="my-1 text-sm"><Date :doc="post" /> · {{ descText }}</p>
<div class="flex flex-wrap"> <div class="flex flex-wrap">
<template v-for="(tag, index) in post.tags" :key="index">
<Tag <Tag
:dest="`/tags/${type}/${tag}`" :dest="`/tags/${type}/${tag}`"
v-for="(tag, index) in post.tags"
:key="index"
:name="tag" :name="tag"
:highlight="highlighttags?.includes(tag)" :highlight="highlighttags?.includes(tag)"
v-if="!SpecialTags.includes(tag)"
/> />
</template>
</div> </div>
<ContentRenderer :value="post" :excerpt="true" tag="section"> <ContentRenderer :value="post" :excerpt="true" tag="section">
<template #empty>No excerpt available.</template> <template #empty>No excerpt available.</template>

View File

@ -4,6 +4,7 @@ date: 2021-08-21
tags: tags:
- primoprod - primoprod
- tech - tech
- featured
--- ---
Welcome to the very first [Primoprod](https://primoprod.eggworld.me) progress report! In a similar vein to quite a few open source emulation projects (such as those I follow myself using [emufeed](https://github.com/potatoeggy/emufeed/blob/master/sources.py)), I'll be releasing these tidbits in lieu of daily Unstagnation shorts sometimes. Welcome to the very first [Primoprod](https://primoprod.eggworld.me) progress report! In a similar vein to quite a few open source emulation projects (such as those I follow myself using [emufeed](https://github.com/potatoeggy/emufeed/blob/master/sources.py)), I'll be releasing these tidbits in lieu of daily Unstagnation shorts sometimes.

View File

@ -4,6 +4,7 @@ date: "2022-01-15"
tags: tags:
- tech - tech
- primoprod - primoprod
- featured
--- ---
Six months have passed since the [first progress report](/blog/2021/primoprod-progress-report/). Since then, a flood of changes have made it in, including hundredth-class Android support! Six months have passed since the [first progress report](/blog/2021/primoprod-progress-report/). Since then, a flood of changes have made it in, including hundredth-class Android support!

View File

@ -4,6 +4,7 @@ date: 2020-06-25
tags: tags:
- barin - barin
- unstagnation - unstagnation
- featured
--- ---
It is — unethical and *deeply* immoral to block our people from knowledge. Is Leeco not a free tribe? Do we not accept those in pursuit of information? We cannot block our citizens from learning more about the universe to further the human race. Our tribe was founded on the principle of helping each other learn and grow by education. We cannot learn if we never challenge our beliefs, no matter how deep their roots lie — you might remember how ingrained racism was in Leeco so many decades back — and we cannot grow as a society if we resist change! If we do not rapidly adapt to the world, the world will rapidly adapt around us. And that is unacceptable. It is — unethical and *deeply* immoral to block our people from knowledge. Is Leeco not a free tribe? Do we not accept those in pursuit of information? We cannot block our citizens from learning more about the universe to further the human race. Our tribe was founded on the principle of helping each other learn and grow by education. We cannot learn if we never challenge our beliefs, no matter how deep their roots lie — you might remember how ingrained racism was in Leeco so many decades back — and we cannot grow as a society if we resist change! If we do not rapidly adapt to the world, the world will rapidly adapt around us. And that is unacceptable.

View File

@ -4,6 +4,7 @@ date: 2020-06-19
tags: tags:
- barin - barin
- unstagnation - unstagnation
- featured
--- ---
*Test 19/20 failed: Memory access violation.* *Test 19/20 failed: Memory access violation.*

View File

@ -3,6 +3,7 @@ title: Wet Hair
date: 2020-06-26 date: 2020-06-26
tags: tags:
- unstagnation - unstagnation
- featured
--- ---
*Splash!* *Splash!*

View File

@ -3,6 +3,7 @@ title: A Favour
date: 2021-06-20 date: 2021-06-20
tags: tags:
- unstagnation - unstagnation
- featured
--- ---
*Ring…ring…ring…* *Ring…ring…ring…*

View File

@ -4,6 +4,7 @@ date: 2021-11-01
tags: tags:
- birds - birds
- unstagnation - unstagnation
- featured
--- ---
**Summary:** The Birds enter a debate at school over the supremacy of waffles over pancakes. Obviously, one of them is the better food, but it's up to them to prove it. **Summary:** The Birds enter a debate at school over the supremacy of waffles over pancakes. Obviously, one of them is the better food, but it's up to them to prove it.

View File

@ -4,6 +4,7 @@ date: 2021-08-19
tags: tags:
- ibia - ibia
- unstagnation - unstagnation
- featured
--- ---
"…And never come back again, boy!" "…And never come back again, boy!"

View File

@ -4,6 +4,7 @@ date: 2022-10-24
tags: tags:
- birds - birds
- unstagnation - unstagnation
- featured
--- ---
**Summary:** Bean Bird and Noodle Bird enjoy a chat together on a quiet night slaving away before they leave in the summer. Bean wishes she had a stronger drink. **Summary:** Bean Bird and Noodle Bird enjoy a chat together on a quiet night slaving away before they leave in the summer. Bean wishes she had a stronger drink.

3
data/specialTags.ts Normal file
View File

@ -0,0 +1,3 @@
export const SpecialTags: string[] = [
"featured",
];

View File

@ -58,5 +58,9 @@ export const tagInfo: Record<string, TagData> = {
name: "Projections in the Sky", name: "Projections in the Sky",
description: "Dreams or reality — what is the difference?", description: "Dreams or reality — what is the difference?",
}, },
featured: {
name: "Featured",
description: "Works that are less rambly and more actually good!",
}
}; };
export default tagInfo; export default tagInfo;