fix(posts): fix broken rendering styles

This commit is contained in:
2022-08-18 18:13:21 +02:00
parent 6f43dd1c3a
commit b76ffdd729
4 changed files with 14 additions and 11 deletions

View File

@@ -721,6 +721,12 @@ a.footnote-ref {
margin-right: .8em; margin-right: .8em;
} }
object {
width: 18px;
height: 18px;
vertical-align: middle;
}
.tag { .tag {
margin-right: .5em; margin-right: .5em;
@@ -976,8 +982,3 @@ a.footnote-ref {
background-position: 80% 50%; background-position: 80% 50%;
} }
} }
.post-info object {
width: 24px;
height: 24px;
}

View File

@@ -27,5 +27,6 @@
{{- range .Site.Menus.main }} {{- range .Site.Menus.main }}
<li><a href="{{ .URL | absLangURL }}">{{ .Name }}</a></li> <li><a href="{{ .URL | absLangURL }}">{{ .Name }}</a></li>
{{- end }} {{- end }}
<li><a href="/tags/">Tags</a></li>
</ul> </ul>
</div> </div>

View File

@@ -10,3 +10,4 @@
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a> <a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{- end }} {{- end }}
{{- end }} {{- end }}
<a href="/tags/">Tags</a>

View File

@@ -31,20 +31,20 @@
<hr class="post-end"> <hr class="post-end">
<footer class="post-info"> <footer class="post-info">
{{- with $.Param "author" }} {{- with $.Param "author" }}
<p><object type="image/svg+xml" width="24" height="24" data="{{"author.svg" | relURL}}">{{.}}</object></p> <p><object type="image/svg+xml" data="{{"author.svg" | relURL}}">{{.}}</object></p>
{{- end }} {{- end }}
{{- with .Params.tags }} {{- with .Params.tags }}
<p> <p>
<object type="image/svg+xml" width="24" height="24" data="{{"tag.svg" | relURL}}"></object> <object type="image/svg+xml" data="{{"tag.svg" | relURL}}"></object>
{{- range . -}} {{- range . -}}
<span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{.}}</a></span> <span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{.}}</a></span>
{{- end }} {{- end }}
</p> </p>
{{- end }} {{- end }}
<p><object type="image/svg+xml" width="24" height="24" data="{{"page.svg" | relURL}}">{{ i18n "wordCount " . }}</object></p> <p><object type="image/svg+xml" data="{{"page.svg" | relURL}}"></object>{{ i18n "wordCount" . }}</p>
<p><object type="image/svg+xml" width="24" height="24" data="{{"calendar.svg" | relURL}}">{{ dateFormat .Site.Params.dateform .Date.Local }}</object></p> <p><object type="image/svg+xml" data="{{"calendar.svg" | relURL}}"></object>{{ dateFormat .Site.Params.dateform .Date.Local }}</p>
{{- if and .GitInfo .Site.Params.gitUrl }} {{- if and .GitInfo .Site.Params.gitUrl }}
<p><object type="image/svg+xml" width="24" height="24" data="{{"gitinfo.svg" | relURL}}"></object><a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank" rel="noopener">{{ .GitInfo.AbbreviatedHash }}</a> @ {{ dateFormat .Site.Params.dateform .GitInfo.AuthorDate.Local }}</p> <p><object type="image/svg+xml" data="{{"gitinfo.svg" | relURL}}"></object><a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank" rel="noopener">{{ .GitInfo.AbbreviatedHash }}</a> @ {{ dateFormat .Site.Params.dateform .GitInfo.AuthorDate.Local }}</p>
{{- end }} {{- end }}
</footer> </footer>
</article> </article>
@@ -58,7 +58,7 @@
{{- with .NextInSection }} {{- with .NextInSection }}
<a class="next-post" href="{{ .Permalink }}"> <a class="next-post" href="{{ .Permalink }}">
<span class="post-nav-label"> <span class="post-nav-label">
<object type="image/svg+xml" width="24" height="24" data="{{"nextarrow.svg" | relURL}}"></object>&nbsp;{{ i18n "newer " }} <object type="image/svg+xml" data="{{"nextarrow.svg" | relURL}}"></object>&nbsp;{{ i18n "newer " }}
</span> </span>
<br> <br>
<span>{{ .Title }}</span> <span>{{ .Title }}</span>