-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add a built-in changelog page (updated) #49
Conversation
Deploying with Cloudflare Pages
|
@UltimatChamp, this pull request has conflicts, please resolve them for this PR to move forward. |
Marking this as draft, as I have some plans instead of just a code-block. |
* fix the changelog in light mode * ability to install a specific version from the changelog * make changelog version descriptions more differentiable * support for issue links and code blocks in the changelog * also fix compat with the latest Hugo
More Changes
|
Looks amazing!
|
We can do this, but I was actually thinking about outputting a JSON changelog too to also link to each commit. |
Whoops! Fixed now.
Yeah, this PR was made way back, when a legacy version (1.20.1) of Neoforge existed. |
That would be very convenient. The current code uses some quirks to figure things out, like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to accept this PR as-is, we can easily iterate on it later. Two questions though.
{{ if and .Site.DisqusShortname (index .Params "comments" | default "true") (not .Site.IsServer) }} | ||
{{ if and .Site.Config.Services.Disqus.Shortname (index .Params "comments" | default "true") (not hugo.IsServer) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why these changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To prevent crashing with the latest Hugo.
layouts/shortcodes/changelog.html
Outdated
@@ -0,0 +1,17 @@ | |||
{{ if not ( .Page.Scratch.Get "nfJS") }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you sure about this scratch stuff? At least call it changelogJS
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On doing some research, this line is required to ensure that the js file is included only once on a page...? So I guess you're right.
Thanks a lot, this is nice! Let's iterate from here. |
Closes #43.
Closes #50.
Changes:
Light Mode
Dark Mode
hover.mp4
The changelog can also be accessed via: http://neoforged.net/changelog
The changelog can also be found here:
The changelog link in the Installer Files section has also been replaced.
Added the ability to install a specific version from the changelog.
Fix compatibility with the latest version of Hugo.
Old
Preview URL: https://pr-49.neoforged-website-previews.pages.dev