Created
August 11, 2022 01:40
-
-
Save MWDelaney/0037f3effe51739f6b74dd533c0580d0 to your computer and use it in GitHub Desktop.
Using a single Eleventy template to create multiple versions of a page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
eleventyExcludeFromCollections: true | |
pagination: | |
data: collections.versions | |
size: 1 | |
alias: page | |
eleventyComputed: | |
title: "{{ page.data.title }}" | |
permalink: "/{{ page.data.version | slugify }}/{{ page.data.title | slugify }}/" | |
--- | |
<h1>{{ title }}</h1> | |
<p class="version">{{ version }}</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment