How easy is it? It's easier than you think. With one of my free plugins, it's even easier.
- You need to download my HeadTag plugin - don't worry, it's one of my free extensions.
- Enable and configure the plugin, setting "Process Content Tags" to "Yes"
- Create a new "Custom" module.
- Assign it to whatever module position you want the article index to appear
- Set "Show Title" to "No"
- Assign it to appear on all pages
- In the "Options" tab, set "Prepare Content" to "Yes"
- In the "Advanced" tab, set the "Module Style" to "HTML5" (this is optional, you will probably want to try others depending on your template)
- Use the "Toggle Editor" button to view the module content source code, and add the following code:
<div id="mod_article_index">
{headtag:scriptdeclaration}
(function(){
document.addEventListener('DOMContentLoaded',function(){
var ai = document.getElementsByClassName('article-index');
var target = document.getElementById('mod_article_index');
target.appendChild(ai[0]);
});
})();
{/headtag}
</div>
And if you want to see a walkthrough - I made one of those too.
I hope this helps you achieve the same on your website!
Update 12-11-2018: Replaced jQuery code with pure Javascript.