Created
December 15, 2020 23:10
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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