4 lines
No EOL
228 B
JavaScript
4 lines
No EOL
228 B
JavaScript
function showMomentCount() { {{ $a := where $.Site.RegularPages "Section" .Section}}{{ if .IsHome }}{{ $a = $.Site.RegularPages }}{{ end }}
|
|
document.getElementById("momentCount").innerHTML = {{ len $a }};
|
|
}
|
|
showMomentCount() |