I really liked the Snowly theme and was thinking of using it for my personal blog. I liked its simple look and feel but I was missing my own touch. Furthermore, I felt that i was missing two important features:
- Home page did not contain recent blog posts
- There was no page to show my work
All that lead me to forking the theme an making it my own.
By the way, apparently my modifications aren’t enough to be submitted to the anchor showcase site (or any modifications). That site is not a theme showcase site, its a website showcase… I am even quite sure they didn’t even bother to look at my site.
I saw many questions around the web regarding adding posts-list to the home page, this is how I did it.
load_posts asks the anchorcms lib to get the posts listings from the db and puts them in the registry, so they can be used later (only in that single http request).
shorten_article makes sure we don’t flood the home page with the full post. From your home page call
<?php load_posts(); ?> and from there its all like normal.
I wanted my homepage to be different, so the first thing I did was create this gorges color changing background. Here is the css behind that neat effect.
Fixed a small xss
I saw that the snowly theme would allow an xss in some cases where the desired page was not found. This was caused by the lack of output sanitizing. Fixing this is really easy, just pass the result through