texpert/florsan

View on GitHub
app/apps/themes/florsan_first/views/index.html.erb

Summary

Maintainability
Test Coverage
<% (current_site.the_post_type("post").the_posts.reorder(published_at: :desc).decorate rescue {}).each_with_index do |post, index| %>
    <article class="post-<%= index %> post type-post status-publish format-standard hentry category-sin-categoria" id="post-<%= index %>">
        <header class="entry-header">
<!--            <div class="entry-thumbnail">-->
                <%#= raw post.the_link_thumb() if post.has_thumb?%>
<!--            </div>-->
            <h1 class="entry-title">
                <a rel="bookmark" href="<%= post.the_url %>"><%= post.the_title %></a>
            </h1>
            <div class="entry-meta">
                <span class="date">
                    <a rel="bookmark" title="Enlace permanente a <%= post.the_title %>" href="<%= post.the_url %>">
                        <time datetime="" class="entry-date"><%= l(post.published_at, format: :long) %></time>
                    </a>
                </span>
                <span class="categories-links">
                    <%= raw get_taxonomy(post.the_categories.decorate, 'category tag') %>
                </span>
                <span class="tags-links">
                    <%= raw get_taxonomy(post.the_tags.decorate, 'tag') %>
                </span>
            </div>
        </header>
        <div class="entry-content">
            <%= raw post.the_content %>
        </div>
        <% if post.the_comments.count > 0 %>
            <footer class="entry-meta">
                <div class="comments-link">
                    <a href="<%= post.the_url %>">Ver los comentarios</a>
                </div>
            </footer>
        <% end %>
    </article>
<% end %>