Skip to content

Commit

Permalink
add default page header and use on memberships page
Browse files Browse the repository at this point in the history
  • Loading branch information
willnorris committed Oct 11, 2021
1 parent a5d31fa commit 1cf1553
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions content/memberships.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: memberships
title: Memberships
subtitle: Our upstream and downstream partners who make open source happen
custom_css: memberships.scss
custom_js: memberships.js
---
5 changes: 4 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
<div class="header">
<div class="Grid container">
<div id="header-text" class="Grid-cell">
{{ block "header" . }}{{ end }}
{{ block "header" . }}
{{ with .Title }}<h1 class="large-title">{{ . }}</h1>{{ end }}
{{ with .Params.subtitle }}<h1 class="subtitle">{{ . }}</h1>{{ end }}
{{ end }}
</div>
</div>
</div>
Expand Down
5 changes: 0 additions & 5 deletions layouts/_default/memberships.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{{ define "header" }}
<h1 class="large-title">Memberships</h1>
<h1 class="subtitle">Our upstream and downstream partners who make open source happen</h1>
{{ end }}

{{ define "main" }}
<div class="section">
<div class="Grid membership-container container">
Expand Down

0 comments on commit 1cf1553

Please sign in to comment.