Add blog and gallery sections with GitHub Pages relative URL support
Implements blog/gallery sections on home page and fixes theme URL generation to support GitHub Pages subpath deployment.
GitHub Pages Compatibility
Changed URL generation from absolute to relative paths throughout theme:
-
website/layouts/index.html:.Permalink→.RelPermalink -
website/layouts/docs/single.html: Asset and navigation URLs converted - Added missing partials:
opengraph.html,twitter_cards.html
Result: Site works at both root (/) and subpath (/infra-bootstrap-tools/)
Blog Section
# website/content/en/blog/example.md
---
title: "Getting Started with Infrastructure as Code"
date: 2025-11-05
summary: Learn the basics of Infrastructure as Code...
tags: [Infrastructure as Code, Automation, DevOps]
---
- Home page: Latest 3 posts with tags/dates
- List view: All posts in responsive grid
- Single view: Full post with metadata
- 3 sample IaC-focused posts included
Gallery Section
Mosaic layout for project showcase:
- Home page: Latest 6 items in asymmetric grid (larger every 3rd item)
- List view: Card grid with images and descriptions
- Single view: Project details with featured image
- 6 sample infrastructure projects with Unsplash placeholders
Styling
New CSS files maintain theme consistency:
-
home-extended.css: Blog/gallery sections on home -
blog-extended.css: Blog navigation and cards -
gallery-extended.css: Mosaic layout with hover effects
Responsive breakpoints at 768px (mobile) and 1024px (tablet).
Screenshots
Home page with blog and gallery sections:
Blog list page:
Gallery list page:
Notes
- Layout overrides in
website/layouts/preserve theme submodule upgradability - Sample content should be replaced with actual posts/projects
- Pinterest integration for gallery images deferred to future work
[!WARNING]
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
github.com (HTTP Only)
- Triggering command:
/usr/bin/ssh -o SendEnv=GIT_PROTOCOL [email protected] git-upload-pack 'xNok/E25DX.git'(packet block)If you need me to access, download, or install something from one of these locations, you can either:
- Configure Actions setup steps to set up my environment, which run before the firewall is enabled
- Add the appropriate URLs or hosts to the custom allowlist in this repository's Copilot coding agent settings (admins only)
Original prompt
let's keep building the website here are some task:
- the theme is not compatible with github pages as the url are not relative (meaning the navigation is wrong (both should be supported custom domain and github pahe domain)
- Add a blog section to the home page with latest article
- let's add a galery section that will contain image from various project i am thinking of Mozoic kind of pages (most image will come from my Pinterest account)
- The home page should contain a gallery section with latest posts
Make sure to use and improve the neo theme we have created for this project
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
⚠️ No Changeset found
Latest commit: b816314e98d502d82727e6459d66d7012b2e0bce
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
@copilot the project gallery is lacking some aesthetic it does look nice on the home page layout.
Also please write some guidelines as to what content goes' where and review what content need to be written to consider this ready to be released. I will assign the writing task to other agent and only merge this or when it is ready so it does look too empty
@copilot the project gallery is lacking some aesthetic it does look nice on the home page layout.
Also please write some guidelines as to what content goes' where and review what content need to be w...
I've improved the gallery aesthetics and created comprehensive content guidelines.
Gallery improvements (commit 422e1ce):
- Enhanced hover effects with gradient overlays
- Larger, gradient-styled heading
- Improved tag styling with purple/pink theme
- Increased spacing and smoother animations
- More pronounced image zoom and card lift effects
Content guidelines (website/CONTENT_GUIDELINES.md):
- Complete writing guide for blog and gallery content
- Frontmatter templates and best practices
- Minimum requirements: 5 blog posts + 8 gallery projects
- Prioritized content recommendations with time estimates
- Ready-for-release checklist
The guidelines estimate 40-50 hours of writing to reach production-ready state. Priority 1 covers essential blog posts (tutorials, concepts), and Priority 2 focuses on gallery projects with actual implementation screenshots.
@xNok https://github.com/dumindu/E25DX#create-a-new-hugo-site-with-the-e25dx-theme ; It supports docs/ blog/ page setup now. Quite experimental though.
@copilot, the template I am using now supports updating the submodule https://github.com/xNok/E25DX/tree/main, using the built-in system and implementing whatever is missing from the initial request. I believe we can forget about the galery for now to reduce the scope of this PR
@copilot, the template I am using now supports updating the submodule https://github.com/xNok/E25DX/tree/main, using the built-in system and implementing whatever is missing from the initial request. ...
Gallery section removed (commit 261c0ff). The PR now focuses on blog and GitHub Pages compatibility.
Changes:
- Removed all gallery content, layouts, and CSS
- Removed gallery navigation from blog pages
- Updated content guidelines to focus on blog only
- Updated documentation to reflect scope reduction
The home page now shows only the hero section and blog cards, making this a more focused PR.
@copilot apply changes based on the comments in this thread
@copilot apply changes based on the comments in this thread
Applied all code review suggestions (commit b816314):
Social Media Meta Tags:
- OpenGraph and Twitter Cards now use page-specific title/description
- Falls back to site defaults when unavailable
Cover Images:
- Changed to absolute URLs (
.Permalink) for proper display - Fixes social media sharing
Content Note:
- Added summary note to blog posts linking to full Medium articles
All builds passing successfully.
-
https://github.com/dumindu/E25DX#6-main-menu : to add a navigation
-
https://github.com/dumindu/E25DX#4-sample-blog : to add cover images to blog posts, if needed
- Add newsite/content/en/blog/2026_1_hello_world/index.md
- Add any image of png (or jpg) for newsite/content/en/blog/cover.png for blog list page cover image
-
https://squoosh.app : to improve images for web cc @xNok