diff --git a/README.rst b/README.rst index 1171a8e..056df6a 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -Version 0.8rc1 +Version 0.8rc2 A brand new **hyde** ==================== @@ -108,7 +108,7 @@ Next Steps 4. Plugins: - Tags ✓ - - Atom / RSS + - Atom / RSS ✓ - Text Compressor (CSS, JS, HTML) ✓ - Image optimizer ✓ diff --git a/hyde/layouts/basic/layout/atom.j2 b/hyde/layouts/basic/layout/atom.j2 index e03c40b..5f894fe 100644 --- a/hyde/layouts/basic/layout/atom.j2 +++ b/hyde/layouts/basic/layout/atom.j2 @@ -15,7 +15,7 @@ {% block feed_extra %} {% endblock %} - {{ now|xmldatetime }} + {{ time_now|xmldatetime }} {{ content_url(resource.url) }}/ @@ -27,13 +27,22 @@ {{ res.meta.created|xmldatetime }} {{ res.meta.created|xmldatetime }} {{ content_url(res.url) }} + {% for tag in res.meta.tags %} + + {% endfor %} + + {% refer to res.url as article -%} + {% filter forceescape -%} {% if resource.meta.excerpts_only -%} - {{ render_excerpt(res) }} + {{ article.image|markdown|typogrify }} + {{ article.excerpt|markdown|typogrify }} {%- else %} - {{ render_post(res) }} + {{ article.post|markdown|typogrify }} {%- endif %} - {{ res.text }} + {%- endfilter %} {% endfor %} diff --git a/hyde/layouts/basic/layout/macros.j2 b/hyde/layouts/basic/layout/macros.j2 index c1172e8..d60c8d3 100644 --- a/hyde/layouts/basic/layout/macros.j2 +++ b/hyde/layouts/basic/layout/macros.j2 @@ -1,15 +1,3 @@ -{% macro render_post(res) %} -{% refer to res.url as article %} -
-

{{ res.meta.title }}

- -{{ article.post|markdown|typogrify }} -
-{% endmacro %} - - {% macro render_excerpt(res, class=None) %} {% refer to res.url as post %}