Closed cmacrae closed 9 years ago
Whenever I
op/do-publication
, the generated site isn't using any CSS.
Did you mean that the css files are not in folder "/path/2/output/media/css"? Org-page does not copy the theme folder, but copies the sub folders and files under it.
Hmm, no, the files are there as expected:
.
├── about
│ └── index.html
├── index.html
├── media
│ ├── css
│ │ ├── main.css
│ │ └── prettify.css
│ ├── img
│ │ └── search.png
│ └── js
│ └── main.js
├── rss.xml
└── tags
└── index.html
But, when I load the page (index.html) in a browser - be that from the filesystem on my local machine, or hosted by nginx - the page doesn't seem to be using any CSS.
In the generated html files, the css files are referenced with absolute paths as following:
<link rel="stylesheet" href="/media/css/main.css" type="text/css">
<link rel="stylesheet" href="/media/css/prettify.css" type="text/css">
So, please check if you put the generated files at the root level of nginx, otherwise they cannot be found.
Sorry to bother you with my nonsense @kelvinh! I was just testing wrong (being lazy). I set up a fresh nginx node to try it out, and it works great.
Thanks so much for your time :)
Glad to see that your problem is solved. :-)
Really wanting to move over to
org-page
, but I can't get themes to work. Default install fromMELPA
doesn't work using the basic config:However, I can see the themes directory there:
~/.emacs.d/elpa/org-page-20141226.558/themes
Setting(setq op/theme 'mdo)
doesn't seem to work, and setting both that and(setq op/theme-root-directory "~/path/2/themes")
(where the themes directory resides) doesn't work either.Whenever I
op/do-publication
, the generated site isn't using any CSS. There are no warning messages in my*Messages*
buffer. Here's the output in*Messages*
when running with any of the above mentioned options set:This happens when I publish to either a directory or the
master
branch (from mysource
branch).Perhaps it's something I'm doing wrong, and if that is the case, perhaps a little documentation on the use of themes should be added :) Unless of course, it's so simple that such documentation would be necessary, but I'm just somehow running into an awkward issue.
Thanks in advance for any help on this @kelvinh, and thank you again for
org-page
! :)