author names are now clickable and lead to page with all posts by author #54
@ -4,18 +4,30 @@
|
|||||||
{{ $postPermalink := .Permalink}}
|
{{ $postPermalink := .Permalink}}
|
||||||
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
|
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
|
||||||
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
|
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="network-source"><span class="from p-author">From {{ if .Params.authors }}<b>{{range .Params.authors}} {{.}} {{end}}</b> at {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ .Params.feed_name | urlize }}">{{ .Params.feed_name }}</a></span></div>
|
<div class="network-source"><span class="from p-author">From {{ if .Params.authors }}<b>{{range .Params.authors}} <a href='{{ "/authors/" | relLangURL }}{{ . | urlize }}/'> {{ . }}</a> {{end}}</b> at {{ end }}<a href="{{ "/categories/" | relLangURL }}{{ .Params.feed_name | urlize }}">{{ .Params.feed_name }}</a></span></div>
|
||||||
{{ with (index (.Resources.ByType "image") 0) }}
|
|
||||||
{{ $height := add .Height 0.0}}
|
{{ if .Params.featured_image }}
|
||||||
{{ $ratio := div $height .Width}}
|
{{ $img := .Resources.GetMatch .Params.featured_image }}
|
||||||
{{ $thumb := .Fit "540x540 q80 webp"}}
|
{{ $height := add $img.Height 0.0}}
|
||||||
|
{{ $ratio := div $height $img.Width}}
|
||||||
|
{{ $thumb := $img.Fit "540x540 q80 webp"}}
|
||||||
|
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">
|
||||||
|
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">
|
||||||
|
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a>
|
||||||
|
</div>
|
||||||
|
{{ else if (.Resources.ByType "image") }}
|
||||||
|
{{ with (index (.Resources.ByType "image") 0) }}
|
||||||
|
{{ $img := . }}
|
||||||
|
{{ $height := add .Height 0.0}}
|
||||||
|
{{ $ratio := div $height .Width}}
|
||||||
|
{{ $thumb := .Fit "540x540 q80 webp"}}
|
||||||
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">
|
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">
|
||||||
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">
|
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">
|
||||||
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a>
|
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="p-summary">
|
<div class="p-summary">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
<footer class='post-footer'>
|
<footer class='post-footer'>
|
||||||
<div class='footer-metadata'>
|
<div class='footer-metadata'>
|
||||||
<span class="from p-author">From {{ if .Params.authors }}<b>{{range .Params.authors}} {{.}} {{end}}</b> on{{ end }}</span>
|
<span class="from p-author">{{ if .Params.authors }}From {{range .Params.authors}}<b> <a href='{{ "/authors/" | relLangURL }}{{ . | urlize }}/'> {{ . }}</a> {{end}}</b> on{{ end }}</span>
|
||||||
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
|
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
|
||||||
</div>
|
</div>
|
||||||
{{ if .Truncated }}
|
{{ if .Truncated }}
|
||||||
|
@ -664,6 +664,13 @@ div.pen-source {
|
|||||||
color: var(--social-dark);
|
color: var(--social-dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card.shout .post-footer a{
|
||||||
|
background: var(--social-light);
|
||||||
|
color: var(--social-dark);
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* gallery cards */
|
/* gallery cards */
|
||||||
.card.shout.lumbung-gallery {
|
.card.shout.lumbung-gallery {
|
||||||
border-color: var(--gallery-dark);
|
border-color: var(--gallery-dark);
|
||||||
|
Loading…
Reference in New Issue
Block a user