j-mie6/parsley

View on GitHub
docs/helium/templates/head.template.html

Summary

Maintainability
Test Coverage
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="Typelevel Laika + Parsley Theme" />
    @:for(parsley.tabname)
    <title>${_}</title>
    @:empty
    <title>${cursor.currentDocument.rawTitle}</title>
    @:@
    @:for(laika.site.metadata.authors)
    <meta name="author" content="${_}"/>
    @:@
    @:for(laika.site.metadata.description)
    <meta name="description" content="${_}"/>
    @:@
    @:for(laika.metadata.canonicalLink)
    <link rel="canonical" href="${_}"/>
    @:@
    @:for(helium.site.favIcons)
    <link rel="icon" @:attribute(sizes, _.sizes) @:attribute(type, _.type) href="@:target(_.target)"/>
    @:@
    @:for(helium.webFonts)
    <link rel="stylesheet" href="${_}">
    @:@
    @:includeCSS
    @:includeJS
    @:heliumInitVersions
    @:heliumInitPreview(container)
    <script> /* for avoiding page load transitions */ </script>
  </head>