This module contains low-level functions for building up
values that will be rendered into the page's <head> tag
when you run elm-pages build. Most likely the Head.Seo module
will do everything you need out of the box, and you will just need to import Head
so you can use the Tag type in your type annotations.
But this module might be useful if you have a special use case, or if you are
writing a plugin package to extend elm-pages.
Example:
metaName
[ ( "name", "twitter:card" )
, ( "content", "summary_large_image" )
]Results in <meta name="twitter:card" content="summary_large_image" />
Example:
Head.metaProperty "fb:app_id" (Head.raw "123456789")Results in <meta property="fb:app_id" content="123456789" />
Add a link to the site's RSS feed.
Example:
rssLink "/feed.xml"<link rel="alternate" type="application/rss+xml" href="/rss.xml">Add a link to the site's RSS feed.
Example:
sitemapLink "/feed.xml"<link rel="sitemap" type="application/xml" href="/sitemap.xml">AttributeValuesValues, such as between the <>'s here:
<meta name="<THIS IS A VALUE>" content="<THIS IS A VALUE>" />Create an AttributeValue representing the current page's full url.
Create an AttributeValue from an ImagePath.
Create an AttributeValue from a PagePath.
Create a raw AttributeValue (as opposed to some kind of absolute URL).
Feel free to use this, but in 99% of cases you won't need it. The generated
code will run this for you to generate your manifest.json file automatically!
It's recommended that you use the Seo module helpers, which will provide this
for you, rather than directly using this.
Example:
Head.canonicalLink "https://elm-pages.com"
Values that can be passed to the generated
Pages.applicationconfig through theheadfunction.