How To Create Blog in Drupal

blog in drupal8

Drupal 7 has a core module called Blog. But this blog module has been dropped from core in Drupal 8. Many Drupal 8 users get confused about how to create a blog like in Drupal 7 or like Wordpress.

Creating a blog in Drupal 8 is very easy. Follow below steps to create a blog in Drupal 8.

Requirements

None. We will use only core modules and features.

Step 1: Create Categories

Let's start by creating few categories for our blog.

Navigate to:
Home Administration Structure Taxonomy

example.com/admin/structure/taxonomy

On this page you can create a New Vocabulary or use any exiting Vocabulary for blog category.
For this tutorial, I am using default exiting Vocabulary Tags. Add your blog categories by clicking Add terms menu of this Vocabulary.

image

Below I have created few categories for my blog.

image

Step 3: Optional - Add Featured Image

This step is optional. Follow this step if you want to have a featured image for your blog posts, just like in WordPress.

Navigate to:
Home Administration Structure Content types Manage fields (of Articles)

image

Step 4

Add Image field. This image field will act as featured image of blog posts.

image

Step 5

Click Manage display tab. And place Image field at the top position.

image

Step 6

In this step we will create a page that will list your blog posts, like:

example.com/blog

We will use views module. This is a Drupal core module.

Navigate to:
Home Administration Structure Views +Add view

example.com/admin/structure/views

image

Step 7

Ceate a new view with following settings.

View name: Blog
View settings: Content -> Articles -> Newest First

image

In Page settings section, make following settings.

image

Step 9

After creating view, lets do some modification in this view. We want to put sticky post at the top of the page.
So, add a Sort criteria with Sticky at top of lists (desc). Save view.

image

Done!!
Go ahead and create some post of content type Articles.

More Customizations

You can further customize this view like you can add a header or footer. You can also add more fields to article content types.

Blog Posts Path

I recommend to use pathauto modules for better path / url / permalink of blog posts.