Hi,
I have trouble with the replacement of an old theme.
When building under a new theme (canterville), I get a
__M_writer(str(post.meta('banner')))
AttributeError: 'Undefined' object has no attribute 'meta'
########################################
render_galleries:output/galleries/index.html <stdout>:
Maybe its because I misused conf.py ?
GLOBAL_CONTEXT = {
"BANNER_URL": '/assets/img/oeil.jpg',
}
Yet I've been careful with the Global_context location...
Or in my template ?
<div class="site-wrapper">
% if 'main_index' in pagekind:
<header class="main-header" style="background-image: url(${BANNER_URL})">
% else:
<header class="main-header" style="background-image: url(${post.meta('banner')})">
% else:
<header class="main-header post-head no-cover">
% endif
Can you help me ?
--
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-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/18d436ab-0fe6-45d2-bfdf-f47768b6a729%40googlegroups.com.
--
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-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/0d3c44d3-685d-426c-845b-13918cd9c2e7%40googlegroups.com.
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-discus...@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.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-...@googlegroups.com.
Can I send you the context ? What would you need ? I'm just at the end of the rope
--
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-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/30d378ed-0a7d-4752-ba9c-b9f1cafefdb4%40googlegroups.com.
--
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-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/CALXDAfr94HgQKHVQPF%3D4SZGutGX0mirJ-jyYyM6L81K1Eka_%3Dg%40mail.gmail.com.