emacs-china / EGO

EGO is a static site generator that depends on Emacs, Git and Org-mode.
94 stars 11 forks source link

More .org files that are not treated as blog posts. #81

Closed tmalsburg closed 8 years ago

tmalsburg commented 8 years ago

If I understand correctly, index.org and about.org are the only .org files that are not treated as blog posts. Any other .org file will be processed as a blog post, that means, it will be listed in the index and the template post.mustache will be used to render it.

Is it possible to add new non-blog-post .org files?

What I want to do is to add more pages like about.org on which I provide additional information, for example, my publications.

Thank you!

tmalsburg commented 8 years ago

I think I found a solution. When creating a new post (ego-new-post) just enter "about" as the category. The .org file will then be created in the directory /about/ which is fine in my case. The HTML file will be in whatever location is specified in the #+URI header.

The startpage says that the use of categories is not recommended. Why is that?

kuangdash commented 8 years ago

First, I have to admit that the structure of EGO doesn't get well now. The categories configure is a mess.

Second, category is only a special case of tags. You can use tags to replace it.

Finally, if you really want category features, change those variables: ego--category-config-alist and ego--category-show-list. Caution: they are global variables.

tmalsburg commented 8 years ago

Thank you, this is very helpful.