tumashu / org2web

A static site generator based on org-mode
http://tumashu.github.io/org2web
89 stars 10 forks source link

How to add regular pages? #14

Closed stig closed 8 years ago

stig commented 8 years ago

In addition to index and about pages, is it possible to add other custom pages? I am trying to convert my website to use this tool, but I want to preserve the links. Currently I have a "publications.html" page in the top level that keeps being incorporated in the post list rather than a separate top-level page. Am I doing something wrong?

tumashu commented 8 years ago

Do you mean add "publications" to nav bar?

stig commented 8 years ago

Yes, adding things to Nav bar I suppose is what I meant. But also removing as blog post.

Sent from my iPhone

On 24 Aug 2016, at 01:35, tumashu notifications@github.com wrote:

Do you mean add "publications" to nav bar?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

tumashu commented 8 years ago

There are some methods:

method1: mkdir /publications/ and put publications.org to it

method2: edit publications.org 's header

    #+URI:         /publications/

method3: custom owp/category-config-alist

(push '("publications"
        :show-meta nil
        :show-comment nil
        :uri-generator owp/generate-uri
        :uri-template "/publications/"
        :sort-by :date
        :category-index nil)
       owp/category-config-alist)

method4: custom theme and put your theme to /themes

stig commented 8 years ago

Thank you for all the answers! I think that answers my question.

tumashu commented 8 years ago

/themes/ means "your repo dir"/themes/