Andy's Blog Engine
These are a couple of script plugins, for using the current document as a blog engine. To install... well, I should add some links to install them.
Usage:
Bear in mind that these scripts don't do any rendering. That is done during the Web Export. Because these scripts utilize the page meta function; they will only work in VoodooPad Pro.
I have a line in my postflight script that changes the name of the rendered file home.html
to index.html
. If you change the variable homePageName
from home
then this line will need to change as well.
mv -fv "$VPWebExportOutputDirectory/home.html" "$VPWebExportOutputDirectory/index.html"
To see what this looks like in action check out the site I'm doing for my son's Boy Scout Troop 262 . Please bear in mind this is a work in progress. I could point you to my business site, but I don't want to use this as a forum for advertising. ;-)
Neither of these scripts has any data that are specific to any VPP document. I did this so that if you have multiple VPP documents that you are using as a CMS for a blog then the only thing that needs to be done is creating the "HomepageMeta" page in each document for the data.
Meta Markup
- This script is used to mark the pages whose content will be placed on the "home" page.
- It does this by adding several page meta tags. Personalizing these tags for your document will be necessary.
- If you aren't using
Markdown
markup then you should setisMarkdown = "0"
- This is where you set the location of Desktop folder that you write out the
atom.xml
file. If you don't want it to be on your Desktop then you need to make changes in the other script. - baseURL is the location of your blog page.
- homeURL is the index page of your site.
- categoryId is the name of the VoodooPad category that you want all the "posts" to go in.
- outdir is will be a folder on your Desktop at ~/Desktop/outdir
Set your data in a new document page named "HomepageMeta". It will be in the following format.
Meta Markup - HomepageMeta script
Make Homepage & Feed
- This is the script that does the work.
- It will find all the pages that you have marked using the Meta Markup script and concatenate their content.
- It will then place this content on a newly created page in the document named "home". You can change this name but you'll need to do it in this script.
- I've tried to keep most, if not all, the personalized data out of this script.
- I now make an Atom feed that converts relative URLs to absolute URLs, but only in the feed.
Make Homepage & Feed script
Much thanks to Gus. I couldn't have completed this without his time responses to my constant pestering. :-)