Remove style.css; put all styles in app.css; add post_figure shortcode
This commit is contained in:
parent
5aabf75702
commit
8c8f97a607
4 changed files with 57 additions and 48 deletions
12
layouts/shortcodes/post_figure.html
Normal file
12
layouts/shortcodes/post_figure.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<figure>
|
||||
{{ $img := (.Page.Resources.GetMatch (.Get "name")) }}
|
||||
{{ $resized_img := $img.Fit "576x576" }}
|
||||
<a href="{{ $img.RelPermalink }}">
|
||||
<img src="{{ $resized_img.RelPermalink }}" />
|
||||
</a>
|
||||
<figcaption>
|
||||
{{ if $img.Title }}
|
||||
<h4>{{ $img.Title }}</h4>
|
||||
{{ end }}
|
||||
</figcaption>
|
||||
</figure>
|
Loading…
Add table
Add a link
Reference in a new issue