-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Page as homepage, but keep site as blog #3524
Comments
I should read the documentation page to the bottom! The answer is there. Sorry about that! |
Ok I have to reopen this, as building the website keeps routing the blog posts as homepage. I follow the examples exactly as mentioned in the link above but can't make a page be set as homepage. |
What is your |
just as in the example - it's Then I have:
and have created a page with
|
This setup isn't enough to put an index in the main directory. The index
page you're seeing is a stale file (removing the output folder will make it
not generate, nikola check -f will warn about it). To put an index.html
file in the site root, you need a PAGES entry with "' (empty string) as its
destination (second element in PAGES tuples).
…--
Chris Warrick <https://chriswarrick.com/>
On Tue, 9 Mar 2021, 17:40 varna9000, ***@***.***> wrote:
just as in the example - it's INDEX_PATH = "blog"
Then I have:
POSTS = (
("posts/*.rst", "blog", "post.tmpl"),
("posts/*.md", "blog", "post.tmpl"),
("posts/*.txt", "blog", "post.tmpl"),
("posts/*.html", "blog", "post.tmpl"),
)
PAGES = (
("pages/*.rst", "pages", "page.tmpl"),
("pages/*.md", "pages", "page.tmpl"),
("pages/*.txt", "pages", "page.tmpl"),
("pages/*.html", "pages", "page.tmpl"),
)
and have created a page with nikola new_page containing :
.. title: index
.. slug: index
.. date: 2021-03-09 17:21:45 UTC+02:00
test page
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3524 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACP5G3YS74GR6HCKEIIJCDTCZFQ7ANCNFSM4Y3QZPFQ>
.
|
Thank you! That works exactly as I expect! |
Hi, I'm struggling to find a solution to this. I'm building a blog, but I want my homepage to be one of the pages, not the list of blog posts. If I follow the instructions here I can have a page show as a homepage (index) but I don't know how I can keep the posts on the website as well. If I leave in conflict.py:
Then the blog posts are loading as homepage. Can you suggest a solution to this?
The text was updated successfully, but these errors were encountered: