forked from jakub/jakubb-hugo
work on cal, non func
This commit is contained in:
parent
2f1228da9a
commit
48823310da
@ -9,5 +9,6 @@
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title}}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<h2>LOL</h2>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
|
@ -26,9 +26,40 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ range seq 1 $daysInMonth }}
|
||||
<div class="day">{{ . }}</div>
|
||||
|
||||
{{ range seq 1 $daysInMonth }}
|
||||
<div class="day">
|
||||
{{ $startDate := printf "%4d-%02d-%02dT00:00:00" $year $month . }}
|
||||
{{ $startDate := time.AsTime $startDate }}
|
||||
{{ $endDate := printf "%4d-%02d-%02dT23:59:59" $year $month . }}
|
||||
{{ $endDate := time.AsTime $endDate }}
|
||||
|
||||
{{ . }}
|
||||
`
|
||||
{{ range where $.Site.RegularPages "Section" "eq" "events" }}
|
||||
{{ $eventStart := time.AsTime .Params.start_date | int }}
|
||||
{{ if after $eventStart $startDate }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
|
||||
{{ range where .Site.Pages "Type" "event" }}
|
||||
{{ if (and (gt .Params.start_date $.Date) (lt .Params.end_date $.Date)) }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user