kramdown adjustments

This commit is contained in:
Tom Johnson
2016-02-04 19:31:01 -08:00
parent a01c474df4
commit d0d573aade
9 changed files with 176 additions and 79 deletions

View File

@ -42,6 +42,7 @@ audience: writers
On a page in my site (it can be HTML or markdown), I can conditionalize content using the following:
{% raw %}
```liquid
{% if site.audience == "writers" %}
The writer audience should see this...
@ -49,6 +50,7 @@ The writer audience should see this...
The designer audience should see this ...
{% endif %}
```
{% endraw %}
This uses simple `if-elsif` logic to determine what is shown (note the spelling of `elsif`). The `else` statement handles all other conditions not handled by the `if` statements.