Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with render_excerpt #13

Open
solsticedhiver opened this issue Feb 3, 2010 · 0 comments
Open

issue with render_excerpt #13

solsticedhiver opened this issue Feb 3, 2010 · 0 comments

Comments

@solsticedhiver
Copy link

hi.
i just used the default template, and from the code of content/blog/blog.html and _listing.html and _innerlisting.html, i expect to see some excerpts in deploy/blog/blog.html once i run ./hyde.py -g
but there is none.

in fact, if i look at _layout/skeleton/innerlisting.html, this seems wrong

{% if page.excerpt %}
    {% render_excerpt list_page %}
{%endif%}

shouldn't it be {% if list_page.excerpt %} ? but this does not work either. in fact list_page does not seems to have excerpt_title or excerpt_url either. niether page.

the only way to make it work is to simple remove the if test keeping only

{% render_excerpt list_page %}

and this, at last, works as expected.

However, by looking at hydeengine/templatetags/hydetags.py, i have easily spotted an error:
line 170:

@register.tag(name="render_article")    
def render_excerpt(parser, token):

should be

@register.tag(name="render_article")    
def render_article(parser, token):

but this does not seems to cause problem at all...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant