n8finch
8/29/2016 - 3:46 PM

genesis-angular-app-index.html

genesis-angular-app-index.html

<div ng-controller="Posts" ng-repeat="post in posts">
    <article class="single-post post type-post status-publish format-standard has-post-thumbnail entry">
        <header class="entry-header">
            <h2 class="entry-title">{{post.title.rendered}}</h2>
            <p class="entry-meta">Posted by {{post.author_name}} on {{post.date | date:'longDate'}}</p>
        </header>
        <img class="attachment-post-image size-post-image wp-post-image" ng-src="{{post.featured_image_src}}"/>
        <div class="entry-content">
            <p ng-bind-html="post.excerpt.rendered | to_trusted"></p>
            <p><a href="#/post/{{post.slug}}">Read more...</a></p>
        </div>
        <footer class="entry-footer">
            <p class="entry-meta">
                Filed Under: <span class="entry-categories" ng-repeat="cat in post.category_name">{{cat}}{{$last ? '' : ' | '}}</span>
            </p>
        </footer>
    </article>
</div>