Posted on 28/12/2016 at 2:00 PM by The Vibe.
Following the tradition of developers' blogging, this post has been named Hello World - to indicate that this post is where my blog started from. Through this post, I'd also like to explain about how this blog has been built. This blog is different from the other blogs in both - choice of UI framework and method of pages generation.
Semantic-UI, a new and growing front-end framework was chosen as the front-end framework, leaving behind other usual frameworks such as Bootstrap, MaterializeCSS and Zurb Foundation. After having chosen the front-end framework, the next task is of optimizing the front-end assets for faster rendering of the website - and the score on Pingdom tool was chosen as a reference. After a week of optimizing on CSS files, JS files and lazy-loading images, the website finally attained a performance grade of 92/100 - which is the highest possible score for free hosting on static GitHub Pages.
For continuing further on building blog functionality on a static website, some kind of static site generator like Jekyll had to be used. Rather, I re-invented the wheel by replicating the functionalities of Jekyll, with just a hand-made Ruby script. Here is a list of tasks that this Ruby script does -
blog
directory.data/
folder, for blog posts.posts/
, tags/
and page{i}
sub-directories.index.html
files in all sub-directories from ERB
templates, with proper back-linking to other entities.That way, whatever is shown on my blog is merely just an output of the powerful hand-made Ruby Script. Yet, there are scope of improvements left -
_config.yml
).< meta >
tags for SEO.
Incorporating the functionalities of the almighty Jekyll into a single Ruby script was pretty much fun and interesting. Even though it got challenging at times, I believe that overall, it was an awesome learning experience. For the attention of fellow developers, you can find the codes at the GitHub repository. Feel free to comment below - give your feedback about how Vibe writes.