Custom blog index page
Permalink
I tried similar like this, but want to add a view to to theme, not to the blocks folder or the core, like i creating a view/block_index.php inside the mytheme directory or something. Or if theres an other way, like to make a loop of the blog posts inside a layout file in my theme root. For example:
<div class="container">
<?php foreach ($blog_posts as $post): ?>
<article id="post-<?php echo $post->id ?>">
<h3><?php echo $post->title ?></h3>
<p><?php echo $c->summarize_or_something(128, $post->content, 'Click here for more...')?></p>
</article>
<?php endforeach; ?>