Skip to content

Commit

Permalink
Simplify address with common
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Dec 8, 2023
1 parent 8b6c038 commit dd5b263
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions layouts/partials/places/item/address.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
{{ with .Params.address }}
{{ if or .street .zipcode .city .country }}
<address>
{{ with .street }}
<p>{{ partial "func/PrepareHTML" . }}</p>
{{ end }}
{{ if or .zipcode .city }}
<p>{{ partial "func/PrepareHTML" .zipcode }} {{ partial "func/PrepareHTML" .city }}</p>
{{ end }}
{{ with .country }}
<p>{{ partial "func/PrepareHTML" . }}</p>
{{ end }}
</address>
{{ end }}
{{ end }}
{{ partial "commons/address" (dict "address" .) }}
{{ end }}

0 comments on commit dd5b263

Please sign in to comment.