Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explain fields in defaultContext #1031

Merged
merged 2 commits into from
Jun 2, 2024
Merged

explain fields in defaultContext #1031

merged 2 commits into from
Jun 2, 2024

Conversation

tanyabouman
Copy link
Contributor

Hakyll.Web.Template.Context

  • add examples to the fields
  • add explanation about replacing defaultContext fields

'More on compilers: load, and templates' tutorial

  • add $title$ to the list of fields in defaultContext
  • add explanation about replacing defaultContext fields

Copy link
Collaborator

@Minoru Minoru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this overall, but I've got a suggestion about constField in examples.

lib/Hakyll/Web/Template/Context.hs Outdated Show resolved Hide resolved
Hakyll.Web.Template.Context
- add examples to the fields
- add explanation about replacing `defaultContext` fields

'More on compilers: load, and templates' tutorial
- add `$title$` to the list of fields in `defaultContext`
- add explanation about replacing `defaultContext` fields
web/tutorials/04-compilers.markdown Outdated Show resolved Hide resolved
lib/Hakyll/Web/Template/Context.hs Outdated Show resolved Hide resolved
@Minoru Minoru merged commit ef055c1 into jaspervdj:master Jun 2, 2024
14 checks passed
@tanyabouman tanyabouman deleted the default-context-docs branch June 3, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants