Blake Watson :prami: on Nostr: 11ty peeps, say I have the following: pages/ - 10-my-first-page.md - ...
11ty peeps, say I have the following:
pages/
- 10-my-first-page.md
- 20-my-second-page.md
- 30-my-third-page.md
I'm setting the permalink thusly:
permalink: "{{ page.filePathStem }}/"
What is the easiest way to get 11ty to ignore the number in the slug that I am using just for sorting purposes? I would like the permalink to be, for example:
/pages/my-first-page/index.html
But currently I get:
/pages/10-my-first-page/index.html
Published at
2024-04-10 02:34:30Event JSON
{
"id": "1c13275fc3d0f5c4d0313687ee6914d9f70d6ec316f265ecc4125900c9c5210f",
"pubkey": "d25f9cf4fe4fccfb863f88fbb543417945a6a0b2099aaa4b4bcb15690e9e9ec6",
"created_at": 1712716470,
"kind": 1,
"tags": [
[
"proxy",
"https://social.lol/users/bw/statuses/112244586615522734",
"activitypub"
]
],
"content": "11ty peeps, say I have the following:\n\npages/\n- 10-my-first-page.md\n- 20-my-second-page.md\n- 30-my-third-page.md\n\nI'm setting the permalink thusly:\n\npermalink: \"{{ page.filePathStem }}/\"\n\nWhat is the easiest way to get 11ty to ignore the number in the slug that I am using just for sorting purposes? I would like the permalink to be, for example:\n\n/pages/my-first-page/index.html\n\nBut currently I get:\n\n/pages/10-my-first-page/index.html",
"sig": "bfbc587cfdd778205069e8cae13c882dc4828f77d6fa131fbe2f59d4629431161319c304c7331deddeba782507130bb5fa399c5b6f40b6e90cee675ce18472e4"
}