Skip to content

Hugo Build Fails Due to Missing alert Shortcode and Deprecated paginate Key #128

Open
@Dharma-09

Description

@Dharma-09

Description

While attempting to build the documentation site using Hugo (v0.143.1), the build process fails due to a missing alert shortcode and a deprecated paginate key in the site configuration. The following errors are encountered:

Image

Expected Behavior

The Hugo build should be completed successfully without errors.

Actual Behavior

The build process fails due to the missing alert shortcode.
Hugo warns about the deprecated paginate key, which has been removed in version 0.128.0.

Possible FIx

Create layouts/shortcodes/alert.html file to ensure the necessary shortcode logic.
error 1#

//alert.html
<div class="alert alert-warning">
    {{ .Inner }}
</div>

error 2#
use pagerSize instead of paginate

//config.toml
 pagerSize = 7

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