Skip to content

Commit

Permalink
Add params to display map or not in list page
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Dec 18, 2023
1 parent c9118cb commit af00169
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ module:

params:
places:
map: false # Boolean, showing map on places list
items:
large: true
large: true # Boolean, set large or small items
thumbnail:
desktop: '306x202'
desktop_large: '526x347'
Expand Down
4 changes: 4 additions & 0 deletions layouts/partials/places/container.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{- $showMap := site.Params.places.map | default false -}}
<div class="container">
{{ partial "places/heading" . }}
{{ if $showMap -}}
{{ partial "places/items-map" . }}
{{- end }}
{{ partial "places/paginator" . }}
</div>

0 comments on commit af00169

Please sign in to comment.