forked from daattali/beautiful-jekyll
-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat(blog): add amazon affiliate integration #20
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
Merged
ReenigneArcher
merged 9 commits into
master
from
feat/blog/add-amazon-affiliate-integration
Oct 22, 2025
Merged
feat(blog): add amazon affiliate integration #20
ReenigneArcher
merged 9 commits into
master
from
feat/blog/add-amazon-affiliate-integration
Oct 22, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Introduces Amazon affiliate product support with configuration in _config.yml, a product data file in _data/amazon_products.yml, and a new _includes/amazon-affiliate.html template. Products are filtered by page tags and displayed with affiliate links, rotating every 30 seconds.
Refactored the Amazon affiliate HTML to use semantic classes instead of inline styles, improved conditional logic to allow per-post disabling, and moved all affiliate section styles to the main CSS file. Updated the post layout to always include the affiliate section and enhanced documentation in the sample post to explain new Amazon product features.
Combined the commission and associate statements into a single line for improved clarity and presentation.
Replaced 'name' and 'description' fields with 'title' in amazon_products.yml for consistency. Updated amazon-affiliate.html to use 'title' instead of 'name' and removed product description display. Improved documentation in the enhancements post to clarify product filtering and usage. Removed unused product description CSS.
Replaced static RGBA colors with CSS variables and color-mix for background and border colors in Amazon affiliate container and product tag. This improves theme consistency and allows easier customization.
Enhanced the Amazon affiliate section to display products in a shuffled order with navigation buttons and automatic rotation every 30 seconds. Updated styles for navigation buttons and documented the feature in README.
Refactored the styles for Amazon affiliate carousel navigation buttons to improve positioning, appearance, and hover/active effects. Buttons are now absolutely positioned, use transparent backgrounds, and have updated icon sizes for better UI consistency.
Shifted the 'position: relative' CSS property from the .amazon-affiliate-container class to the pre element. This change may improve layout or stacking context for preformatted blocks and clarifies the positioning context for Amazon affiliate elements.
Updated the .amazon-affiliate-container CSS class to use horizontal padding of 3.5rem instead of 1.5rem, improving spacing within the section.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Description
This PR allows adding Amazon product links with affiliate tracking tags to the bottom of blog posts.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage