Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonHolman/84007891956f5ece3369f28216c4bd9e to your computer and use it in GitHub Desktop.
Save JonHolman/84007891956f5ece3369f28216c4bd9e to your computer and use it in GitHub Desktop.
part-4-adding-category-landing-and-home-page: page.yaml setting page title based on conditions
#if($type =='article')
<title>W3.CSS Template - $items[0].heading.S</title>
#elseif($context.path.split('/').size() > 2)
<title>W3.CSS Template - $context.path.split('/')[-1] category</title>
#else
<title>W3.CSS Template</title>
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment