Replies: 2 comments 1 reply
-
|
It's just that nobody has tried it. If you like it that way, go ahead.
…On Tue, Aug 23, 2022, 7:43 AM nabajour ***@***.***> wrote:
Hi,
I like to have my website content separated from the code creating the
website (I already have a bunch of orgmode notes in another git repository
I would like to transform into posts). I tried moving the nikola code to
/home/me/nikola and the content to /home/me/website_content/. I moved the
pages, posts, files, folders, images, listings, galleries into that
folder.
I managed to get it mostly to work with change along these lines in
conf.py:
CONTENT_HOME = "/home/me/website/"
POSTS = (
(CONTENT_HOME + "posts/*.org", "blog", "post.tmpl"),
(CONTENT_HOME + "posts/*.rst", "blog", "post.tmpl"),
(CONTENT_HOME + "posts/*.md", "blog", "post.tmpl"),
(CONTENT_HOME + "posts/*.txt", "blog", "post.tmpl"),
(CONTENT_HOME + "posts/*.html", "blog", "post.tmpl"),
)
PAGES = (
(CONTENT_HOME + "pages/*.org", "", "page.tmpl"),
(CONTENT_HOME + "pages/*.rst", "", "page.tmpl"),
(CONTENT_HOME + "pages/*.md", "", "page.tmpl"),
(CONTENT_HOME + "pages/*.txt", "", "page.tmpl"),
(CONTENT_HOME + "pages/*.html", "", "page.tmpl"),
)
IMAGE_FOLDERS = {CONTENT_HOME + 'images': 'images'}
GALLERY_FOLDERS = {CONTENT_HOME + "galleries": "galleries"}
I haven't tested everything, but this seems to be on the correct track.
But the gallery generation fails when doing this.
I don't uses the gallery, so I could just disable the plugin for now.
Question for people with an idea of the internals of the code: is there
anything advising against continuing down that path, with potential hidden
issues lurking? I could probably also get to what I want with some
symlinking...
—
Reply to this email directly, view it on GitHub
<#3642>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAMK3ZGQJJLPLDNKWOOVTV2STLPANCNFSM57K6OWKQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nabajour
-
|
Just comment out the GALLERIES line. It works for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I like to have my website content separated from the code creating the website (I already have a bunch of orgmode notes in another git repository I would like to transform into posts). I tried moving the nikola code to
/home/me/nikolaand the content to/home/me/website_content/. I moved thepages,posts,files,folders,images,listings,galleriesinto that folder.I managed to get it mostly to work with change along these lines in
conf.py:I haven't tested everything, but this seems to be on the correct track. But the gallery generation fails when doing this.
I don't uses the gallery, so I could just disable the plugin for now.
Question for people with an idea of the internals of the code: is there anything advising against continuing down that path, with potential hidden issues lurking? I could probably also get to what I want with some symlinking...
Beta Was this translation helpful? Give feedback.
All reactions