-
Notifications
You must be signed in to change notification settings - Fork 16
feat: Auto-generate meta descriptions for operators and countries #471
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
base: main
Are you sure you want to change the base?
Conversation
|
Hi there! 👋 Thank you for your contribution to the FIP Guide! 🚀 Checklist before merging:
|
✅ Deploy Preview for fipguide ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
therobrob
left a comment
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.
Good idea to auto-generate the meta-description 👍🏼 nevertheless there is the option to overwrite it. I’ve made some comments, maybe you could check them before merging 😊
| operator: "{{ .File.ContentBaseName }}" | ||
| params: | ||
| # Der Name wird in den Meta-Beschreibungen verwendet. | ||
| name: |
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.
„name“ seems quite general, we use this term only for meta-description I think? Could we use a more specific term like nickname or meta-description-name?
| - "bulgaria" | ||
| operator: "bdz" | ||
| params: | ||
| name: Balgarski Darschawni Schelesnizi (BDŽ) |
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.
Why do we sometimes use the abbreviation and sometimes the full length name? There are different namings for now.. for example:
- Balgarski Darschawni Schelesnizi (BDŽ)
- DSB
- Trenitalia (FS)
- National Rail
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.
Honestly not sure, I just took the current meta-descriptions for the beginning. If there is no reason to customize it, we can also just use the page title and get rid of the overwrite logic.
Resolves #470