Skip to content

Conversation

@therobrob
Copy link
Member

  • refactored expander-code
  • split up faq markdown
  • added faq in structured data

@github-actions
Copy link

Hi there! 👋

Thank you for your contribution to the FIP Guide! 🚀
We appreciate your effort in making rail staff travel information more accessible. 🚄

Checklist before merging:

  • Added a description to the Pull Request
  • Checked the License of new pictures (non-commercial use without attribution)
  • Modified content in English
  • Modified content in German
  • Modified content in French

@therobrob therobrob linked an issue Dec 26, 2025 that may be closed by this pull request
@netlify
Copy link

netlify bot commented Dec 26, 2025

Deploy Preview for fipguide ready!

Name Link
🔨 Latest commit c6dea65
🔍 Latest deploy log https://app.netlify.com/projects/fipguide/deploys/694edf45b0222a0008080085
😎 Deploy Preview https://deploy-preview-545--fipguide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

"name": "{{ $item.Title }}",
"acceptedAnswer": {
"@type": "Answer",
"text": {{ $item.Content | jsonify | safeHTML }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line doesn't convince me, because the output is in the wrong format yet.


{{ $faq := where $gi.Pages ".File.Dir" "==" "generalinformation/faq/" }}

{{ range sort $faq ".File.BaseFileName" }}
Copy link
Member Author

@therobrob therobrob Dec 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the sorting order relevant to us? If so, we could use the weight-property in the preface to force a specific order.

Maybe we should rename the md-Files to the question-names?

Comment on lines +6 to +9
"title" $title
"type" $type
"name" $name
"content" .Inner
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn’t work with capital letters..

@therobrob therobrob added content Improvements or additions to the content (countries, news, operators, general content) technical Technical issues, e.g. related to Hugo, HTML, CSS, deployment, etc. labels Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content Improvements or additions to the content (countries, news, operators, general content) technical Technical issues, e.g. related to Hugo, HTML, CSS, deployment, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Structured data for "General Information" / FAQ

2 participants