openSUSE / suse-xsl

DocBook XSL Stylesheets for SUSE branding
Other
11 stars 10 forks source link

Fix #499: Change format of <title> #501

Closed tomschr closed 1 year ago

tomschr commented 1 year ago

~For SEO reasons, the length of the tag should be limited to 60 characters. For background info, see <a rel="noreferrer nofollow" target="_blank" href="https://www.contentkingapp.com/academy/title-tag/#good-length">https://www.contentkingapp.com/academy/title-tag/#good-length</a> The title length can be delimited with the parameter <code>$seo.title.length</code>.~</p> <p>The format of the title has been changed. This was the old format:</p> <pre><code><CURRENT_TITLE> | <GUIDE_TITLE> | <PRODUCT> <VERSION></code></pre> <p>As <PRODUCT> can be quite long (for example, "SUSE Linux Enterprise Server..."), we use the abbreviated product name. This is taken from <code>d:productname[@role="abbrev"]</code>. The new format looks like this:</p> <pre><code><PRODUCT_ABBREV> <VERSION> | <CURRENT_TITLE> | <GUIDE_TITLE></code></pre> <p>(We don't shorten the title to make sure we can distinguish the page) See also DOCTEAM-781</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>