Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Use tinkerer for a site (not a blog) #21

Closed
rgaiacs opened this issue Aug 2, 2013 · 9 comments
Closed

Use tinkerer for a site (not a blog) #21

rgaiacs opened this issue Aug 2, 2013 · 9 comments
Assignees

Comments

@rgaiacs
Copy link

rgaiacs commented Aug 2, 2013

IMHO, will be nice if can use tinkerer for write a site and not a blog. Do it must be "easy" since:

  • a blog must have a post in master.rst and
  • a site must have none post in master.rst and a page named index.rst or home.rst.

For the above part I can write a patch. But I can't figure it out how to stop tinkerer stop try to generate the blog home page, any help?

@vladris
Copy link
Owner

vladris commented Aug 2, 2013

Tinkerer is a blogging engine, if you just want site generation, why not use Sphinx directly? That's pretty much what Sphinx does - it converts a bunch of RST files to a static website. The only addition Tinkerer brings is all the blogging logic (aggregating pages, tags and categories, comments, dates etc.). If you don't need these, you could just use Sphinx.

@rgaiacs
Copy link
Author

rgaiacs commented Aug 2, 2013

Tinkerer is a blogging engine, if you just want site generation, why not use Sphinx directly?

You have a good point. But I like the blogging logic from Tinkerer (even for a website) and the themes.

@vladris
Copy link
Owner

vladris commented Aug 2, 2013

I see. Well, I don't think I would pull a patch for this, but you can always fork Tinkerer and tweak it for your scenario. The index.html is generated by the aggregator.py extension. This aggregates posts by 10 and puts them in index.html, page2.html and so on. You can try unhooking the extension altogether from blog.py and reference a custom index.rst in master.rst.

@shon
Copy link

shon commented Nov 22, 2013

I think there is valid point in index as page (optionally). I agree on Tinkerer is and should remain primarily blogging engine. It does it well however often bloggers want landing page to be different that blog post. Many a blogging engines do support that.

+1 from me and thanks for Tinkerer. It just works!

@gdementen
Copy link

I would also like to see a more customizable index page. More specifically:

  1. be able to change the "Home" string (to something like "News" for example)
  2. be able to set its position in the pages list. For the website I am currently doing using Tinkerer, I had to change the code to have it as the second page, whereas the "landing" page is "About".

@vladris vladris self-assigned this Feb 19, 2014
@bmcorser
Copy link
Contributor

bmcorser commented Oct 6, 2014

👍 For optional "splash" page.

For now, I am using this elegant shell workaround:

tinker --build && mv blog/html/index.html blog/html/blog.html && \
cp blog/html/pages/projects.html blog/html/index.html && \
find blog/html -name '*.html' | xargs sed -i 's/index.html/blog.html/g'

@vladris
Copy link
Owner

vladris commented Oct 14, 2014

FYI, I'm looking into this. See ebbe133.

Current thinking: add landing_page setting in conf.py, eg. landing_page = "about" (you should also have an about page under /pages). As long as landing_page is set, the first page of aggregated posts will move from index.html to page1.html and index.html will instead become a redirect to the specified landing page.

@vladris
Copy link
Owner

vladris commented Nov 2, 2014

Also added first_page_title setting to change the title of "Home" if needed. This should be enough to cover the landing page scenario. I will roll these out with the next release of Tinkerer.

@vladris
Copy link
Owner

vladris commented Nov 10, 2014

Resolving this since new release has ability to override both landing page and "Home" string.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants