I meant literally, use the "kind" variable :-) Looking at the code it's actually called pagekind and can be (among other things) "story_page", "page_page" or "post_page"
There's a little bit about it on the docs here: https://getnikola.com/theming.html#identifying-and-customizing-different-kinds-of-pages-with-a-shared-template On Wed, Nov 16, 2022 at 8:48 AM Tanja Orme <[email protected]> wrote: > Yeah, I'd like to know if the page presented is a 'story' or a 'post', > basically. Can I do that in the base-header template? > > On Saturday, 12 November 2022 at 21:54:25 UTC+1 Roberto Alsina wrote: > >> I *think* what you want is the "kind" from the context? Not near a >> computer so can't check >> >> On Fri, Nov 11, 2022, 4:15 PM Tanja Orme <[email protected]> wrote: >> >>> Hi, >>> >>> I think the shortest version of my question is, how can I check in the >>> header (base-header) if the page is a post-page (direct link to the >>> blog-post) or an index/page/other? >>> >>> More precise, I would like to put the links to translated posts in the >>> header, instead of in the post-area. Is this possible? >>> >>> Kind regards, >>> >>> Tanja >>> >>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/nikola-discuss/483e1bb5-92a2-4a89-a64f-a2d88b1cf347n%40googlegroups.com >>> <https://groups.google.com/d/msgid/nikola-discuss/483e1bb5-92a2-4a89-a64f-a2d88b1cf347n%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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nikola-discuss/70a4b082-6ca2-4443-9afd-5925fd0ec4f4n%40googlegroups.com > <https://groups.google.com/d/msgid/nikola-discuss/70a4b082-6ca2-4443-9afd-5925fd0ec4f4n%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/CALXDAfobHqJCt-r-atHk%2BdRN8OCiGPi%3DucW7ZGDn5VrQ2Qr3qg%40mail.gmail.com.
