Giter Club home page Giter Club logo

vpwebsitetemplate's Introduction

VoodooPad 5 website template, v1.1

This is the template that I use to easily manage a static website using VoodooPad 5. VoodooPad 5 is a good fit for your website if:

  1. You need a static site
  2. That is simple enough to use a flat hierarchy
  3. And only has one page template (or minor variations on a single template)

For instance, I use VoodooPad for an app documentation site, but wouldn't want to use it for my blog.

This template is setup to use Markdown for basic styling. It would probably be possible to do the same with rich text, but the scripts here will not work right if you do.

Installation

Requires VoodooPad 5.0 or greater

To install, either clone this repo or download here. You can then open the VP5WebsiteTemplate.vpdoc file in VoodooPad 5 and go from there. The file itself contains full documentation for how to use it.

Features

  • Highly configurable by modifying some variables in a simple Javascript page (you can disable or modify every feature listed here)

  • Automatically renames new pages with URL-friendly names

  • Automatically creates breadcrumbs based on page tags or a custom page meta key

  • Copies assets (images, CSS, Javascript, and Zip files) into folders

  • Supports MarkdownExtra-style header IDs for easier same page navigation links:

      ## My header    {#header-ID}
    
  • Automatically strips out nested links if VoodooPad and Markdown linking styles come into conflict

  • Converts -> and => into → entities

  • Converts shortcuts using the format `command H` into special HTML (for easier styling as opposed to plain code blocks)

  • Fixes paragraphs wrapping <aside> elements (since Markdown doesn't support HTML5 very well)

And of course if the template doesn't do something that you want/need, you can always expand the capabilities by writing a bit of JavaScript.

Changelog

v1.1

  • Breadcrumbs will now lookup the link using page aliases (allowing much more control over what is output as the breadcrumb title)
  • Breadcrumbs can be defined using the breadcrumbs custom page meta key and a comma-delimited list of pages (allowing explicit ordering, which is not possible with tags)
  • Sorts zip files into downloads folder
  • Automaticallys strips out links to project .htaccess file (if included in the project)

v1.0

  • Initial public release for VP5
  • Central configuration variables
  • Automatic URL-friendly page names
  • Automatic breadcrumbs using page tags
  • And lots more!

License

The content and scripts in this template are distributed under an MIT license. VoodooPad, the VoodooPad file format, JSTalk, and similar are all rights reserved by Flying Meat and Gus Mueller. This project is in no way endorsed by or affiliated with Flying Meat, so if it melts your computer or something, don't go blaming Gus.

Includes source code from the following other MIT-licensed projects:

The MIT license

Copyright (c) 2012 Ian Beck

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

vpwebsitetemplate's People

Contributors

onecrayon avatar

Watchers

David Loeffler avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.