Skip to content

Commit

Permalink
roadmap: fix countdown
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeping-h committed Mar 1, 2024
1 parent f54402c commit 49823fd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions themes/hugo-bulma-blocks-theme/layouts/shortcodes/roadmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,13 @@ <h3 class="title">Development Version</h3>
var timeinterval = setInterval(updateClock, 1000);
}

var deadline = new Date(Date.parse(new Date()) + 15 * 24 * 60 * 60 * 1000);
initializeClock('point-release', deadline);
initializeClock('freeze', deadline);
initializeClock('package', deadline);
</script>
{{ with index .Site.Data.conf }}
const nextFreezeDate = new Date({{ .nextfreezedate }});
const nextReleaseDate = new Date({{ .nextreleasedate }});
const nextPointReleaseDate = new Date({{ .nextpointreleasedate }});
{{ end }}

initializeClock('point-release', nextPointReleaseDate);
initializeClock('freeze', nextFreezeDate);
initializeClock('package', nextReleaseDate);
</script>

0 comments on commit 49823fd

Please sign in to comment.