1
0
Fork 0

Added taglist and fixed blog index.md (part 2)

master
Stefan 1 year ago
parent bd8246c2f3
commit 7baf69ca4e

@ -74,11 +74,11 @@
posts:</p>
<ul class='i-blog'>
<!-- Ranges through content/posts/*.md -->
{{ range where .Paginator.Pages "Section" "posts" }}
<li>{{.Date.Format "2006 Jan 02"}} - <a href="{{.Permalink}}">{{.Title}}</a></li>
{{ range where .Paginator.Pages.ByDate.Reverse "Section" "posts" | first 8 }}
<li>{{.Date.Format "2006 Jan 02"}} - <a href="{{.RelPermalink}}">{{.Title}}</a></li>
{{ end }}
</ul>
<p class="i-blog"><a href="./posts">Read more ...</a></p>
<p class="i-blog"><a href="./posts">Read more...</a></p>
<h2>
<span class="i-big-icon">

@ -1,10 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>$Title$</title>
</head>
<body>
$END$
</body>
</html>
<div class="taglist">
<div class='tag-title'>
<h1>Tags</h1>
<hr style="margin-top: 10px;"/>
</div>
<div class='tag-content'>
{{ range where .Site.Pages "Kind" "term" }}
<span class="tag">
<a href="{{ .RelPermalink }}">#{{ .Title }}</a>
</span>
{{ end }}
</div>
</div>

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"Target":"main.254147b791cae792647ee763946254efdf7821dfe56cd8a49db0052c87cc020d.css","MediaType":"text/css","Data":{"Integrity":"sha256-JUFHt5HK55JkfudjlGJU7994Id/lbNiknbAFLIfMAg0="}}
{"Target":"main.f34f5deba7cc460177e4e91ccd25c29ab2919edd7a71a72cc6218644411fafd8.css","MediaType":"text/css","Data":{"Integrity":"sha256-809d66fMRgF35OkczSXCmrKRnt16cacsxiGGREEfr9g="}}

@ -0,0 +1,40 @@
.taglist {
display: block;
justify-content: center;
width: 80%;
max-width: 800px;
margin-bottom: 40px;
border: 1px solid #A337F0;
border-radius: 5px;
padding-bottom: 10px;
}
.tag-title h1 {
color: #D092FC;
font-weight: bold;
text-align: center;
font-size: 30px;
margin: 10px 30px 0;
}
.tag-content {
text-align: center;
margin:20px;
}
.tag-title hr {
width: 85%;
}
.tag a {
text-decoration: none;
}
.tag a:hover {
color: white;
}
.tag:not(:last-child)::after {
content: "";
padding: 1px;
}

@ -18,4 +18,5 @@
@import "tables";
@import "404";
@import "icons";
@import "index"
@import "index";
@import "taglist";

Loading…
Cancel
Save