Skip to content

bugfix: Fixed featured posts displayed in wrong order - #1042

Merged
nathanrod merged 1 commit into
mainfrom
bug/featured-posts
Aug 11, 2026
Merged

bugfix: Fixed featured posts displayed in wrong order#1042
nathanrod merged 1 commit into
mainfrom
bug/featured-posts

Conversation

@nathanrod

Copy link
Copy Markdown
Member

PR type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other... Please describe:

PR checklist

Please check if your PR fulfills the following requirements:

  • I have read the CONTRIBUTING.md doc
  • The Git workflow follows our guidelines: CONTRIBUTING.md#git
  • I have added necessary documentation (if appropriate)

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@nathanrod
nathanrod merged commit fb876b7 into main Aug 11, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this to Done in ivpn.net Aug 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the ordering of “Featured posts” on the blog single-post layout so that highlighted posts are displayed in the intended (most-recent-first) order.

Changes:

  • Reverse the .ByLastmod sort when rendering featured posts on the blog post page.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 63 to +67
{{if gt (len (where .Site.Pages ".Params.highlighted" true)) 0}}
<section class="blog-article">
<p class="sidebar-header">Featured posts</p>
<div class="blog-article__highlighted-wrapper">
{{ range first 3 (where .Site.Pages ".Params.highlighted" true).ByLastmod }}
{{ range first 3 (where .Site.Pages ".Params.highlighted" true).ByLastmod.Reverse }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants