Little bit of cleanup and stuff

This commit is contained in:
Nox Sluijtman 2023-08-10 04:20:23 +02:00
parent 1d5c9d84c8
commit b836565901
4 changed files with 38 additions and 32 deletions

View file

@ -6,20 +6,16 @@
{{ else }}
<h1>{{ .Title }}</h1>
{{ end }}
<div class="posts">
<table>
<table class="posts">
<tr>
<th>Title</th>
<th>Tags</th>
<th>Description</th>
</tr>
{{ range .Paginator.Pages }}
<tr>
<td><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></td>
<td>{{ range .Params.tags }}<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">#{{ . }}</a>&nbsp; {{ end }}</td>
<td><p>{{ .Params.description }}</p></td>
</tr>
{{ end }}
</table>
</div>
</table>
{{ end }}

View file

@ -7,7 +7,9 @@
<details open="">
<summary>Image</summary>
<figure class="postImage">
<a href="{{ .Params.image }}">
<img src="{{ .Params.image }}" alt="{{ .Params.imageDescription }}">
</a>
<figcaption>{{ .Params.imageDescription }}</figcaption>
</figure>
</details>

View file

@ -7,20 +7,16 @@
{{ .Content -}}
</article>
{{ end }}
<div class="posts">
<table>
<table class="posts">
<tr>
<th>Title</th>
<th>Tags</th>
<th>Description</th>
</tr>
{{ range .Paginator.Pages }}
<tr>
<td><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></td>
<td>{{ range .Params.tags }}<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">#{{ . }}</a>&nbsp; {{ end }}</td>
<td><p>{{ .Params.description }}</p></td>
</tr>
{{ end }}
</table>
</div>
</table>
{{ end }}

View file

@ -28,6 +28,13 @@ a:hover{
background-color: #E60073;
}
.postImage a::before{ content: none; }
.postImage a::after{ content: none; }
code{
font-size: 0.9em;
}
img{
max-width: 100%;
align-self: center;
@ -63,6 +70,11 @@ footer pre{
margin: 0;
}
table.posts{ width: 100%; }
.post-content{
text-align: justify;
}
@media(min-width: 81ch){
header{
display:flex;