drafting 'smoking' post
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
{{ define "main" }}
|
||||
<header class="page-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{- if .Description }}
|
||||
<div class="post-description">
|
||||
{{ .Description }}
|
||||
</div>
|
||||
{{- end }}
|
||||
</header>
|
||||
|
||||
<div class="tags-list-container">
|
||||
<ul class="custom-tags-list">
|
||||
{{- range .Data.Terms.Alphabetical }}
|
||||
<li>
|
||||
<a href="{{ .Page.Permalink }}">
|
||||
<strong>{{ .Page.Title }}</strong>
|
||||
<span class="tag-count">({{ .Count }})</span>
|
||||
</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.custom-tags-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.custom-tags-list li {
|
||||
margin-bottom: 12px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.custom-tags-list a {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
color: var(--primary);
|
||||
}
|
||||
.custom-tags-list a:hover strong {
|
||||
color: var(--theme);
|
||||
}
|
||||
.tag-count {
|
||||
background: var(--code-bg);
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 0.9em;
|
||||
color: var(--secondary);
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user