-
Notifications
You must be signed in to change notification settings - Fork 124
Add a template for sitemap generation #29
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
Conversation
Add a template for sitemap generation
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
{{#links}} | ||
<url> | ||
<loc>{{name}}</loc> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loc needs to be a fully qualified URL, beginning with http or https
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, have added a TODO in the dart code to fix that. Was not sure what the url would be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe pass it in from command line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So generate sitemap only when the option is passed in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's probably the easiest way to handle this for now.
@sethladd
Also added tests and turned on tests on Travis.