Course Overview
Locked video preview

Paid video

Please purchase the course to watch.

Building the home view

Home view structure

Here is a summary of the video transcript:

  • Base Layout Component
    A reusable base layout component is created to standardize the HTML structure across all pages. It accepts a dynamic title parameter for the browser tab and uses a special children placeholder to inject page-specific content. This enables consistent structure and easier maintenance.

  • Global Navigation and Footer
    A navigation bar and footer are added to the base layout to ensure they appear on every page. The footer dynamically displays the current year using Go’s standard library, preventing outdated copyright information.

  • Home View Refactoring
    The home view is updated to inherit from the base layout instead of duplicating markup. This simplifies the component and centralizes shared structure.

  • Hero and Social Sections
    A hero section is introduced to describe the blog’s purpose and attract visitors. Social media links (Twitter, LinkedIn, GitHub) are added using a simple unordered list, with styling temporarily handled inline for visual clarity.

  • Rendering Latest Articles
    A section is created to display the latest articles passed from the controller. A Go loop iterates over the articles, rendering each title, excerpt, and a dynamically generated link to the full article using route parameter replacement and string conversion for UUIDs.