Link to other pages #1795
-
Problem statementSorry for the noob question but I can't figure out how to correctly model my use case. I am creating a food blog, with some recipes. Each recipe has the same structure, let's say a Next to my recipes, I also have one page per technical task. A technical task is rendered on its own. My problem: in the ExampleLet's say I have a macarons recipe: // _data/recipes.js
module.exports = [
{
title: 'Macarons',
picture: 'macarons.jpg',
steps: [
{
picture: 'step1.jpg',
content: 'Take the eggs and [scramble]({{ technical_tasks.egg_scrambling}}) them.'
},
// [...] In the Any thoughts on that? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
@Bernardstanislas Would a hardcoded link work? content: 'Take the eggs and <a href="/technical/scramble/">scramble</a> them.' To be honest I'm not sure if the markdown+liquid/nunjucks template syntax would work within a global data file. I'm not sure what |
Beta Was this translation helpful? Give feedback.
@Bernardstanislas Would a hardcoded link work?
content: 'Take the eggs and <a href="/technical/scramble/">scramble</a> them.'
To be honest I'm not sure if the markdown+liquid/nunjucks template syntax would work within a global data file.
I'm not sure what
technical_tasks
is, or where that comes from, but if it's another global data file of links, you might need to include that file in your./_data/recipes.js
file.