They don't "have" to be. but it makes changing themes easier if each of those themes also have custom files.

To change themes then is just a one line change in the conf.py


If using the site/files/, then you have to manually delete / copy. And if you forget, you end up scratching your head late at night trying to understand why your site isn't working :)






/On 29/10/2016 18:36, [email protected] wrote:
Do the files that go in a custom theme that would use that really have to be in 
the theme’s directory?  I mean, files/ exists…



From: [email protected] [mailto:[email protected]] 
On Behalf Of Roberto Alsina
Sent: Saturday, October 29, 2016 4:06 PM
To: Nikola—Discuss <[email protected]>
Subject: Re: [nikola-discuss] custom files for themes not in assets but in site 
root



Or we can just make the theme plugin support a files/ that maps to output/



On Sat, Oct 29, 2016 at 1:54 PM Chris Warrick <[email protected] 
<mailto:[email protected]> > wrote:

On 29 October 2016 at 17:43, Dave <[email protected] 
<mailto:[email protected]> > wrote:
Are you
sure those files are related to the theme, and they are also tied to a
different directory?


I have been converting some wordpress themes by wget the preview page, then
building nikola themes from them.

Alot of files, images, css, js get saved to a folder structure of

http://domain.com/wp/themes/twentysixteen/. 
<http://domain.com/wp/themes/twentysixteen/> ..
http://domain.com/wp-content/themes/twentysixteen/. 
<http://domain.com/wp-content/themes/twentysixteen/> ..

etc etc

Ah. The best course of action would be to fix all references not to
point to wp-content and stuff, but I’m not sure if you could automate
that easily. (Do give it a try!)

so I wanted a way of getting a folder structure from root for each theme.
Currently I am copying the folders to the /files/ folder, but then I forget
to remove / update and things get in mess.

I think it will be a simple plugin to add this. Just after build complete,
copy files. I'll have a re-read of the plugins system :)

Not really. That will be a Task plugin to copy those files whenever
doit says so. You can base (read: copy-paste) your plugin on the
built-in copy_assets plugin.

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

--
You received this message because you are subscribed to the Google Groups 
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 
[email protected] 
<mailto:nikola-discuss%[email protected]> .
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to