Move all layouts to platters theme
This commit is contained in:
parent
de8101efed
commit
66adceaf24
91 changed files with 0 additions and 0 deletions
13
themes/platters/layouts/photos/li_thumbnail_in_grid.html
Normal file
13
themes/platters/layouts/photos/li_thumbnail_in_grid.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{- $gridSize := $.Site.Params.photos.thumbnailSize -}}
|
||||
{{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" $gridSize "Height" $gridSize) -}}
|
||||
{{- $thumbnail = $thumbnail.Crop (printf "%dx%d" $gridSize $gridSize) -}}
|
||||
{{- $altText := $thumbnail.Params.alt -}}
|
||||
<a href="{{ .RelPermalink }}" title="{{ .Title }}">
|
||||
<img
|
||||
src="{{ $thumbnail.RelPermalink }}"
|
||||
{{ with $altText }}
|
||||
alt="{{ . }}"
|
||||
{{ end }}
|
||||
width={{ $gridSize }}
|
||||
height={{ $gridSize }}>
|
||||
</a>
|
Loading…
Add table
Add a link
Reference in a new issue