Front page website

83 views
Skip to first unread message

Matteo Parsani

unread,
Jan 31, 2015, 9:18:52 PM1/31/15
to nikola-...@googlegroups.com
Hello Nikola's Users and Developers,
in the official Nikola documentation I found that Nikola allows to create front page.
However, I am having hard time to understand how to do that. Could you please gives few tips? 

Moreover, if a front page is not defined, which is the first page that I see when I open my website? 

Thank you!

Chris Warrick

unread,
Feb 1, 2015, 4:30:20 AM2/1/15
to Nikola—Discuss
http://getnikola.com/creating-a-site-not-a-blog-with-nikola.html

This tutorial says everything. By default, the front page is the blog
index. In this tutorial, you move the blog index to /blog/index.html
and create your own page with the slug `index` which, with PAGES set
accordingly, will end up as /index.html.

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

Matteo Parsani

unread,
Feb 10, 2015, 10:10:22 AM2/10/15
to nikola-...@googlegroups.com
Thank you Chris for your help.

Best Regards


--
You received this message because you are subscribed to a topic in the Google Groups "nikola-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nikola-discuss/cCdO4wFV3Bs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nikola-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matteo
Message has been deleted

Chris Warrick

unread,
Jul 16, 2018, 4:25:58 PM7/16/18
to Nikola—Discuss
On Mon, 16 Jul 2018 at 21:49, Dimitar Tomov <the.rea...@gmail.com> wrote:
>
> Hi Chris,
>
> The official documentation seems outdated. There are now multiple path entries and the INDEX_PATH is not generally used.

INDEX_PATH still exists and is still used. If you are using sections
based on the file system, then yes, there might be other index pages.

> And when used as suggested, this setting simply offsets the generated blog index.html location, but keeps the blog-like structure. So it does not make clear how the static main page can be supplied in a nice way. At the end I just ended up making my own html5 page, which eliminates the benefit of using nikola.

You need to:
1. create a new page, whose slug is 'index'
2. change PAGES so that the output directory is the output root
3. change INDEX_PATH so that the main blog index is not conflicting
with the page

If you don’t want a blog at all, you can also set these settings:

Nikola v7
DISABLE_INDEXES_PLUGIN_INDEX_AND_ATOM_FEED = True
DISABLE_INDEXES_PLUGIN_RSS_FEED = True

Nikola v8
DISABLE_INDEXES = True
DISABLE_MAIN_ATOM_FEED = True
DISABLE_MAIN_RSS_FEED = True

Dimitar Tomov

unread,
Sep 2, 2018, 9:01:12 AM9/2/18
to nikola-discuss
Hi Chris,

Thank you for your reply, definitely good info. But page generation is still not right. (screenshot below)

I hoped https://getnikola.com/ source (rst) is available somewhere, so I can reverse back the steps.

I also found the doc entry for making Pages-based website, putting it here for others:
It pretty much says what you wrote, but back then I didnt come across it so your info helped!

There is definitely something that's missing, either obscure or plain obvious, because I can't get ride of the 'title' generating entries/links. This is definitely not a wanted effect for the Index slug page of Pages based website.

Given so many people are querying and actually using Nikola for Pages based sites, I was hoping it is more mature for this purpose. I definitely see some v8 improvements, could switch from 7.8 to 8.x if it will help.


index-slug-hm.png



ps: I see that my original post is deleted, maybe I did that by mistake, not really sure. Good there's a quote of it in your reply ;) Thanks again

Cheers,
Dimi

Dimitar Tomov

unread,
Sep 2, 2018, 9:37:01 AM9/2/18
to nikola-discuss
Found it

.. hidetitle: true

Now struggling with the rest of the index page style. I feel like my only sensible option for main is to go raw html. And then, use Nikola to manage the content pages. Will see...

Chris Warrick

unread,
Sep 2, 2018, 10:23:56 AM9/2/18
to Nikola—Discuss
On Sun, 2 Sep 2018 at 15:37, Dimitar Tomov <the.rea...@gmail.com> wrote:
>
> Found it
>
> .. hidetitle: true
>
> Now struggling with the rest of the index page style. I feel like my only sensible option for main is to go raw html. And then, use Nikola to manage the content pages. Will see...

For the getnikola.com main page, we use a HTML input file:
https://github.com/getnikola/nikola-site/blob/master/stories/index.html

Dimitar Tomov

unread,
Sep 2, 2018, 4:28:51 PM9/2/18
to nikola-discuss
Thanks, Chris !

I am definitely going to use Nikola to manage the Content pages and main will be either raw html or hybrid.
Reply all
Reply to author
Forward
0 new messages