-
Notifications
You must be signed in to change notification settings - Fork 285
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
Make templates return results properly instead of abusing .Scratch #153
Conversation
Somewhat more extensive changes to |
Yeah... That was awkward, I'm not sure why I wrote that way now. 🤣
I have tested it and everything works fine.
Love this refactoring! |
Side-notes: |
The changes to |
It seems that I am done here. The change to |
In other words, I want to implement a categories page that displays like the output of |
@palant Everything works well except the last commit, which returns an empty Also, there are more BTW, do you mind if I invite you as a collaborator of this repository? 😊 |
Ok, I rolled back that last change. It's probably that one scenario where one actually has to use
Yes, I got this in theory but couldn't make that page generated.
I guess that's ok but I cannot promise regular contributions. |
No problem. I have invited you, and after you accept it, you should be able to merge this PR. 😊 Additionally, the commit messages, please follow the Conventional Commits, as MemE's changelog is based on it. Thanks again :) |
So the title of this commit should be "BREAKING CHANGE: Make templates return results properly instead of abusing .Scratch (#153)", right? |
Hmmm,
|
Well, it is a breaking change for anybody overriding templates 😄 |
Then maybe we can add it in the footer, I guess.
|
...instead of abusing .Scratch Fixes reuixiy#137 * Make markdownify.html and content.html return results properly * Make author.html return results properly * Make auto-detect-images.html and images.html return results properly * Make date.html return results properly * Make data-attributes.html return result properly * Make title.html return results properly * Make toc.html return results properly * Make relative-url.html return results properly * Make tree-sections.html return results properly (untested) * Rolled back change to tree-sections.html, doesn't work BREAKING CHANGE: Various templates under `utils/partials/` will return results directly rather than via `.Scratch` now.
The initial commit fixes #137. I also could fail to notice that
hrefTargetBlank
processing inmarkdownify.html
seems very inefficient - let me know if I missed something that the original code was doing better.I must say that I didn't test the changes to
content.html
fully - it's way too many branches and settings. But the changes are pretty straightforward.I want to add more commits to this pull request, there are other templates following the same pattern.