Skip to content

Commit

Permalink
(optionally) automatically include page title
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Nov 24, 2013
1 parent e7fc936 commit 72a3c43
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
6 changes: 6 additions & 0 deletions _layouts/default.html
Expand Up @@ -24,6 +24,12 @@
</a>
</div>

{% comment %}Liquid is sort of terrible! I think "!= true" is the
only way to do negation?{% endcomment %}
{% if page.notitle != true %}
<h2>{{ page.title }}</h2>
{% endif %}

{{ content }}

<div class="footer">
Expand Down
1 change: 1 addition & 0 deletions index.html
@@ -1,6 +1,7 @@
---
layout: default
title: Home
notitle: true
---

<div class="jumbotron">
Expand Down
2 changes: 0 additions & 2 deletions people.html
Expand Up @@ -3,8 +3,6 @@
title: People
---

<h2>People</h2>

<p>Some of the group in action (apparently Dan, Tom, Hadi, Mike and Ben were
off doing real work).</p>

Expand Down
3 changes: 0 additions & 3 deletions publications.html
Expand Up @@ -2,9 +2,6 @@
layout: default
title: Publications
---

<h2>Publications</h2>

<p>
<a href="{{ site.base }}/bib/sampa-pubs.bib">Download BibTeX.</a>
</p>
Expand Down
2 changes: 0 additions & 2 deletions research/approximation/index.md
Expand Up @@ -2,6 +2,4 @@
layout: default
title: Approximate Computing
---
## {{ page.title }}

An introduction to approximation! [EnerJ](enerj.html) is a language.
5 changes: 1 addition & 4 deletions research/index.html
@@ -1,6 +1,6 @@
---
layout: default
title: Research
title: Research Projects
projects:
- link: approximation/
name: Approximate Computing
Expand All @@ -9,9 +9,6 @@
name: Deterministic Parallelism
summary: Determinism is inevitable.
---

<h2>Research Projects</h2>

{% for project in page.projects %}
<div class="project">
<h4><a href="{{ project.link }}">{{ project.name }}</a></h4>
Expand Down

0 comments on commit 72a3c43

Please sign in to comment.