Browse Source

styling updates

master
jk 4 years ago
parent
commit
14d12fd201
  1. 2
      themes/nipponalba/layouts/_default/single.html
  2. 21
      themes/nipponalba/layouts/index.html
  3. 10
      themes/nipponalba/static/css/style.css

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

@ -32,7 +32,7 @@
{{ $pathJSON := (print .Permalink "bridgy.json") }}
{{ $relpathJSON := (print .RelPermalink "bridgy.json") }}
{{ if fileExists $relpathJSON }}
<br/><div class="syndication">
<div class="syndication">
{{ $mJSON := getJSON $pathJSON }}
Syndicated to <a href="{{ printf $mJSON.url}}">Pleroma</a>
</div>

21
themes/nipponalba/layouts/index.html

@ -16,7 +16,6 @@
</div>
</div>
</div>
<h1>Latest post</h1>
{{ range (first 1 (where .Site.RegularPages "Type" "!=" "response")) }}
<article class="post h-entry entry">
@ -26,16 +25,6 @@
</div>
{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="p-name entry-title">{{ .Title }}</h3>
<aside>
<div class="info">
{{ 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.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 }}
{{ else }}
<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 }}
</div>
<div class="e-content">{{ .Content }}
{{ if eq .Type "photo"}}
<div class="photos">
@ -45,7 +34,15 @@
</div>
{{end}}
</div>
<div class="info">
{{ 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.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 }}
{{ else }}
{{ 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/>
{{ end }}
</div>
</aside>
</div>
<a href="https://brid.gy/publish/mastodon"></a>

10
themes/nipponalba/static/css/style.css

@ -204,6 +204,13 @@ width:80%;
.content::-webkit-scrollbar{
display:none;
}
.about .post{
border: 1px dotted var(--text-colour);
padding: 10px;
display:block;
margin:0;
vertical-align:top;
}
.profile{
width:85% !important;
display:block;
@ -336,8 +343,7 @@ width:80%;
padding:10px;
}
.syndication{
display:inline-block;
float:right;
display:block;
font-size:13px;
margin:0;
}