Skip to content

Conversation

@ReenigneArcher
Copy link
Member

@ReenigneArcher ReenigneArcher commented Oct 21, 2025

Description

This PR allows adding Amazon product links with affiliate tracking tags to the bottom of blog posts.

Screenshot

image

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

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.
@sonarqubecloud
Copy link

@ReenigneArcher ReenigneArcher marked this pull request as ready for review October 22, 2025 00:52
@ReenigneArcher ReenigneArcher merged commit 177c8c7 into master Oct 22, 2025
12 checks passed
@ReenigneArcher ReenigneArcher deleted the feat/blog/add-amazon-affiliate-integration branch October 22, 2025 00:52
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