Render archive entries with compact dates, icons, hover cards, and custom year headings in an older NexT theme.
The customized Hexo archive page looks like this:
This article targeted a NexT version that mixed Nunjucks and Swig templates. Current NexT releases may use different files, so first inspect themes/next/layout and adapt the idea rather than blindly replacing theme internals.
Archive entry macro
The custom macro groups posts by year, displays MM-DD, and applies custom classes:
The original workaround changed layout/archive.njk to import _macro/post-collapse.swig. Only do that if your installed theme actually supports the Swig renderer; otherwise convert the macro to the template engine used by your NexT version. Keep theme modifications in source control so upgrades can be reconciled.