Browse Source

some rendering of the responses page added

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

2
layouts/_default/section.html

@ -48,7 +48,7 @@
{{ if .inreplyto }}<a href="{{ .inreplyto }}" class="link u-url"> post</a>{{ end }} {{ if .inreplyto }}<a href="{{ .inreplyto }}" class="link u-url"> post</a>{{ end }}
{{ if .repostof }}<a href="{{ .repostof }}" class="link u-url"> post</a>{{ end }}</p> {{ if .repostof }}<a href="{{ .repostof }}" class="link u-url"> post</a>{{ end }}</p>
<div class="e-content">{{ .content }}</div><br/> <div class="e-content">{{ .content }}</div><br/>
<a href="{{ .slug | relLangURL }}" class="link u-url time"><time class="dt-published" datetime="{{ .date }}">{{ .date }}</time></a>
<time class="dt-published" datetime="{{ dateFormat "02/01/2006 15:04 GMT" .date }}">{{ dateFormat "02/01/2006 15:04 GMT" .date }}</time>
</article> </article>
</aside> </aside>
</section><hr/> </section><hr/>

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

@ -1,4 +1,5 @@
{{ define "main" }} {{ define "main" }}
{{ if not (eq .Type "response")}}
<article class="post h-entry entry contents"> <article class="post h-entry entry contents">
<div class="{{.Type}}" data-post-type="{{.Type }}"><div class="p-author author" style="display:none;"><a rel="author" class="p-name u-url u-uid" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}</a><img class="u-photo" src="/images/profile.jpg" /></div> <div class="{{.Type}}" data-post-type="{{.Type }}"><div class="p-author author" style="display:none;"><a rel="author" class="p-name u-url u-uid" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}</a><img class="u-photo" src="/images/profile.jpg" /></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>
@ -38,7 +39,6 @@
</aside></div> </aside></div>
</div> </div>
</article>
</article>{{end}}
{{ end }}
{{end}}

7
themes/anatole/static/css/style.css

@ -773,6 +773,13 @@ a.btn {
height: 80px; height: 80px;
} }
.anchor {
display:none;
}
.anchor:target {
display:block;
}
@media screen and (max-width: 960px) { @media screen and (max-width: 960px) {
.sidebar { .sidebar {