Members
cacheIDs :Array.<string>
Version-appended cacheName
- Source:
Type:
Array.<string>
css :Array.<string>
Relative URLs of stylesheets to cache
- Source:
Type:
Array.<string>
data
Acts as front matter data in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter data in JavaScript template files
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter data in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter data in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
data
Acts as front matter in JavaScript templates
fonts :Array.<string>
Relative URLs of font files to cache
- Source:
Type:
Array.<string>
images :Array.<string>
Relative URLs of images to cache
- Source:
Type:
Array.<string>
imagesID :string
The key for images pages in CacheStorage
- Source:
Type:
string
pages :Array.<string>
Relative URLs of pages to cache
- Source:
Type:
Array.<string>
Methods
(async) addToCache(request, response, cacheID) → {Promise}
Add a requested resource to CacheStorage
- Since:
- 1.0.0
- Source:
Parameters:
Name | Type | Description |
---|---|---|
request | Object.<Request> | The request from a fetch event |
response | Object.<Response> | The response to pair with the request |
cacheID | string | The key for the target cache |
Returns:
- Type:
Promise
Adds request/response key/value pairs to the cache
awardCard(degree) → {string}
Defines markup for an award or honor
Parameters:
Name | Type | Description |
---|---|---|
degree | Object | Data for an educational degree program |
Returns:
- Type:
string
HTML
(async) cacheCoreAssets() → {function}
Add core assets to CacheStorage
- Since:
- 1.0.0
- Source:
Returns:
- Type:
function
Add response objects to a given cache
(async) clearCache() → {function}
Clear CacheStorage
- Since:
- 1.0.0
- Source:
Returns:
- Type:
function
Sets this service worker for the client
concertWork(work) → {string}
Defines markup for a composer’s stage works
Parameters:
Name | Type | Description |
---|---|---|
work | Object | Global data for a concert work |
Returns:
- Type:
string
HTML
degreeCard(degree) → {string}
Defines markup for a degree program listing
Parameters:
Name | Type | Description |
---|---|---|
degree | Object | Data for an educational degree program |
Returns:
- Type:
string
HTML
envCSS(fileSlug) → {string}
Determine which CSS file to load based on environment variables
Parameters:
Name | Type | Description |
---|---|---|
fileSlug | string | File slug for stylesheet in the |
Returns:
- Type:
string
Path to environment CSS
(async) fetchFromNetwork(event) → {Object}
Fetch a resource from the network to add to the appropriate cache
- Since:
- 1.0.0
- Source:
Parameters:
Name | Type | Description |
---|---|---|
event | Object.<Event> | A |
Returns:
- Type:
Object
The response object
listLang(Language) → {string}
List language proficiency
Parameters:
Name | Type | Description |
---|---|---|
Language | Array.<Object> | data |
Returns:
- Type:
string
HTML
(async) networkFirst(event) → {Object|Promise}
Cache items fetched from the network
- Since:
- 1.0.0
- Source:
Parameters:
Name | Type | Description |
---|---|---|
event | Object.<Event> | A |
Returns:
- Type:
Object
|Promise
The response object or the cached object
(async) offlineFirst(event) → {Object|function}
Check the CacheStorage
before fetching a resource from the network
- Since:
- 1.0.0
- Source:
Parameters:
Name | Type | Description |
---|---|---|
event | Object.<Event> | A |
Returns:
- Type:
Object
|function
The cached object or the response from the network
pageLink(item, page) → {string}
Defines markup for navigation links based on the current page
- Since:
- 1.0.0
- Source:
Parameters:
Name | Type | Description |
---|---|---|
item | Object | An item in an Eleventy collection |
page | Object | Eleventy’s |
Returns:
- Type:
string
HTML
removeFromCache(keys) → {void}
Remove keys from CacheStorage
- Since:
- 1.0.0
- Source:
Parameters:
Name | Type | Description |
---|---|---|
keys | Array.<string> | Names of |
Returns:
- Type:
void
render() → {string}
Defines markup for the 404 page
- Source:
- See:
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the base template, which wraps around other templates
- Since:
- 1.0.0
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the main content
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the contact page
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render() → {string}
The content of the template
- Source:
Returns:
- Type:
string
The rendered template
render(data) → {string}
Defines markup for the Accessiblity Statement page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the colophon page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the Copyright Notice page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the Privacy Policy page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the Terms of Use page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the repertoire page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {String}
Defines markup for my singer program bio
Parameters:
Name | Type | Description |
---|---|---|
data | Object | 11ty’s |
Returns:
- Type:
String
HTML
render(data) → {string}
Defines markup for the repertoire page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {string}
Defines the markup for the speaking page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render() → {string}
Defines markup for a link to a social media account
- Source:
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the articles listing page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render() → {string}
Defines markup for my curriculum vitae
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the papers listing page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {string}
Defines the markup for the software template
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render(data) → {string}
Defines markup for the home page
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
render()(data) → {String}
Defines markup for pages
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
String
HTML
render()(data) → {string}
Defines markup for the syllabi listings page
Parameters:
Name | Type | Description |
---|---|---|
data | Object | Eleventy’s |
Returns:
- Type:
string
HTML
roleCard(degree) → {string}
Defines markup for a degree program listing
Parameters:
Name | Type | Description |
---|---|---|
degree | Object | Data for an educational degree program |
Returns:
- Type:
string
HTML
stageWork(work) → {string}
Defines markup for a composer’s stage works
Parameters:
Name | Type | Description |
---|---|---|
work | Object | Global data for a stage work |
Returns:
- Type:
string
HTML
syllabusCard(syllabus) → {string}
Define markup for a syllabus listing
Parameters:
Name | Type | Description |
---|---|---|
syllabus | Object | A syllabus data object |
Returns:
- Type:
string
HTML
trimYear(year) → {string}
Trim a four-digit year to two digits
Parameters:
Name | Type | Description |
---|---|---|
year | number | string | Four-digit year |
Returns:
- Type:
string
The year’s last two digits