Browse Source

formatting tweaks

master
jk 5 years ago
parent
commit
a8d370750e
  1. 2
      layouts/_default/section.html
  2. 7
      themes/anatole/layouts/_default/single.html
  3. 6
      themes/anatole/static/css/style.css

2
layouts/_default/section.html

@ -8,7 +8,7 @@
<a rel="author" class= "u-author" href="https://jk.nipponalba.scot"><img class="u-photo" src="/images/profile.jpg" /></a> <a rel="author" class= "u-author" href="https://jk.nipponalba.scot"><img class="u-photo" src="/images/profile.jpg" /></a>
</div> </div>
<aside> <aside>
{{if eq .Type "article" }}<a href="{{ .RelPermalink }}" class="link u-url"><h4 class="">{{ .Title }}</h4></a><b>{{ .Description }}</b>{{ end }}
{{if eq .Type "article" }}<a href="{{ .RelPermalink }}" class="link u-url"><h3 class="">{{ .Title }}</h3></a><b>{{ .Description }}</b>{{ end }}
<div class="e-content"> <div class="e-content">
{{ .Content }} {{ .Content }}
</div> </div>

7
themes/anatole/layouts/_default/single.html

@ -1,8 +1,9 @@
{{ define "main" }} {{ define "main" }}
<article class="post h-entry entry">
<article class="post h-entry entry contents">
<div class="{{.Type}}" data-post-type="{{.Type }}"><div class="author" style="display:none;"><a rel="author" class="u-author p-author h-card" href="{{ .RelPermalink }}"><img class="u-photo" src="/images/profile.jpg" /></a></div>
<div class="post-content">{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="post-title p-name entry-title">{{ .Title }}</h3> <div class="post-content">{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="post-title p-name entry-title">{{ .Title }}</h3>
<aside>
<div class="info"> <div class="info">
<a rel="author" class="p-author h-card" href="{{ .RelPermalink }}" style="display:none;"><img class="u-photo" src="/images/profile.png" />{{ .Site.Params.Title }}</a>
<i class="fa fa-sun"></i><a class="u-url" href="{{ .RelPermalink }}"><span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span></a> <i class="fa fa-sun"></i><a class="u-url" href="{{ .RelPermalink }}"><span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span></a>
{{ if eq .Type "article" }}<i class="fa fa-clock"></i><span class="reading-time">{{ .ReadingTime }}-minute read</span>{{end}} {{ if eq .Type "article" }}<i class="fa fa-clock"></i><span class="reading-time">{{ .ReadingTime }}-minute read</span>{{end}}
</div> </div>
@ -25,7 +26,9 @@
</div> </div>
{{- end }} {{- end }}
{{ end }} {{ end }}
</aside></div>
</div> </div>
</article> </article>

6
themes/anatole/static/css/style.css

@ -344,7 +344,7 @@ width:95%;
.post .post-content a:hover, .h-entry a:hover { .post .post-content a:hover, .h-entry a:hover {
color: var(--link-colour); color: var(--link-colour);
} }
.post .post-content h3 {
.post .post-content h3,section aside h3 {
color: var(--text-colour); color: var(--text-colour);
font-size: 22px; font-size: 22px;
font-weight: 600; font-weight: 600;
@ -721,7 +721,7 @@ a.btn {
} }
.contents aside time{ .contents aside time{
font-size:11px;
font-size:12px;
} }
.pagination { .pagination {
@ -773,7 +773,7 @@ a.btn {
.page-top .language-selector i{ .page-top .language-selector i{
padding:0 5px; padding:0 5px;
} }
.post-title h3 {
.post-title h3, section aside h3 {
line-height: 1.6; line-height: 1.6;
} }