Skip to content

Commit

Permalink
Update Tota11y to 0.2, refactor CDN reference
Browse files Browse the repository at this point in the history
  • Loading branch information
absalomedia committed Jul 1, 2019
1 parent bcf42eb commit 9eb4105
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 34 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# v1.1.0
## 07/01/2019

1. [](#update)
* Update to Khan version 0.2.0
* Switch from Github to UnPKG as GH no longer serves distribution JS


# v1.0.2
## 02/13/2017

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Grava11y (Acccessibility for Grav)
version: 1.0.2
version: 1.1.0
description: "An accessibility testing plugin for your Grav theme"
icon: wheelchair
author:
Expand Down
2 changes: 1 addition & 1 deletion grava11y.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function onTwigSiteVariables()
];

$siter = $this->config->get('plugins.grava11y.offsite');
$siter = (0) ? array_push($a11ystack, 'https://rawgit.com/Khan/tota11y/master/build/tota11y.min.js') : array_push($a11ystack, 'plugin://grava11y/js/tota11y.min.js');
$siter = (0) ? array_push($a11ystack, 'https://unpkg.com/@khanacademy/tota11y@0.2.0/dist/tota11y.min.js') : array_push($a11ystack, 'plugin://grava11y/js/tota11y.min.js');
// register and add assets
$assets = $this->grav['assets'];
$assets->registerCollection('grava11y', $a11ystack);
Expand Down
Loading

0 comments on commit 9eb4105

Please sign in to comment.