You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The number of posts in the Related Posts section of the Single layout is hardcoded to 4. It would be useful to be able to change it without having to overwrite the entire Single layout.
Proposal
One or both of the following:
Change the hardcoded value of 4 to be a variable defined in the page frontmatter (preferred) or site configuration
Optionally multiply that variable by 4 in the code, thus making it the number of rows instead of the number of posts
Move the "Related posts" code to an include instead of directly adding it to the layout file
This discussion was converted from issue #2916 on April 07, 2021 11:56.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
The number of posts in the Related Posts section of the Single layout is hardcoded to 4. It would be useful to be able to change it without having to overwrite the entire Single layout.
Proposal
One or both of the following:
Beta Was this translation helpful? Give feedback.
All reactions