Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use css.Build in theme skeleton #14626

@jmooring

Description

@jmooring

The hugo new theme mytheme command generates these partial templates:

_partials/
├── head/
│   ├── css.html
│   └── js.html
├── footer.html
├── head.html
├── header.html
├── menu.html
└── terms.html

The js.html partial demonstrates the js.Build function.

Let's make the css.html partial symmetrical, demonstrating the css.Build function. We would keep this very simple, moving the existing header and footer rules into their own component files, them @import them into main.css.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions