-
Notifications
You must be signed in to change notification settings - Fork 2
Layout fix #7
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?
Layout fix #7
Conversation
- crmap: show CR as interactive svg map - display map region and unit information and commands on click - orderfile: render orders with wiki links and comments (with markdown) - readnr/shownr: parse NR and detect sections, regions, units - display sections, regions units
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.
Pull Request Overview
This PR implements comprehensive layout fixes for a tutorial website including automatic pagination for overview pages, improved author and date display with localization, next/previous navigation for reports, and compatibility for online, path-prefixed, and local file system usage.
- Switch overview pages from base-layout to new overview-layout template with automatic pagination
- Add localized author and date display with proper formatting and navigation between reports
- Integrate CRS (map/report rendering) system with CSS/JS auto-inclusion and extensive shortcode support
Reviewed Changes
Copilot reviewed 15 out of 254 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| goblins/index.njk | Changes layout to overview-layout and removes manual post iteration |
| goblins/goblins.json | Adds author field for content attribution |
| css/site.css | Updates comment formatting and adds navigation list styling |
| crs/crs.js | Complete CRS system implementation with map rendering and report parsing |
| crs/crs.css | Comprehensive styling for CR maps, order files, and report displays |
| crs/crs-passthrough.js | Client-side JavaScript for interactive map functionality |
| aquarians/index.njk | Updates layout to overview-layout template |
| aquarians/aquarians.json | Adds author field for aquarian content |
| _includes/post-layout.njk | Enhanced with author display, localized dates, and next/prev navigation |
| _includes/overview-layout.njk | New template for overview pages with automatic post iteration |
| _includes/base-layout.njk | Adds dynamic CSS/JS inclusion, pagination, and relative URL handling |
| _data/site.json | Establishes default locale configuration |
| README.md | Complete rewrite with tutorial authoring instructions |
| .eleventyignore | Adds template directory exclusion |
| .eleventy.js | Major configuration update with CRS integration and relative link handling |
| {% if content.indexOf('crs-requires-css') !== -1 %} | ||
| <link rel="stylesheet" href="{{ '/css/crs.css' }}"> | ||
| {% endif %} | ||
| {% if content.indexOf('crs-requires-js') !== -1 %} |
Copilot
AI
Aug 24, 2025
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.
Using indexOf to check for CSS/JS requirements in content is fragile and could lead to false positives if the string appears in other contexts. Consider using a more robust method like checking for specific HTML attributes or using a dedicated flag in the front matter.
| {% if content.indexOf('crs-requires-css') !== -1 %} | |
| <link rel="stylesheet" href="{{ '/css/crs.css' }}"> | |
| {% endif %} | |
| {% if content.indexOf('crs-requires-js') !== -1 %} | |
| {% if crs_requires_css %} | |
| <link rel="stylesheet" href="{{ '/css/crs.css' }}"> | |
| {% endif %} | |
| {% if crs_requires_js %} |
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Einige Layoutverbesserungen: