Skip to content

Allow for the content width to reflect params.page.width - right now it is hardcoded to hx:max-w-6xl #886

@toudi

Description

@toudi

Feature Description

Ability for the params.page.width to impact layout content width

Problem/Solution

This feature would allow for the template to respect properties defined in the config, i.e. the following config:

params:
  page:
    width: full

would yield the following class:

( ... )
<main class="hx:w-full hx:min-w-0 hx:max-w-full hx:px-6 hx:pt-4 hx:md:px-12">

Alternatives Considered

Right now I was able to overcome this problem by overriding the templates (i.e. copying the ones from hextra to layouts directory) and change the class there, but it would definetely feel more "automagical" if the built-in templates would react to the config settings

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions