Fix the "All posts" link, which used to be hard-coded to link to the section "blog", which may not actually exist or not be the desired target of this link.
Related issue
292
Changes
Changes were made to two templates:
macros/list_posts : this is the incriminated macro, that had a hardcoded "blog" string; this was left as a default value when adding a new parameter to fix the issue, although that default parameter should in principle never be actually used
section : the call to the previous macro is changed to reflect the current section's path
note that 3 other files where found that call the list_posts macro, but experimentation shows that they are not involved in the bug we're trying to fix, as no "All posts" link is generated by their calls to list_posts; they therefore do not need to bother creating and sending a section path, the default "blog" is enough, since it will not be actually used
Accessibility
Nothing done in this respect as this is just a minor change to some internals.
Screenshots
N/A
Type of change
[x ] Bug fix (fixes an issue without altering functionality)
Summary
Fix the "All posts" link, which used to be hard-coded to link to the section "blog", which may not actually exist or not be the desired target of this link.
Related issue
292
Changes
Changes were made to two templates:
macros/list_posts
: this is the incriminated macro, that had a hardcoded "blog" string; this was left as a default value when adding a new parameter to fix the issue, although that default parameter should in principle never be actually usedsection
: the call to the previous macro is changed to reflect the current section's pathlist_posts
macro, but experimentation shows that they are not involved in the bug we're trying to fix, as no "All posts" link is generated by their calls tolist_posts
; they therefore do not need to bother creating and sending a section path, the default "blog" is enough, since it will not be actually usedAccessibility
Nothing done in this respect as this is just a minor change to some internals.
Screenshots
N/A
Type of change
Checklist
theme.toml
with a sane default for the featureconfig.toml
commentstheme.toml
comments