Skip to content

Commit

Permalink
MIR-1346 Allow to add custom meta elements in mir-flatmir-layout.xsl
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi authored and kkrebs committed Sep 3, 2024
1 parent 43e20ed commit e643167
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- Overwrite stylesheet and template in your application module to add custom meta elements -->
<xsl:template name="mir-flatmir-layout-meta-tags"/>
</xsl:stylesheet>
5 changes: 3 additions & 2 deletions mir-layout/src/main/resources/xsl/mir-flatmir-layout.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
xmlns:i18n="xalan://org.mycore.services.i18n.MCRTranslation"
exclude-result-prefixes="xlink i18n">

<xsl:output method="html" indent="yes" omit-xml-declaration="yes" media-type="text/html"
version="5" />
<xsl:output method="html" indent="yes" omit-xml-declaration="yes" media-type="text/html" version="5" />
<xsl:strip-space elements="*" />
<xsl:include href="resource:xsl/mir-flatmir-layout-utils.xsl"/>
<xsl:include href="resource:xsl/mir-flatmir-layout-meta-tags.xsl"/>
<xsl:param name="MIR.DefaultLayout.CSS" />
<xsl:param name="MIR.CustomLayout.CSS" select="''" />
<xsl:param name="MIR.CustomLayout.JS" select="''" />
Expand All @@ -25,6 +25,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<xsl:call-template name="mir-flatmir-layout-meta-tags"/>
<title>
<xsl:value-of select="$PageTitle" />
</title>
Expand Down

0 comments on commit e643167

Please sign in to comment.