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> </head>
<body> <body>
{% unless layout.custom_h1 -%}<h1>{{ page.title }}</h1>{%- endunless %}
<div id='main'> <div id='main'>
{{ content }} {{ content }}
</div> </div>

View file

@ -1,5 +1,6 @@
--- ---
layout: default 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 -%} {%- 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/" -%} {%- assign id = page.path | split: "." | pop | first | remove_first: "_recipes/" -%}

View file

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

View file

@ -2,7 +2,6 @@
title: Home title: Home
layout: default layout: default
--- ---
<h1>Home</h1>
<h2 class='no-bg'>Recipes</h2> <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> <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 %} {% include recipes.html %}