Re: [nikola-discuss] How is main_index set for non-blog sites?

14 views
Skip to first unread message

Roberto Alsina

unread,
Dec 19, 2022, 7:42:19 AM12/19/22
to nikola-...@googlegroups.com
It's probably easiest to just tweak the theme so it does what you want :-)

On Tue, Dec 13, 2022 at 8:41 AM Angus McMorland <amc...@gmail.com> wrote:
Hi,

I'm trying to apply the canterville theme to a site (not a blog), so have moved blog posts to /blog and pages to / as suggested in the documentation. The canterville theme includes a banner on pages labelled as 'main_index'...

    % if 'main_index' in pagekind and BANNER_URL :
    <header class="main-header" style="background-image: url(${BANNER_URL})">

Unfortunately, the main_index, and associated banner, now appears in /blog/index.html not in /index.html. Is there anything I can add to my pages/index.rst to force that one's index.html to be a main_index? Simply adding the metadata .. pagekind: main_index didn't work; perhaps it was overridden somewhere(?).

Thanks,

Angus

--
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/5a621de2-aebf-468e-b91c-1d5a7973fdfen%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages