Skip to content

If no featured articles exist, do not show "Related Articles" header at bottom of page #30

Closed
@justjwheelin

Description

@justjwheelin

Summary

When there are no related articles for a page, do not show the "Related Articles" header at the bottom of the page

Background

Is the improvement related to a problem? Describe the problem:

If there are no related articles, the header still appears and can be confusing as to why it is there:

Screenshot of the Related Articles header appearing on a page when there are no related articles

What does the improvement look like to you?:

The header should not appear when there are no featured images.

Details

This can be done with Hugo conditionals to wrap this part of the template. If there are related articles, then show them; but if there are not any, remove the HTML block from the page.

Outcome

  • Better user experience for someone browsing through different pages
  • Better default logic for pages where we do not want to show related articles deliberately

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions