The template has no "post", you only have it inside that loop, after the
line

% for post in posts:

I am guessing the call to post.meta that's failing is outside that.
Trying to explain how to fix that without context is difficult, but you
just can't use post anywhere outside that loop.


On Wed, May 13, 2020 at 6:49 AM Julien Vallet <j.surc...@wanadoo.fr> wrote:

> Yet there is a block for articles no ?
>
> <div class="postindex">
> % for post in posts:
>
>
> <article class="post post">
>     <header class="post-header">
>         <h2 class="post-title"><a href="${post.permalink()}">
> ${post.title()|h}</a></h2>
>     </header>
>     %if index_teasers:
>     <section class="post-excerpt">
>     ${post.text(teaser_only=True)}
>     %else:
>     <section class="post-excerpt">
>     ${post.text(teaser_only=False)}
>     %endif
>     </section>
>     <footer class="post-meta">
>             % if author_pages_generated:
>                 <a href="${_link('author', post.author())}">
> ${post.author()|h}</a>
>             % else:
>                 ${post.author()|h}
>             % endif
>
>         on
>             % for tag in post.tags:
>                 <a href="link://tag/${tag}">#${tag}</a>,
>             % endfor
>
>         <time class="post-date" datetime=
> "${post.formatted_date('webiso')}">
>             ${post.formatted_date(date_format)|h}
>         </time>
>     </footer>
> </article>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "nikola-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nikola-discuss+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nikola-discuss/679cfc08-d74f-42c7-8879-ad068a6313a1%40googlegroups.com
> <https://groups.google.com/d/msgid/nikola-discuss/679cfc08-d74f-42c7-8879-ad068a6313a1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nikola-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nikola-discuss/CALXDAfp2wfy92Phqyt5pbnVDbxkGt6tR-2EexwgueZMVC9C30A%40mail.gmail.com.

Reply via email to