Clive Portman: code

Craft basics

Show site url:
{{ url() }} shows the site url

Pass vars to _layout:
{% set pagename = 'work' %}
{% extends "_layout" %}

...then access it in _layout using:
{{ pagename }}

Conditionals:
{% if pagename == 'work' %}class=active{% endif %}