Skip to content

Build fails when contributors not present #107

@h-enk

Description

@h-enk

Description

Describe the issue that you're seeing.

Build fails, when contributors: [] is not present in the frontmatter of blog pages.

Update layouts/partials/main/blog-meta.html (line 1) to allow for absence of contributors: []:

{{ $last := sub (len .Params.contributors) 1 -}}

Steps to reproduce

Clear steps describing how to reproduce the issue. Please please please link to a demo project if possible, this makes your issue much easier to diagnose (seriously).

thuliteio/doks#1279

Expected result

What should happen?

Actual result

What happened.

Environment

Paste the information here as shown by npm run info

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