Skip to content

Conversation

@stm2
Copy link

@stm2 stm2 commented Aug 24, 2025

Einige Layoutverbesserungen:

  • automatische pagination für Übersichtsseiten
  • Autor und Datum werden korrekt und lokalisiert angezeigt
  • Navigation zum nächsten/vorherigen Report
  • Seite funktioniert sowohl online, mit path-prefix, als auch lokal als File
  • README aktualisiert für Tutorialautoren

Copilot AI review requested due to automatic review settings August 24, 2025 13:34
Copy link

Copilot AI left a 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

Comment on lines +9 to +12
{% if content.indexOf('crs-requires-css') !== -1 %}
<link rel="stylesheet" href="{{ '/css/crs.css' }}">
{% endif %}
{% if content.indexOf('crs-requires-js') !== -1 %}
Copy link

Copilot AI Aug 24, 2025

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.

Suggested change
{% 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 %}

Copilot uses AI. Check for mistakes.
@stm2 stm2 mentioned this pull request Aug 24, 2025
Closed
Copy link

Copilot AI left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant