Compare commits
No commits in common. "a01da17f264b626429c30593462770331721dc6e" and "a4b8f56e64fd34d2a7bdba290ad7f6f1772f05a4" have entirely different histories.
a01da17f26
...
a4b8f56e64
4 changed files with 36 additions and 49 deletions
|
@ -1,31 +1,21 @@
|
||||||
{{ $img := $.Page.Resources.GetMatch (.Get "src")}}
|
{{ $img := $.Page.Resources.GetMatch (.Get "src")}}
|
||||||
|
{{ $test := $img.Permalink }}
|
||||||
|
{{ $name_splitted := split $img.RelPermalink "." }}
|
||||||
|
{{ $name_base := index $name_splitted 0 }}
|
||||||
<figure {{ with .Get "class" }} class="{{ . }}"{{ end }}>
|
<figure {{ with .Get "class" }} class="{{ . }}"{{ end }}>
|
||||||
{{ with .Get "link" }}
|
{{ with .Get "link" }}
|
||||||
<a href="{{ . | absURL }}">
|
<a href="{{ . }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<img src="{{ $img.RelPermalink }}"
|
<picture>
|
||||||
{{ with .Get "alt"}} alt="{{ . }}"{{ end }}
|
<source srcset="{{$img.RelPermalink}}" type="image/jpg">
|
||||||
{{ with .Get "title"}} title="{{ . }}"{{ end }}
|
<img src="{{ $img.RelPermalink }}" alt="{{.Get "alt" }}" />
|
||||||
{{ with .Get "height"}} height="{{ . }}"{{ end }}
|
</picture>
|
||||||
{{ with .Get "width"}} width="{{ . }}"{{ end }} />
|
|
||||||
{{ with .Get "link" }}
|
{{ with .Get "link" }}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Get "caption" }}
|
{{ with .Get "title" }}
|
||||||
<figcaption>
|
<figcaption>
|
||||||
<p>{{ .Get "caption" }}
|
<p>{{ . }}</p>
|
||||||
{{ if .Get "attr" }}
|
|
||||||
<span class="attribution">
|
|
||||||
{{ with .Get "attrlink" }}
|
|
||||||
<a href="{{ . }}">
|
|
||||||
{{ end }}
|
|
||||||
{{ .Get "attr" }}
|
|
||||||
{{ with .Get "attrlink" }}
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
</span>
|
|
||||||
{{ end }}
|
|
||||||
</p>
|
|
||||||
</figcaption>
|
</figcaption>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<footer>
|
<footer>
|
||||||
<cite>
|
<cite>
|
||||||
{{ with .Get "url" }}
|
{{ with .Get "url" }}
|
||||||
<a href="{{ . }}" {{ with $.Get "title"}}title="{{ . }}"{{ end }}>
|
<a href={{ . }} {{ with $.Get "title"}}title="{{ . }}"{{ end }}>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .Get "author" | markdownify }}
|
{{ .Get "author" | markdownify }}
|
||||||
{{ with .Get "url" }}</a>{{end}}</cite>
|
{{ with .Get "url" }}</a>{{end}}</cite>
|
||||||
|
|
|
@ -526,7 +526,7 @@ a:focus {
|
||||||
.article-body figure.border figcaption {
|
.article-body figure.border figcaption {
|
||||||
background-color: var(--background-color-light);
|
background-color: var(--background-color-light);
|
||||||
}
|
}
|
||||||
.article-body figure>a {
|
.article-body figure a {
|
||||||
display: block;
|
display: block;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
|
@ -540,9 +540,6 @@ a:focus {
|
||||||
margin-left: 1rem;
|
margin-left: 1rem;
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
}
|
}
|
||||||
.article-body figure figcaption .attribution {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
@media only screen and (max-width: 320px) {
|
@media only screen and (max-width: 320px) {
|
||||||
.article-body .footnotes ol {
|
.article-body .footnotes ol {
|
||||||
padding-left: 2em;
|
padding-left: 2em;
|
||||||
|
|
Loading…
Reference in a new issue