fifthposition / rizzo

A static site generator, written in Groovy.
MIT License
24 stars 4 forks source link

generating "published" dir failed #11

Open luckypoem opened 11 years ago

luckypoem commented 11 years ago

hi. i cloned ur sourcecode by git,and installed groovy by "apt-get install groovy"

as3:~/rizzo# groovy rizzo.groovy -s . -d published Caught: java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException at rizzo.class$(rizzo.groovy) at rizzo.$get$$class$groovy$util$AntBuilder(rizzo.groovy) at rizzo.run(rizzo.groovy:163) as3:~/rizzo#

how to fix the issue?

fifthposition commented 11 years ago

I’m not sure about the Groovy distribution you would get from apt-get, but can you try it after downloading Groovy from http://groovy.codehaus.org/Download as described at http://stackoverflow.com/a/13222973/758011?

luckypoem commented 11 years ago

hi. it's fixed.

as3:~# apt-get remove groovy -y as3:~# wget http://dist.groovy.codehaus.org/distributions/groovy-binary-2.1.9.zip as3:~# unzip groovy-binary-2.1.9.zip as3:~/rizzo# ~/groovy-2.1.9/bin/groovy rizzo.groovy -s . -d published [copy] Copying 1 file to /root/rizzo/published/css [copy] Copying 1 file to /root/rizzo/published/images [copy] Copying 1 file to /root/rizzo/published/files as3:~/rizzo# ls css images pages published rizzo.groovy templates files meta.groovy posts README.md site-config.groovy as3:~/rizzo# ls pages about.html markdownness.md as3:~/rizzo# ls posts a-markdown-test.md lorem-ipsum.html lorem-ipsum-again.html our-first-post.html as3:~/rizzo# ls published about.html archives.html feed.xml images markdownness.html tags.html archives css files index.html tags as3:~/rizzo# cd published as3:~/rizzo/published#

so ~/rizzo/published/ is the root dir of the static site.

luckypoem commented 11 years ago

hi.

how to set excerpt for a post?i add in some place,but it didn't take effect.so waht to do?

fifthposition commented 11 years ago

If you’re referring to having an excerpt from a post which shows up on the front page: Rizzo does not yet support this. It is not very customizable yet and currently just includes the full content of the last five posts on the home page.

I need to rework Rizzo entirely, and when I do, this should be an option.