Compare commits
2 Commits
c9ee674b2d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| db040050c4 | |||
| 0bc592530b |
@@ -28,7 +28,7 @@
|
|||||||
{{ if isset .Site.Params "showpostsonhomepage" }}
|
{{ if isset .Site.Params "showpostsonhomepage" }}
|
||||||
|
|
||||||
<div class="home-posts list-posts">
|
<div class="home-posts list-posts">
|
||||||
<h2>{{ .Site.Params.ShowPostsOnHomePage | humanize }} Posts</h2>
|
<h2>Prochaines Dates</h2>
|
||||||
|
|
||||||
{{ $posts := where .Site.Pages "Params.type" "post" }}
|
{{ $posts := where .Site.Pages "Params.type" "post" }}
|
||||||
|
|
||||||
@@ -40,7 +40,14 @@
|
|||||||
{{ range $posts.ByDate.Reverse | first 4 }}
|
{{ range $posts.ByDate.Reverse | first 4 }}
|
||||||
{{- partial "list-posts.html" . -}}
|
{{- partial "list-posts.html" . -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ else if eq .Site.Params.ShowPostsOnHomePage "future" }}
|
||||||
|
{{ range $posts.ByDate }}
|
||||||
|
{{ if ge .Params.Date.Unix now.Unix }}
|
||||||
|
{{- partial "list-posts.html" . -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{{ $scrollWheelZoom := default "true" .scrollWheelZoom }}
|
{{ $scrollWheelZoom := default "true" .scrollWheelZoom }}
|
||||||
|
|
||||||
<!--Container-->
|
<!--Container-->
|
||||||
<div id='mapid_{{ $mapId }}' class="leaflet-map" style='width: {{ $mapWidth }}; height: {{ $mapHeight}};'></div>
|
<div id='mapid_{{ $mapId }}' class="leaflet-map" width="{{ $mapWidth }}" style='height: {{ $mapHeight}};'></div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
//Create Map
|
//Create Map
|
||||||
|
|||||||
Reference in New Issue
Block a user