Browse Source

slight single.html formatting update

master
jk 5 years ago
parent
commit
d2267daf8a
  1. 4
      themes/nipponalba/layouts/_default/single.html
  2. 11
      themes/nipponalba/static/css/style.css

4
themes/nipponalba/layouts/_default/single.html

@ -26,7 +26,7 @@
</div> </div>
<div class="post-footer-page"> <div class="post-footer-page">
{{ if not (eq .Type "article")}}<span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>{{end}}
{{ if not (eq .Type "article")}}<div class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></div>{{end}}
<div class="info"> <div class="info">
{{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }} {{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
{{ with .Page.Params.category }}{{ partial "taxonomy/categories.html" . }}{{ end }} {{ with .Page.Params.category }}{{ partial "taxonomy/categories.html" . }}{{ end }}
@ -37,7 +37,7 @@
{{ if fileExists $relpathJSON }} {{ if fileExists $relpathJSON }}
<div class="syndication"> <div class="syndication">
{{ $mJSON := getJSON $pathJSON }} {{ $mJSON := getJSON $pathJSON }}
Syndicated to <a href="{{ printf $mJSON.url }}">Pleroma</a>.
Syndicated to <a href="{{ printf $mJSON.url}}">Pleroma</a>
</div> </div>
{{ end }} {{ end }}
</div> </div>

11
themes/nipponalba/static/css/style.css

@ -440,7 +440,16 @@ pre {
.post .post-footer .tags a:hover, .post .post-footer-page .tags a:hover{ .post .post-footer .tags a:hover, .post .post-footer-page .tags a:hover{
text-decoration: none; text-decoration: none;
} }
.post .post-footer-page .syndication{
display:inline;
float:right;
text-align:right;
font-size:13px;
}
.post .post-footer-page .date{
display:inline;
float:left;
}
.footer { .footer {
clear: both; clear: both;
text-align: center; text-align: center;