made pages less wide

This commit is contained in:
Lynne Megido 2020-03-05 19:42:10 +10:00
parent b867f8989d
commit e36d23cb96
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90
4 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@
</head>
<body>
{% unless layout.custom_h1 -%}<h1>{{ page.title }}</h1>{%- endunless %}
<div id='main'>
{{ content }}
</div>

View File

@ -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/" -%}

View File

@ -11,7 +11,9 @@ body {
margin: 0;
}
#main {
max-width: 1500px;
flex-grow: 1;
margin: 0 auto;
}
h1 {

View File

@ -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 %}