I followed the instructions exactly at https://getnikola.com/creating-a-site-not-a-blog-with-nikola.html to create a site (not a blog). After executing the first `nikola serve` command, I just get a listing of the directories in `output`. If I click on `stories` I get the expected index.html file created by the new_post command. How do I get this index.html file to show up as the main index.html file for the entire site, which is what I thought was supposed to happen by following these directions?
--
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.
For more options, visit https://groups.google.com/d/optout.
--
On 29 Sep 2016 07:58, "Greg Nordin" <nordi...@gmail.com> wrote:
>
> Thanks, Roberto. I tried this out and have a further question. When I use `nikola new_page`, it always places the new page in root and never sees the second line of the definition below. This is fine for index.md (I'm using markdown), but not if I want a new page to be placed in stories. Is there a way to force this with `nikola new_page`, or can I just create a new page in a text editor and place it where I want it (i.e., stories) and `nikola build` will take care of things. I guess I don't understand if there is anything special that `nikola new_post` does other than creating a new file in a particular place.
The commands take an optional argument at the end that let you specify the destination path. However, if you're more likely to put pages in stories, just rearrange PAGES to list stories/ before root/.
The commands don't do anything special, they just create the right meta data for you automatically. You're free to create those files manually if you remember what they should say at the top.
--
Chris Warrick <https://chriswarrick.com/>