Void is a blogging platform.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 27 commits ahead, 8 commits behind josephernest:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
void_cms
CHANGELOG.txt
LICENSE
README.md

README.md

Void

  • Void is a website creation tool (aka CMS).
  • Both static pages and blog articles are possible with Void.
  • Void pages and blog articles can use (a subset of ?) the Markdown language.

The core is done in a single PHP file of less than 100 lines of code. Huh, this is bad? See the discussion here. What about performance? See here.

Screenshot

screenshot

About

Credits

Void uses the Parsedown library, licensed under MIT license.

License

MIT license

FAQ

Question: How to add automatic code highlighting in articles / pages?

Use the library highlight.js by adding these three lines in the <header> part of index.php:

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>

Question: How to count the number of unique visitors per day (analytics)?

See this blog article.

Question: How to display user variables?

The 02-about.txt page has sample code to access the $void_config array elements that can be set in the site_vars.php file. They can be displayed in content files by wrapping the keys in double curly braces like {{varname}} where varname is a case sensitive key in the said array. The default parameters (spaces inside the curly braces should not be there in actual usage) are: {{ 0 }} => $sitename {{ 1 }} => Date like Friday 9th of October 2015 {{ Webmaster }} {{ IP }} => The client IP You can add your own unique key/value pairs to the array and reference them in your content pages.

Question: Are there Markdown parsers other than Parsedown used here?

Yes, one such parser is CommonMark.

Question: How do we change the colour of the links by default in black / grey in the body content?

Line 24 of style.css by default which begins with a { color: black; can be altered with a { color: #1155FF;

Question: How do we remove border on tables?

Comment out the following lines in style.css:

/*
table { border-collapse: collapse; }
table, th, td { border: 1px solid #a9a9a9; }
*/

Question: How do we use a header image

Use the $site_header example for image in the file site_vars.php and replace the .logo css lines in style.css with:

.logo { text-align: center; margin-top: 0.3em; }
.logo a { background-color: white; color: black; padding: 0.2em 0.2em; font-size: 1.4em; }
.logo a:hover { color: red; }