blob: 1800d5a21f8ab17cc3ddae6190905992302b0875 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
---
import type { CollectionEntry } from "astro:content";
interface Props {
keywords: CollectionEntry<"blog">["data"]["keywords"];
}
const { keywords } = Astro.props;
---
<aside>
<ul>
{
keywords.map((x) => (
<li>
<a rel="tag" itemprop="keywords" href={`/blog/keywords/${x}`}><b>{
x
}</b></a>
</li>
))
}
</ul>
</aside>
<style>
ul {
list-style-type: none;
padding-inline-start: 0;
max-width: 40ch;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1em;
margin-inline: auto;
}
ul > li {
font-size: smaller;
display: inline-block;
}
ul > li::before {
content: "#";
color: var(--color-active);
font-weight: bolder;
}
@media print {
aside {
display: none;
}
}
</style>
|