diff --git a/_config.yml b/_config.yml index cba1fe8e67..d8c2bb59bd 100644 --- a/_config.yml +++ b/_config.yml @@ -1,7 +1,7 @@ markdown: kramdown title: "Scala Documentation" -description: "Documentation for the Scala programming language- Tutorials, Overviews, Cheatsheets, and more." +description: "Documentation for the Scala programming language - Tutorials, Overviews, Cheatsheets, and more." keywords: - Scala - Documentation diff --git a/_includes/header.txt b/_includes/header.txt index b8f659677b..4a6a0c9f47 100644 --- a/_includes/header.txt +++ b/_includes/header.txt @@ -1,8 +1,7 @@ - - {% if page.partof %}{{ page.partof | replace: '-',' ' | capitalize }} - {% endif %}{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }} + {% if page.partof %}{% assign words = page.partof | split: '-' %}{% for word in words %}{{ word | capitalize }} {% endfor %}- {% endif %}{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }} {% if page.description %} {% endif %}