Snippets Collections
{{ define "main" }}

<!-- HTML for Photos view here -->

                    {{- $list := where .Pages ".Params.photos" "!=" nil -}}
                    {{- $len := (len $list) -}}
                    {{ range $index, $value := $list }}

					<!-- Loop through each post happens here -->
                    <!-- HTML for each item here -->

                                {{ range first 1 .Params.photos }}
									<!-- HTML for the first image here, example given -->
<a href="{{ .Permalink }}" title="{{ .Title }}"><img src="{{ . }}"></img></a>
                                {{ end }}
	
                    {{ end }}
                                      
<!-- More HTML for Photos view -->				
{{ end }}
star

Thu Mar 18 2021 15:03:29 GMT+0000 (UTC) http://micro.blog

#html #microblog #hugo

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension