diff --git a/_layouts/default.html b/_layouts/default.html index 9dd01a5..0a72c43 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -9,6 +9,7 @@ + {% unless layout.custom_h1 -%}

{{ page.title }}

{%- endunless %}
{{ content }}
diff --git a/_layouts/recipe.html b/_layouts/recipe.html index 485530a..0fd7c6e 100644 --- a/_layouts/recipe.html +++ b/_layouts/recipe.html @@ -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/" -%} diff --git a/assets/style.css b/assets/style.css index 0eb04e5..f7083d4 100644 --- a/assets/style.css +++ b/assets/style.css @@ -11,7 +11,9 @@ body { margin: 0; } #main { + max-width: 1500px; flex-grow: 1; + margin: 0 auto; } h1 { diff --git a/index.html b/index.html index a0d0bb6..0e394a6 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,6 @@ title: Home layout: default --- -

Home

Recipes

Showing {% if site.recipes_per_page > site.recipes.size %}{{ site.recipes_per_page}}{% else %}{{ site.recipes.size }}{% endif %} results.

{% include recipes.html %}