Skip to content

Commit c9cc805

Browse files
author
Matthias Rampke
committed
Fix governance design
Let the governance use the default layout (all markdown files default to "docs"). Make the default layout use the right div classes so the CSS can take hold. Fix the `layout` declaration for Markdown documents that are not `kind: article`. Declare the governance to use the "default" layout, not the "docs" one. This is the minimal change to support the governance document. The layout choice needs a refactoring, but how to do that needs more thought.
1 parent 17f75ae commit c9cc805

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Rules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ compile '*' do
6666
if item[:kind] == 'article'
6767
layout 'blog'
6868
else
69-
layout 'docs'
69+
# TODO(mr): separate layout selection from Markdown handling
70+
layout item[:layout] || 'docs'
7071
end
7172
elsif item[:extension] == 'css'
7273
# don’t filter stylesheets

content/governance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Governance
3+
layout: default
34

45
---
56

layouts/default.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<%= render 'header' %>
22

33
<div class="container">
4-
<%= yield %>
4+
<div class="col-md-12 doc-content">
5+
<%= yield %>
6+
</div>
57
<%= render 'container_footer' %>
68
</div>
79

0 commit comments

Comments
 (0)