-
Notifications
You must be signed in to change notification settings - Fork 146
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
Post title for display vs for URL? #100
Comments
The url is generated from either the |
Perfect, thanks so much! The aha for me:
So without the slug property, the slug would be |
Hmm it should also convert to lowercase, I'll make a separate bug for that -- thanks for the report! |
Crossposting here from StackOverflow. New to Poet, the post title is not behaving as I'd expect from the example.
I expect that if a post were in the file
hello.md
and had the configuration{{{ title: 'hello-world', ...}}}
that this would be available at the routehttp://hostname/post/hello
and have the display render the title to the reader as<h1>hello-world</h1>
. That's the way it seems to be working in the reference blog, e.g.:However, in my case it seems to be using the title attribute for both the URL and the display string. In my case, the post is accessible only at
http://hostname/posts/hello-world
and the page title is also rendered as<h1>hello-world</h1>
.What might I be doing wrong?
The text was updated successfully, but these errors were encountered: