Convert links list to individual blog entries #11
@@ -15,11 +15,14 @@
|
||||
{{- $filter := .filter }}
|
||||
{{- if not $image }}
|
||||
{{- warnf "Header image '%s' not found for page %s" .src $page.RelPermalink }}
|
||||
{{- end }}
|
||||
{{- with $image }}
|
||||
{{- else }}
|
||||
{{- $image = partial "image-processing" (dict "image" $image "processes" $processes "filter" $filter) -}}
|
||||
<img src="{{ $image.RelPermalink }}" />
|
||||
{{- end }}
|
||||
<img
|
||||
src="{{ $image.RelPermalink }}"
|
||||
{{- with .text }} title="{{ . }}" {{ end }}
|
||||
{{- with .alt }} alt="{{ . }}" {{ end }}
|
||||
/>
|
||||
{{- with .text }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user