let hugo resize all images
This commit is contained in:
parent
19b8f23fc0
commit
16823e27a9
22 changed files with 73 additions and 71 deletions
|
@ -1,5 +1,7 @@
|
|||
<center>
|
||||
<a href="{{ .Get "src" }}" target="_new" style="border-bottom: 0px; background-color: inherit;">
|
||||
<img width="90%" src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" style="border: 0px;" />
|
||||
{{ $original := .Page.Resources.GetMatch (.Get "src") }}
|
||||
{{ $preview := $original.Resize "660x" }}
|
||||
<a href="{{ $original.RelPermalink }}" target="_new" style="border-bottom: 0px; background-color: inherit;">
|
||||
<img src="{{ $preview.RelPermalink }}" alt="{{ .Get "alt" }}" style="border: 0px;" />
|
||||
</a>
|
||||
</center>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<center>
|
||||
<video width="90%" preload="auto" controls style="border: 0px;">
|
||||
<video width="660" preload="auto" controls style="border: 0px;">
|
||||
<source src="{{ .Get "src" }}" />
|
||||
Your browser does not seem to support the video {{ .Get "src" }}.
|
||||
</video>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue