Replies: 3 comments 3 replies
-
Here are some examples of what I'd like: post1.md
The title of the html output should be 'My Post'. post2.md
The title of the html output should be 'Public Gardens'. post3.md
The title of the html output should be 'post3'. |
Beta Was this translation helpful? Give feedback.
-
Ah. I didn't realize that |
Beta Was this translation helpful? Give feedback.
-
Oh, shoot, I just did a web search to see if there was a better alternative to Odd, but I can't mark your reply as the answer. :( |
Beta Was this translation helpful? Give feedback.
-
I want to set the default title for posts in a directory to the
page.fileSlug
, with the option to override the default with items from front matter. In order of precedence, I want the the title of the post to betitle
if it's set; if not, thenlocation.name
if that is set; otherwise,page.fileSlug
.What I have so far in my *.11tydata.js file:
Is there a way to set title to
fileSlug
usingelevenyComputed
? AFAICT,page.*
items are not available here.Beta Was this translation helpful? Give feedback.
All reactions