jgm / jgm/yst

Make a new kind of template available to `layout.html.st`

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
407
Forks
38
PR merge metrics
No merged PRs in 30d

Description

I'm not sure if this is possible currently, I couldn't work out how, anyway. Basically, I'd like a way to define something in `index.yaml` such that I can put it somewhere in the `layout.html.st` file. So `yst` defines `$nav$` and `$content$` based on what it reads in `index.yaml`. I'd like to make it such that there could be a third column, for instance. Or a sort of headline banner that runs across both nav and content and displays a different picture on each page.

Obviously, I could make it part of `$content$` and then do some CSS trickery to make it appear where I want, but it seems like a neater solution would be to just place it at the right place in the layout file.

Is this currently possible? Would implementing it be nontrivial?

Contributor guide

No contributing guide indexed for this repository

Research direction

Read how yst handles index.yaml and layout.html.st, starting with the existing $nav$ and $content$ values. Determine whether the current template mechanism can expose another named value; done means an additional region can be defined from the YAML data and placed explicitly in the layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, yaml
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.