Skip to content

Commit

Permalink
🔖 chore: update changelog and version to 2.9.1
Browse files Browse the repository at this point in the history
Related: Issues #44 and #58
  • Loading branch information
chriskyfung committed Mar 11, 2024
1 parent 88a86b6 commit ab24f7a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# AMP Affiliately Jekyll Theme Changelog

## v2.9.1 (2024-03-12)

### 🐛 Fixes

- Removed the `data-ampdevmode` attribute from the `<amp-script>` component in non-development environments. This attribute was previously used to enable development-specific features, such as the ability to load scripts from a local server. However, it was found to cause unintended behavior in production environments, such as preventing scripts from running or causing validation errors. By removing this attribute in non-development environments, we ensure that AMP pages are always served with the correct configuration and that scripts are executed as intended.

### ✨ Features

- Introduced two new options to the site configuration:
- `amp_optimizer`: Set to true if you run AMP Optimizer after building the Jekyll site. Defaults to false.
- `script_hash`: A hash for the `get_stored_consentStates` script. Defaults to empty.

### 📝 Documentation

- Corrected a typo in the `.github-sponsors-button` CSS class, resolving an error.
- Updated badges that were labeled with incorrect version numbers.
- Migrated `<span class="badge ..."">` elements to use the kramdown attribute syntax: `<span>...</span>{:.badge...}`.
- Utilized reference links for inline markdown links in cases where lines become excessively long.
- Inserted a line break after each badge using `<br>` tags.
- Added `<br>` tags to create line breaks before default values.
- Enhanced table styling by applying vertical-align: top to `th` and `td` elements.
- Introduced two new CSS classes, `.blue` and `.green`, to provide additional styling options.
- Appended `.green` to inline code blocks containing the text "true".
- Appended `.blue` to inline code blocks containing non-boolean default values.
- Removed the `.plaintext` CSS class to streamline the styling.

## v2.9.0 (2024-03-08)

### ✨ Features
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "amp-affiliately-jekyll-theme",
"description": "AMP Affiliately is an AMP-ready Jekyll theme for your blogs and websites.",
"version": "2.9.0",
"version": "2.9.1",
"scripts": {
"convert": "npx gulp convert",
"jekyll": "bundle exec jekyll serve",
Expand Down

0 comments on commit ab24f7a

Please sign in to comment.