diff --git a/themes/vocabulary_theme/templates/blocks/recent-posts.html b/themes/vocabulary_theme/templates/blocks/recent-posts.html index dc9c0fa54..861a34db9 100644 --- a/themes/vocabulary_theme/templates/blocks/recent-posts.html +++ b/themes/vocabulary_theme/templates/blocks/recent-posts.html @@ -1,22 +1,14 @@ {% from "macros/posts.html" import render_post_summary %} -
-
-
-

- {{ this.title }} -

- - See all posts - -
-
+
+

{{ this.title }}

+
    {% for post in site.query('/blog/entries') %} {% set post_loop = loop %} {% if post_loop.index <= 3 %} {{ render_post_summary(post) }} {% endif %} {% endfor %} -
-
-
+ + + See all posts diff --git a/themes/vocabulary_theme/templates/layout.html b/themes/vocabulary_theme/templates/layout.html index d7a386033..a2f1843fb 100644 --- a/themes/vocabulary_theme/templates/layout.html +++ b/themes/vocabulary_theme/templates/layout.html @@ -38,7 +38,7 @@ {% block title %}Welcome{% endblock %} — Creative Commons Open Source - + Skip to content diff --git a/themes/vocabulary_theme/templates/macros/posts.html b/themes/vocabulary_theme/templates/macros/posts.html index 28a263422..d9b1b87b9 100644 --- a/themes/vocabulary_theme/templates/macros/posts.html +++ b/themes/vocabulary_theme/templates/macros/posts.html @@ -2,12 +2,23 @@ {% from "macros/authors_gravatar.html" import render_author_gravatar %} {% macro render_post_summary(post, skip_gravatar=false) %} -
-
- {{ render_author_gravatar(post, skip_gravatar) }} -
-

{{ post.title }}

- {{ render_authors_byline(post) }} +
  • +
    +
    +

    {{ post.title }}

    + + + {% if post.categories %} + {% for category in post.categories %} + {{ category|capitalize }} + {% if not loop.last %}, {% endif %} + {% endfor %} + {% else %} + No categories + {% endif %} + + + +
    + +
    + {{ render_author_gravatar(post, skip_gravatar) }} +
    +
    +
  • {% endmacro %} {% macro render_posts(posts) %}