-
Notifications
You must be signed in to change notification settings - Fork 0
headTag
Reuben L. Lillie edited this page Jul 22, 2019
·
2 revisions
Include the headTag() shortcode to load the <head> tag into an HTML document.
Code resides in shortcodes/head-tag.js where there is more technical inline documentation.
Can call this.headTag() inside any template after the opening <html> but before the opening <body>.
Make sure to pass the data object as a parameter.
// layout.11ty.js
module.exports = function (data) {
return `
<!DOCTYPE html>
<html>
${this.headTag(data)}
<body>
…
</body>
</html>
`
}Copyright © 2019 by Pittsburgh District Church of the Nazarene
- Welcome
- Setup
- Coding Standards
-
HTML (in
/pghnaz.org/wiki) -
CSS (in
/pghnaz.org/wiki) -
JavaScript (in
/pghnaz.org/wiki)
-
HTML (in
- Color Scheme
- Style Guide
- Layouts
404.11ty.jsbase.11ty.jscalendar.11ty.jscontact.11ty.jscontent.11ty.jscollection.11ty.jseventList.11ty.jsmap.11ty.jssearch.11ty.js
- Filters
- Shortcodes
- Site Information
affiliateLogo()copyrightNotice()favicon()rootDomainLogo()siteLogo()siteTagline()
- Document metadata
descriptionMeta()contentDate()contentTitle()externalCSS()headTag()inlineCSS()socialMeta()titleTag()
- Navigation
menu()socialLinks()
- Headers
contentHeader()siteHeader()
- Footers
contentFooter()siteFooter()
- Call to Action
callToAction()editThisPage()subscribeToNewsletter()
- Site Information
- Client-Side JavaScript
search.js
- Other static assets
- Badges
- Branding
- Fonts