mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-14 12:42:24 +00:00
SCSS, Image processing, and reorg of content
This commit is contained in:
5
themes/lhs/layouts/shortcodes/image.html
Normal file
5
themes/lhs/layouts/shortcodes/image.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ $img := .Page.Resources.GetMatch (printf "*%s*" (.Get 0)) }}
|
||||
{{ $img = $img.Resize "1256x jpg" }}
|
||||
<figure class="image">
|
||||
<img src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}">`
|
||||
</figure>
|
||||
Reference in New Issue
Block a user