feat: add featured works
This commit is contained in:
parent
fc690345cc
commit
a0eb2d3220
1
assets/images/star.svg
Normal file
1
assets/images/star.svg
Normal 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 |
@ -1,6 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import type { AnyParsedContent } from "@/shared/types";
|
||||
import { calcReadingTime } from "@/shared/metadata";
|
||||
import { SpecialTags } from "@/data/specialTags";
|
||||
import IconStar from "@/assets/images/star.svg?component";
|
||||
|
||||
const props = defineProps<{
|
||||
post: AnyParsedContent;
|
||||
@ -19,7 +21,8 @@ const descText =
|
||||
<div
|
||||
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
|
||||
: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"
|
||||
@ -29,13 +32,14 @@ const descText =
|
||||
</h3>
|
||||
<p class="my-1 text-sm"><Date :doc="post" /> · {{ descText }}</p>
|
||||
<div class="flex flex-wrap">
|
||||
<template v-for="(tag, index) in post.tags" :key="index">
|
||||
<Tag
|
||||
:dest="`/tags/${type}/${tag}`"
|
||||
v-for="(tag, index) in post.tags"
|
||||
:key="index"
|
||||
:name="tag"
|
||||
:highlight="highlighttags?.includes(tag)"
|
||||
v-if="!SpecialTags.includes(tag)"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
<ContentRenderer :value="post" :excerpt="true" tag="section">
|
||||
<template #empty>No excerpt available.</template>
|
||||
|
@ -4,6 +4,7 @@ date: 2021-08-21
|
||||
tags:
|
||||
- primoprod
|
||||
- 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.
|
||||
|
@ -4,6 +4,7 @@ date: "2022-01-15"
|
||||
tags:
|
||||
- tech
|
||||
- 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!
|
||||
|
@ -4,6 +4,7 @@ date: 2020-06-25
|
||||
tags:
|
||||
- barin
|
||||
- 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.
|
||||
|
@ -4,6 +4,7 @@ date: 2020-06-19
|
||||
tags:
|
||||
- barin
|
||||
- unstagnation
|
||||
- featured
|
||||
---
|
||||
|
||||
*Test 19/20 failed: Memory access violation.*
|
||||
|
@ -3,6 +3,7 @@ title: Wet Hair
|
||||
date: 2020-06-26
|
||||
tags:
|
||||
- unstagnation
|
||||
- featured
|
||||
---
|
||||
|
||||
*Splash!*
|
||||
|
@ -3,6 +3,7 @@ title: A Favour
|
||||
date: 2021-06-20
|
||||
tags:
|
||||
- unstagnation
|
||||
- featured
|
||||
---
|
||||
|
||||
*Ring…ring…ring…*
|
||||
|
@ -4,6 +4,7 @@ date: 2021-11-01
|
||||
tags:
|
||||
- birds
|
||||
- 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.
|
||||
|
@ -4,6 +4,7 @@ date: 2021-08-19
|
||||
tags:
|
||||
- ibia
|
||||
- unstagnation
|
||||
- featured
|
||||
---
|
||||
"…And never come back again, boy!"
|
||||
|
||||
|
@ -4,6 +4,7 @@ date: 2022-10-24
|
||||
tags:
|
||||
- birds
|
||||
- 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.
|
||||
|
3
data/specialTags.ts
Normal file
3
data/specialTags.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export const SpecialTags: string[] = [
|
||||
"featured",
|
||||
];
|
@ -58,5 +58,9 @@ export const tagInfo: Record<string, TagData> = {
|
||||
name: "Projections in the Sky",
|
||||
description: "Dreams or reality — what is the difference?",
|
||||
},
|
||||
featured: {
|
||||
name: "Featured",
|
||||
description: "Works that are less rambly and more actually good!",
|
||||
}
|
||||
};
|
||||
export default tagInfo;
|
||||
|
Loading…
Reference in New Issue
Block a user