A blog might not be the most challenging CMS type that you can build, but for that reason it might be the best first introduction to a new CMS. Not that I would not need a blog. In fact I want to replace my existing blog and at the same time want to get to know Drupal 8. Having a blog already, that I want to replace, makes it easy to define the requirements for the blog Let's write them down and see how Drupal 8 is able to deliver.
- Create blog posts with title, subject and an optional featured image.
- The ability to categorize and browse through content by topics.
- Basic search functionality.
- A tool for authoring content with a WYSIWYG editor that also supports the display of coding examples.
- Listing teasers of the blog posts on the front page sorted by date posted; with a pager (showing 5 topics per page)
- Browse the blog posts by category.
- Visitors must be able to comment on blog posts.
- The blog site needs to be responsive.
Now let's see how Drupal 8 meets these requirements.
I am not going to describe how to install Drupal. It is just beyond the scope of this blog post. You can find an installation guide on the Drupal site. The operating system, webserver and database you choose do not really matter for this article. But just in case you are curious: I used Windows 7, IIS 7.5 and MySQL 5.6.
Drupal 8 comes with the theme called Bartik installed. The first thing I did was to download, install and set as default the Bootstrap 3 for Drupal theme. I will show how to make a sub-theme based upon this theme lateron, but for now I have met requirement 8 without having to build my own theme.
Categorizing blog topics
For meeting requirements 2 and 6 we are going to use taxonomy (which is part of the Drupal 8 core).