emacsorphanage / org-page

[INACTIVE] A static site generator based on Emacs and org mode.
673 stars 99 forks source link

Customize pages #66

Closed chunhuawu closed 9 years ago

chunhuawu commented 11 years ago

Hi Kelvin,

Thanks very much for making the program compatible with org mode 8.0. I see that you have predefined two categories for posts: blog and wiki. I am wondering whether you can make this more general to allow customizing these categories, for example, whether I can easily add more categories or change the names of blog and wiki.

Thanks very much Chunhua

sillykelvin commented 11 years ago

Hi Chunhua,

Thanks for your advice, there do exist category in early version org-page, but after then I think category does not make much sense (because I think tag is more helpful to classify all posts), so I only leave the predefined blog and wiki, and removed the category customization ability.

As you think it is a good feature, I will try to re-implement it, thanks for your advice.

chunhuawu commented 11 years ago

Hi Kelvin,

Thanks very much! Personally I find that allowing for customized category would make it more general. For example, building small websites that are not blog specific.

Thanks

chunhuawu commented 11 years ago

Hi Kelvin,

Just to make it more clear. I am not requesting an category item on the navigation area. your tag item seems great! I am wondering if it is possible that when I create a customized folder, say photography, etc, under source and put posts there, the program will scan the folders and generate a photography item in the navigation area, where all the posts under this category would automatically show that, just like posts under blog. Thanks

sillykelvin commented 11 years ago

Hi Chunhua,

Thanks for your commentary, it is quite clear now, I will evaluate it and implement it these days.

Thanks, Kelvin

sillykelvin commented 11 years ago

Hi Chunhua,

Finally the category feature is back since I am busy working these three months...

Let me know if you have any questions.

Thanks

chunhuawu commented 11 years ago

Hi Kelvin,

Thanks very much for implementing this. I have played a little bit. Could you update the navigation bar according to the customized categories as well? i.e. list photography on the nav bar?

Thanks.

sillykelvin commented 11 years ago

Yes, category is implemented based on its folder name, say, if you have a folder named "photography", then it means there is a category "photography", and it will show on the nav bar.

chunhuawu commented 11 years ago

Thanks, it works now. but it also add "Media" in the nav bar. Could you check?

sillykelvin commented 11 years ago

Er... according to current implementation, each folder under the root folder op/repository-directory will become a category, so if there is a "Media" category in nav bar, it means there is a "Media" folder in the root folder, but this folder is reserved for resource related files, it could be safely removed (if you have no org source files in that folder), then it will disappear in nav bar.