From 7c2e3977a45a372ce4ebd08faf2a8c6a82cebec0 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Wed, 24 Jan 2024 17:58:40 +0100 Subject: added release date to release notes --- src/app/css/launcher.css | 10 ++++++++++ src/app/js/launcher.js | 14 +++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/app/css/launcher.css b/src/app/css/launcher.css index e14efea..19cffb3 100644 --- a/src/app/css/launcher.css +++ b/src/app/css/launcher.css @@ -160,6 +160,16 @@ margin-bottom: var(--padding); } +.section .release-block p:nth-child(1) { + opacity: 0.8; + margin-top: 0px; + margin-bottom: 0px; +} + +.section .release-block h1:nth-child(2) { + margin-top: 0px; +} + .contentBody img {max-width: 100%} .contentBody .img {text-align: center} diff --git a/src/app/js/launcher.js b/src/app/js/launcher.js index c1901f3..98f16dc 100644 --- a/src/app/js/launcher.js +++ b/src/app/js/launcher.js @@ -31,7 +31,19 @@ function formatRelease(notes) { } else { for (let release of notes) { if (release.prerelease) {continue} - let new_content = "# " + release.name + "\n\n" + release.body + "\n\n\n"; + let new_content = + // release date + new Date(release.published_at).toLocaleString() + + "\n" + + + // release name + `# ${release.name}` + + "\n\n" + + + // actual release text/body + release.body + + "\n\n\n"; + content += "
\n" + markdown(new_content, {breaks: true}) + "\n" + -- cgit v1.2.3