Skip to content

Update starter site for 2.0 release - #724

Merged
giuscris merged 5 commits into
2.xfrom
2.0-starter-site
Jul 12, 2025
Merged

Update starter site for 2.0 release#724
giuscris merged 5 commits into
2.xfrom
2.0-starter-site

Conversation

@giuscris

@giuscris giuscris commented Jul 7, 2025

Copy link
Copy Markdown
Member

No description provided.

@giuscris giuscris added this to the 2.0.0 milestone Jul 7, 2025
@giuscris giuscris self-assigned this Jul 7, 2025
@giuscris
giuscris requested a review from Copilot July 12, 2025 21:30
@giuscris
giuscris marked this pull request as ready for review July 12, 2025 21:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the starter site for the upcoming 2.0 release by overhauling templates, assets, and content.

  • Revamps layout structure and CSS to use custom properties and unminified assets with versioning
  • Enhances blog templates with cover images, publish dates, and refined menu behavior
  • Refreshes homepage and documentation content, enables tags, and converts schema options

Reviewed Changes

Copilot reviewed 19 out of 27 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
site/templates/partials/cover-image.php Switch from CSS background to <img> tag for cover images
site/templates/assets/js/script.js Migrate to modern JS (const, for-of) and update toggle logic
site/templates/assets/css/style.css Replace minified CSS, introduce CSS variables and new layouts
site/pages/index/page.md Update homepage copy, reorder sections, fix image usage
site/schemes/pages/blog.yaml Enable tags and change postsPerPage from select to number
Comments suppressed due to low confidence (1)

site/pages/index/page.md:29

  • The example path references site/content/... but source files live under site/pages/.... Update to site/pages/01-about/page.md for accuracy.
For example, an *About* page, using the `page` template and accessibile from the `/about/` route is represented by `site/content/01-about/page.md` file.

<div class="cover-image" style="background-image:url(<?= $image->uri() ?>);"></div>
<?php endif ?> No newline at end of file
<div class="container">
<img class="cover-image" src="<?= $image->uri() ?>">

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

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

Add an alt attribute to the <img> element for screen readers, e.g. alt="<?= $this->escape($page->title()) ?>".

Suggested change
<img class="cover-image" src="<?= $image->uri() ?>">
<img class="cover-image" src="<?= $image->uri() ?>" alt="<?= $image->alt() ?: $this->escape($page->title()) ?>">

Copilot uses AI. Check for mistakes.
Comment thread site/templates/assets/js/script.js Outdated
element.style.display = 'block';
var height = element.clientHeight;
const styleHeight = element.style.height;
const styleDisplay = element.style.height;

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

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

The styleDisplay variable is assigned from element.style.height instead of element.style.display. It should read const styleDisplay = element.style.display;.

Suggested change
const styleDisplay = element.style.height;
const styleDisplay = element.style.display;

Copilot uses AI. Check for mistakes.
Comment thread site/templates/assets/js/script.js Outdated
Comment on lines +10 to +13
if (!element.ariaExpaned) {
element.ariaExpaned = true;
} else {
this.setAttribute('aria-expanded', 'false');
element.ariaExpaned = false;

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

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

The property ariaExpaned is misspelled and applied to the content element rather than the toggle button. Use button.setAttribute('aria-expanded', 'true') (and 'false') or correct to element.ariaExpanded on the correct element.

Copilot uses AI. Check for mistakes.
border-bottom: 2px solid var(--color-gray-600);
}

.menu-list {

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

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

The .menu-list adds a gap but has no display: flex or display: grid, so the gap property will have no effect. Consider adding display: flex;.

Suggested change
.menu-list {
.menu-list {
display: flex;

Copilot uses AI. Check for mistakes.
Comment thread site/pages/index/page.md Outdated
![](formwork.png)

### Manage pages manually
If you prefer to manage the content manually, just locate the pages in the subdirectories of `馃搧聽site/pages` folder. Each subfolder is named by its slug with by an ordering number prefix, e.g., `01-about`.

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] The phrase "with by an ordering number prefix" is redundant. Consider removing one preposition, e.g., "with an ordering number prefix".

Suggested change
If you prefer to manage the content manually, just locate the pages in the subdirectories of `馃搧聽site/pages` folder. Each subfolder is named by its slug with by an ordering number prefix, e.g., `01-about`.
If you prefer to manage the content manually, just locate the pages in the subdirectories of `馃搧聽site/pages` folder. Each subfolder is named by its slug with an ordering number prefix, e.g., `01-about`.

Copilot uses AI. Check for mistakes.
@@ -1 +1 @@
alt: 'Screenshot of Formwork home page with a link to the administration panel and a dashboard preview'
alt: 'Screenshot of Formwork administration panel'

Copilot AI Jul 12, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] The alt text is quite generic. Consider restoring more descriptive details (e.g. mentioning the dashboard preview) to give context to visually impaired users.

Suggested change
alt: 'Screenshot of Formwork administration panel'
alt: 'Screenshot of the Formwork administration panel showing a dashboard preview with navigation menu, user statistics, and recent activity logs.'

Copilot uses AI. Check for mistakes.
@giuscris
giuscris merged commit f241c4a into 2.x Jul 12, 2025
1 check passed
@giuscris
giuscris deleted the 2.0-starter-site branch July 12, 2025 21:41
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.

2 participants