Skip to content

[BUG] blog/summary.html guards on a misspelled param (.Params.descripton) #16153

Description

@mattstratton

themes/devopsdays-theme/layouts/blog/summary.html line 11:

{{ if isset .Params "description" }}
  {{ if ne .Params.descripton "" }}
    {{ .Params.description | markdownify }}

The inner guard checks .Params.descripton — missing the i. That is always nil, and ne nil "" is always true, so the guard never does anything. It happens to produce the intended behaviour, which is why it has gone unnoticed.

Suggested fix: correct the spelling to .Params.description, or drop the inner if entirely since the outer isset already covers it.

Found while documenting the repo for AI coding assistants.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions