Course Overview
Locked video preview

Paid video

Please purchase the course to watch.

Building the article view

Article view structure

Here is a summary of the video transcript:

  • Article View Implementation
    The module focuses on building the article view and completing the navigation flow between the home and article pages. The base layout is reused, and the article title is passed into the layout for rendering.

  • Metadata and Content Structure
    A metadata section is introduced to display the article title and publication timestamp. The content is wrapped inside a semantic article element, preparing the structure for formatted text and media.

  • Controller Refactoring
    The article handler is reimplemented as a method on the controller struct. The render function is updated to use the Echo context and view renderer, and article retrieval is modified to use a UUID instead of an integer ID.

  • Routing and UUID Handling
    Routes are updated to support UUID-based article lookup using a helper function. After wiring the controller and router together, the article view is verified to function correctly.

  • Markdown and Content Rendering
    The displayed article text is in Markdown format, highlighting the need for later processing into proper HTML. Markdown is introduced as a convenient content storage and formatting approach.

  • Slug Implementation and UI Refactoring
    The next improvement involves replacing UUIDs in URLs with human-readable slugs derived from article titles. Additionally, repetitive UI elements will be refactored into reusable components.