Managing our Post Listing block

Any time we create a new block display using views, we can easily assign it to any region from the Block layout page. Begin by navigating to /admin/structure/block and follow these steps:

  1. Locate the Content region.
  2. Click on the Place block button.
  3. Locate the Post Listing block.
  4. Click on the Place block button.
  5. Uncheck the Display title checkbox.
  6. Select the Pages tab under Visibility.
  7. Enter the path /blog into the Page text field.
  8. Make sure the Show for the listed pages checkbox is selected.
  9. Click on the Save block button.
  10. Click on the Save blocks button at the bottom of the Block layout page.

Make sure the Post Listing block is the last block displayed in our content region. If not, then reorder the blocks accordingly and click on the Save blocks button at the bottom of the Block layout screen.

Navigate back to the Blog listing page by browsing to /blog or by selecting the Blog link in the main menu. We can see that our Post listing block is now displaying on the page in a single column, as shown in the following image:

Managing our Post Listing block

If we refer back to our mockup ,we can see that while most of the content we need is being displayed, we are still missing the post date, author, and comment count. Also our structure and styling still needs some work. This is where creating a Twig template specific to our nodes display mode will allow us to modify our markup and add any missing variables that our page may need.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.31.163