Skip to content

Commit

Permalink
Build: optimize rule page title for small browser tabs (fixes #6888) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbal authored and ilyavolodin committed Aug 15, 2016
1 parent 02a00d6 commit a2f06be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.js
Expand Up @@ -623,7 +623,7 @@ target.gensite = function(prereleaseVersion) {

// 5. Prepend page title and layout variables at the top of rules
if (path.dirname(filename).indexOf("rules") >= 0) {
text = "---\ntitle: Rule " + ruleName + "\nlayout: doc\n---\n<!-- Note: No pull requests accepted for this file. See README.md in the root directory for details. -->\n\n" + text;
text = "---\ntitle: " + ruleName + " - Rules\nlayout: doc\n---\n<!-- Note: No pull requests accepted for this file. See README.md in the root directory for details. -->\n\n" + text;
} else {

// extract the title from the file itself
Expand Down

0 comments on commit a2f06be

Please sign in to comment.