-
Notifications
You must be signed in to change notification settings - Fork 1
ADD Christmas assets including logo, GIFs, and CSS #43
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?
Conversation
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 pull request adds Christmas-themed decorations to the website, including a festive logo, animated Santa GIF, and associated CSS styling. The changes are intended to give the site a seasonal appearance during the holiday period.
Key Changes:
- Replaces the primary logo with a Christmas-themed version across the site
- Adds an animated Santa/reindeer decoration that moves across the homepage
- Introduces new CSS for the animation effect
Reviewed changes
Copilot reviewed 3 out of 6 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| layouts/_default/home.html | Adds Christmas CSS and animated Santa GIF to the homepage template |
| config/_default/params.yaml | Updates logo paths from standard logo to Christmas-themed logo |
| assets/css/christmas.css | Defines CSS styles and keyframe animation for the Santa decoration |
| assets/christmas/santa_2.gif | Binary GIF file used in the animation |
| assets/christmas/santa_1.gif | Binary GIF file (appears unused in current implementation) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -0,0 +1,32 @@ | |||
| /* Styles pour l'animation du renne de Noël */ | |||
Copilot
AI
Dec 15, 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.
The CSS comment is in French ("Styles pour l'animation du renne de Noël"). Consider using English for consistency with the rest of the codebase, or ensure the project has established French as the documentation language.
| /* Styles pour l'animation du renne de Noël */ | |
| /* Styles for the Christmas reindeer animation */ |
| .christmas-reindeer-line { | ||
| display: none; | ||
| } |
Copilot
AI
Dec 15, 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.
The .christmas-reindeer-line class is defined with display: none, meaning it's never visible. This appears to be unused code that should be removed to improve maintainability.
| .christmas-reindeer-line { | |
| display: none; | |
| } |
| .christmas-reindeer-container { | ||
| position: absolute; | ||
| top: 70px; |
Copilot
AI
Dec 15, 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.
The value 70px for the top position is a magic number. Consider using a CSS variable or adding a comment explaining why this specific value was chosen, especially in relation to the site's header height.
| .christmas-reindeer-container { | |
| position: absolute; | |
| top: 70px; | |
| :root { | |
| /* Height of the site header. Update this variable if the header height changes. */ | |
| --site-header-height: 70px; | |
| } | |
| .christmas-reindeer-container { | |
| position: absolute; | |
| /* Position below the site header */ | |
| top: var(--site-header-height); |
| width: 65px; | ||
| height: auto; | ||
| top: 50%; | ||
| transform: translateY(-50%); | ||
| animation: christmas-reindeer-move 8s linear infinite; | ||
| } | ||
|
|
||
| @keyframes christmas-reindeer-move { | ||
| 0% { | ||
| left: 100%; | ||
| } | ||
| 100% { | ||
| left: -65px; |
Copilot
AI
Dec 15, 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.
The animation uses hard-coded pixel values (65px, 80px, 8s) that should be defined as CSS variables for easier maintenance and consistency. This would make it simpler to adjust the animation if needed.
| {{ $reindeer := resources.GetMatch "**christmas/santa_2.gif" }} | ||
| {{ with $reindeer }} | ||
| <div class="christmas-reindeer-container"> | ||
| <div class="christmas-reindeer-line"></div> | ||
| <img class="christmas-reindeer-gif" src="{{ $reindeer.RelPermalink }}" alt="Reindeer" /> |
Copilot
AI
Dec 15, 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.
The template references santa_2.gif in the GetMatch pattern but the variable is named $reindeer. This naming inconsistency can cause confusion. Consider either renaming the variable to $santa or updating the file name to match the variable name.
| {{ $reindeer := resources.GetMatch "**christmas/santa_2.gif" }} | |
| {{ with $reindeer }} | |
| <div class="christmas-reindeer-container"> | |
| <div class="christmas-reindeer-line"></div> | |
| <img class="christmas-reindeer-gif" src="{{ $reindeer.RelPermalink }}" alt="Reindeer" /> | |
| {{ $santa := resources.GetMatch "**christmas/santa_2.gif" }} | |
| {{ with $santa }} | |
| <div class="christmas-reindeer-container"> | |
| <div class="christmas-reindeer-line"></div> | |
| <img class="christmas-reindeer-gif" src="{{ $santa.RelPermalink }}" alt="Santa" /> |
| {{ $christmasCSS := resources.Get "css/christmas.css" }} | ||
| {{ if $christmasCSS }} | ||
| <style> | ||
| {{ $christmasCSS.Content | safeCSS }} | ||
| </style> |
Copilot
AI
Dec 15, 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.
Inline styles using safeCSS bypass Hugo's asset pipeline features like minification and fingerprinting. Consider using Hugo's asset pipeline with resources.Get followed by .Minify and .Fingerprint for better performance and cache control in production.
| {{ $christmasCSS := resources.Get "css/christmas.css" }} | |
| {{ if $christmasCSS }} | |
| <style> | |
| {{ $christmasCSS.Content | safeCSS }} | |
| </style> | |
| {{ $christmasCSS := resources.Get "css/christmas.css" | resources.Minify | resources.Fingerprint }} | |
| {{ if $christmasCSS }} | |
| <link rel="stylesheet" href="{{ $christmasCSS.RelPermalink }}" integrity="{{ $christmasCSS.Data.Integrity }}"> |
| {{ $christmasCSS := resources.Get "css/christmas.css" }} | ||
| {{ if $christmasCSS }} | ||
| <style> | ||
| {{ $christmasCSS.Content | safeCSS }} | ||
| </style> | ||
| {{ end }} | ||
| {{ $reindeer := resources.GetMatch "**christmas/santa_2.gif" }} | ||
| {{ with $reindeer }} | ||
| <div class="christmas-reindeer-container"> | ||
| <div class="christmas-reindeer-line"></div> | ||
| <img class="christmas-reindeer-gif" src="{{ $reindeer.RelPermalink }}" alt="Reindeer" /> | ||
| </div> | ||
| {{ end }} |
Copilot
AI
Dec 15, 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.
The Christmas decorations are hard-coded into the home template without any configuration to enable/disable them. Consider adding a configuration parameter (e.g., enableChristmasTheme: true) in params.yaml to allow toggling this feature, making it easier to remove after the holiday season.
| {{ $christmasCSS := resources.Get "css/christmas.css" }} | |
| {{ if $christmasCSS }} | |
| <style> | |
| {{ $christmasCSS.Content | safeCSS }} | |
| </style> | |
| {{ end }} | |
| {{ $reindeer := resources.GetMatch "**christmas/santa_2.gif" }} | |
| {{ with $reindeer }} | |
| <div class="christmas-reindeer-container"> | |
| <div class="christmas-reindeer-line"></div> | |
| <img class="christmas-reindeer-gif" src="{{ $reindeer.RelPermalink }}" alt="Reindeer" /> | |
| </div> | |
| {{ end }} | |
| {{ if .Site.Params.enableChristmasTheme }} | |
| {{ $christmasCSS := resources.Get "css/christmas.css" }} | |
| {{ if $christmasCSS }} | |
| <style> | |
| {{ $christmasCSS.Content | safeCSS }} | |
| </style> | |
| {{ end }} | |
| {{ $reindeer := resources.GetMatch "**christmas/santa_2.gif" }} | |
| {{ with $reindeer }} | |
| <div class="christmas-reindeer-container"> | |
| <div class="christmas-reindeer-line"></div> | |
| <img class="christmas-reindeer-gif" src="{{ $reindeer.RelPermalink }}" alt="Reindeer" /> | |
| </div> | |
| {{ end }} | |
| {{ end }} |
No description provided.