<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>

e.g.

My page title | My site title

OR

My site title