Skip to content

♻️ Refactor: make base-template easier to read #2348

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

Merged
merged 8 commits into from
Jul 21, 2025

Conversation

ZhenShuo2021
Copy link
Contributor

@ZhenShuo2021 ZhenShuo2021 commented Jul 17, 2025

This PR includes:

  1. Using the global site function instead of .Site

    To simplify your templates, use the global site function regardless of whether the Site object is in context.

  2. Adding comments to improve readability
  3. Making list.html formattable
  4. Modularize the author section in single.html, also fix the author links on multilingual site when author is at bottom

I originally want to modularize everything (#2346 #2347), but decided to keep it minimal to avoid unnecessary coupling.

@nunocoracao nunocoracao merged commit 7817866 into nunocoracao:dev Jul 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants