diff options
-rw-r--r-- | src/app/css/launcher.css | 10 | ||||
-rw-r--r-- | src/app/js/launcher.js | 14 |
2 files changed, 23 insertions, 1 deletions
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 += "<div class='release-block'>\n" + markdown(new_content, {breaks: true}) + "\n" + |