inline "body-landing" and "body" into layout

This reduces the time to build, as Jekyll doesn't have to
render the body, then copy it into the layout:

Production before:   62 seconds
Production after:    46 seconds
Development before:  35 seconds
Development after:   33 seconds

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-10-23 13:14:38 +02:00
parent 87f40087d8
commit d883621145
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
3 changed files with 7 additions and 2 deletions

View File

@ -1,8 +1,12 @@
<!-- Page generated {{ site.time }}
{%- if page.edit_url -%}
{%- assign edit_url = page.edit_url -%}
{%- else -%}
{%- assign edit_url = "https://github.com/docker/docker.github.io/edit/master/" | append: page.path -%}
{%- endif -%}
{%- endif -%} -->
<!DOCTYPE html>
<html lang="en">
{%- include head.html -%}
<body class="colums">
<header>
{% include header.html %}
@ -83,3 +87,4 @@
<script>const pageURL = "{{ page.url }}";</script>
{%- if jekyll.environment == 'production' -%}{%- include analytics/polldaddy.html -%}{%- endif -%}
</body>
</html>

View File

@ -1,7 +1,7 @@
---
description: Home page for Docker's documentation
keywords: Docker, documentation, manual, guide, reference, api, samples
landing: true
layout: landing
title: Docker Documentation
notoc: true
notags: true