unl / wdntemplates

The UNLedu Web Framework (WDN Templates) – Coordinated by the Web Developer Network
https://wdn.unl.edu
34 stars 32 forks source link

Add "data-template" attribute to body tag #1596

Open ericras opened 2 years ago

ericras commented 2 years ago

https://github.com/unl/sitemaster_plugin_unl is adding support for checking the template being used: fixed, local, affiliate, app.

Right now that is only found in an HTML comment and sometimes that comment is stripped by the site implementer.

It would be easier to have a data attribute on the body tag like we do for the version number.

<body data-version="6.0" data-template="local">