-
Notifications
You must be signed in to change notification settings - Fork 4
QUESTION: Any Ideas for Pages / Navigation? #2
Comments
Hi again, Alex! I am sorry for a late answer, I am still surprised with a project getting any interest at all. ;) I did not think of pagination but it's a cool feature and simple enough to be included without causing too much clutter. I did not write anything yet but if I were to start there are two things to consider:
I would love to implement both. Especially a config file would be helpful as an easy way of introducing new features. I will take a quick look at an issue within the next few days. Thanks for the initiative! |
Okay, so I added a configuration file and the parse_config function that converts the file into a list of parameters for the build_website function. It will be easier to manage extensions now. I am going to keep pagination in mind this week and we'll see what comes out of it. As to navigation, what exactly do you mean by that? |
Wow, hey cool and thanks for the extra enthusiastic engagement.
This app is great in it's simplicity and ease of getting started, and
producing an index page plus a collection of posts was a snap.
If I recall correctly, the next thing I wanted was the ability to create
multiple pages, or collections of posts, etc. To that end I was considering
how to add an included navigation element on each page. This element would
provide a consistent navigation and allow a more complete site to be
developed.
I am currently traveling for business, however will re-engage with this
project ASAP to repay your enthusiasm. Thank you again.
…On Tue, Jul 24, 2018, 6:10 AM Borys Jastrzębski ***@***.***> wrote:
Okay,
so I added a configuration file and the parse_config function that
converts the file into a list of parameters for the build_website function.
It will be easier to manage extensions now.
I am going to keep pagination in mind this week and we'll see what comes
out of it.
As to navigation, what exactly do you mean by that?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAD5ls1Gji7zTBjD9L9ekGeREsa3Zy9uks5uJxy9gaJpZM4VAK72>
.
|
Hi, getting back after a while. Thank you for the pull requests and comments! As to navigation, if you mean a simple static menu, like for an "About me" page for example, all you need is a div in the template. No extra python required. If you wish something generated on the fly, we need to talk about it in more details. I was thinking about some sort of a filtering system for a multilingual blog, that would include a language statement in the post file. We can make it more complicated, sort of an arbitrary tagging system with groups of posts collected in a file(s) or simply adding a class to a post div. Is that what you have in mind? Also, I was thinking about more date-sorting options. But I'd rather leave it for a template to define. So perhaps a year and month class in the div would be enough as well? About pagination, I think it makes sense only with excerpts. Thus I started with the latter. PS: I added a quick tags solution as an option in the header.
Tags are automatically added as classes to the <li> object representing the post on the main page as well as to the <div> representing the content of the post on the post page. Now you can easily filter contents on a page with CSS and JS, like with a bilingual blog. More is coming! PS2: I added automatic excerpts. Take a look at the config file. I'll add manual excerpts to the header next and, finally, pagination on the front page. EDIT: BTW, I added a <h1> with the post title before the post content on the post page. I think isolated metadata is better design. PS3: Manual excerpts added. They have priority over the automatic ones. The rest will need to wait a bit, it's already 4 AM around here. ;) PS4: Okay, I added two types of pagination with automatically generated navigation bars for both. I will update the readme file in the evening. The configuration file is explicit enough to get it working though. Now I will focus on a template, that's the face of the project! |
Hello: thank you so much for releasing this tool. It is quite efficient and great for getting a quick blog started.
I'm reading the code and contemplating adding an navigation generator for multiple pages. Would like to know if there is any development code already in place or considered for such a feature.
PS thank you for attending to the small typo bug issue I submitted. Very cool of you. 👍 💯 👍
The text was updated successfully, but these errors were encountered: