Browse Source

styling updates

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

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

@ -32,7 +32,7 @@
{{ $pathJSON := (print .Permalink "bridgy.json") }} {{ $pathJSON := (print .Permalink "bridgy.json") }}
{{ $relpathJSON := (print .RelPermalink "bridgy.json") }} {{ $relpathJSON := (print .RelPermalink "bridgy.json") }}
{{ if fileExists $relpathJSON }} {{ if fileExists $relpathJSON }}
<div class="syndication">
<br/><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>

11
themes/nipponalba/layouts/index.html

@ -26,13 +26,13 @@
</div> </div>
{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="p-name entry-title">{{ .Title }}</h3> {{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="p-name entry-title">{{ .Title }}</h3>
<aside> <aside>
<div class="index_info">
<div class="info">
{{ if eq .Type "article" }} {{ if eq .Type "article" }}
{{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}<span id="info-date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></span><br/> {{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}<span id="info-date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></span><br/>
{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}<span class="reading-time">{{ .ReadingTime }}-minute read</span><br/> {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}<span class="reading-time">{{ .ReadingTime }}-minute read</span><br/>
{{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }} {{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}
{{ else }} {{ else }}
<span id="index-info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span><br/>{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
<span id="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span><br/>{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
{{ end }} {{ end }}
</div> </div>
@ -46,13 +46,6 @@
{{end}} {{end}}
</div> </div>
<div class="index-post-footer">
<div class="info">
{{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
{{ with .Page.Params.category }}{{ partial "taxonomy/categories.html" . }}{{ end }}
{{ with .Page.Params.tag }}{{ partial "taxonomy/tags.html" . }}{{ end }}
</div>
</div>
</aside> </aside>
</div> </div>
<a href="https://brid.gy/publish/mastodon"></a> <a href="https://brid.gy/publish/mastodon"></a>

5
themes/nipponalba/static/css/style.css

@ -305,9 +305,6 @@ width:80%;
float:right; float:right;
font-weight:bold; font-weight:bold;
} }
.index_info i{
opacity: 0.5;
}
.stream{ .stream{
padding-bottom:150px; padding-bottom:150px;
} }
@ -339,7 +336,7 @@ width:80%;
padding:10px; padding:10px;
} }
.syndication{ .syndication{
display:inline;
display:inline-block;
float:right; float:right;
font-size:13px; font-size:13px;
margin:0; margin:0;