made pages less wide
This commit is contained in:
parent
b867f8989d
commit
e36d23cb96
4 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
{% unless layout.custom_h1 -%}<h1>{{ page.title }}</h1>{%- endunless %}
|
||||
<div id='main'>
|
||||
{{ content }}
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
layout: default
|
||||
custom_h1: true
|
||||
---
|
||||
{%- comment -%} return everything before the first full stop, without the trailing "_recipes/". for example: "_recipes/file.yml.md" becomes "file" {%- endcomment -%}
|
||||
{%- assign id = page.path | split: "." | pop | first | remove_first: "_recipes/" -%}
|
||||
|
|
|
@ -11,7 +11,9 @@ body {
|
|||
margin: 0;
|
||||
}
|
||||
#main {
|
||||
max-width: 1500px;
|
||||
flex-grow: 1;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
h1 {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
title: Home
|
||||
layout: default
|
||||
---
|
||||
<h1>Home</h1>
|
||||
<h2 class='no-bg'>Recipes</h2>
|
||||
<p class='subtle'>Showing {% if site.recipes_per_page > site.recipes.size %}{{ site.recipes_per_page}}{% else %}{{ site.recipes.size }}{% endif %} results.</p>
|
||||
{% include recipes.html %}
|
||||
|
|
Loading…
Reference in a new issue