fix: change layout for tags
This commit is contained in:
parent
7d9bec3737
commit
28c2f28a13
@ -15,15 +15,17 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="post-tags">
|
<div class="post-tags">
|
||||||
<small>
|
{{ if ne .Type "page" }}
|
||||||
{{ if ne .Type "page" }}
|
{{ if gt .Params.tags 0 }}
|
||||||
{{ if gt .Params.tags 0 }}
|
<nav class="nav tags">
|
||||||
{{ range .Params.tags }}
|
<ul class="flat">
|
||||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
{{ range .Params.tags }}
|
||||||
{{ end }}
|
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</small>
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{- $.Scratch.Set "isDisqus" true -}}
|
{{- $.Scratch.Set "isDisqus" true -}}
|
||||||
|
@ -34,6 +34,11 @@ a:hover {
|
|||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-tags .tags a {
|
||||||
|
border: 1px solid #fff;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.header nav,
|
.header nav,
|
||||||
.footer {
|
.footer {
|
||||||
border-color: #333;
|
border-color: #333;
|
||||||
|
@ -301,6 +301,23 @@ ul {
|
|||||||
background-color: #f9f2f4;
|
background-color: #f9f2f4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-tags .tags li {
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-tags .tags a {
|
||||||
|
display: inline-block;
|
||||||
|
border: 1px solid #a00;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0px 6px;
|
||||||
|
color: #a00;
|
||||||
|
line-height: 20px;
|
||||||
|
font-size: 12px;
|
||||||
|
text-decoration: none;
|
||||||
|
margin: 0 1px;
|
||||||
|
}
|
||||||
|
|
||||||
.list .posts .post .meta {
|
.list .posts .post .meta {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
|
Loading…
Reference in New Issue
Block a user