Since generation of canonical metatags were updated for paginated pages - which was a good change towards SEO - another "problem" arised with "_Alternate page with proper canonical tag_". It basically relates to the 1st paginated page with "?page=1" in url. Although it contains proper canonical tag indicating main page with blog posts.
I wanted to:
1. get rid of this duplicated page in pagination so that all other pages point to the main blog page instead of page=1, allowing me to also get rid of above mentioned notification in g.search console
2. generate proper relative urls for paginated pages. All html hrefs contain "?page=N" no matter what page is used for blog posts listing. Either it is index page or any other declared page like /blog
Since I use /blog page for posts list I achieved proper href values both on index pages and decalred page, so I'm sharing the changes.
This commit affects only pagination generated using `<?php echo $pagination['html'];?>` which is used afaik only in "blog" theme. All other themes show only previous/next buttons to navigate through posts list, thus additional changes would have to be made per theme basis which is out of scope in this commit.
As a suggestion it would be nice to achieve friendly urls in pagination but I couldn't find out how url routing is solved in htmly.
Gives the admin the config option to choose to replace the RSS description value with Meta Description instead of Body (default is the current setting of body, if nothing is selected defaults to body).
Static placeholders in themes can be replaced with this code now to call the author's avatar:
<?php echo $next['authorAvatar']; ?>
<?php echo $prev['authorAvatar']; ?>
`recent_type` get latest posts by type, category, author (cached). `recent_tag` sorting post by tag (cached). Useful for magazine like layout, different column for different category etc.