hid publish not processing to html?
-
installed HiD-1.98
-
in newly created dir (~/temp/hid) ran 'hid init'
-
edited _config.yaml to have url: 'http://localhost:5000'
-
created index.mkdn
-
edited index.mkdn to contain:
layout: default
title: Hello, World!
Hello World, should be h1
-
Then created dir _posts
-
in _posts created file 1999-09-09-first-post.html (from HiD::App::Command::init example/sub ( https://metacpan.org/source/GENEHACK/HiD-1.98/lib/HiD/App/Command/init.pm )
-
edited file from step 7 to have content per example sub noted in step 7.
-
cd ~/temp/hid
-
ran 'hid publish'
-
ran 'hid server'
-
went to browser and checked http://localhost:5000 to see how index.html rendered. Got [% content %]. This is the from _layouts/default.html
-
checked http://localhost:5000/1999/09/09/first-post.html and also go t [% content %] which I think is more wrong since the sub/example in step 7. creates a layout for post.html that has more stuff that should be displayed.
-
as noted on irc chat I have a repo of this hellow world example at https://github.com/gizmomathboy/hid_hello_world
Hopefully enough detail (that is mostly the steps I followed) to recreate what I am seeing.
I found a few things here. I fixed them in a branch at https://github.com/rjgoldsborough/hid_hello_world/tree/hid-not-publishing
The main error I found for HiD not publishing was no "processor type". The available options can be found here https://github.com/genehack/HiD/tree/master/lib/HiD/Processor. I added Template to the config.
I also changed the main index page to HTML. I actually don't know if this is required, but it's how I/we (II) use it.
I didn't see a "First Post" but your url is going to be http://localhost:5000/2016/07/28/hello-world.html because the file is named 2016-07-28-hello-world.md. (I also switched to md. Again, just because that's what I/we (II) use.)
If you have any other questions, lemme know.