better template formatting
This commit is contained in:
parent
4b2dd9718b
commit
f6212da759
1 changed files with 23 additions and 9 deletions
|
@ -1,13 +1,27 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
{% if page.title %} {% set title = page.title %} {% elif section.title %} {% set
|
<!-- prettier-ignore -->
|
||||||
title = section.title %} {% elif config.title %} {% set title = config.title %}
|
{% if page.title %} {% set title = page.title %}
|
||||||
{% endif %} {% if page.description %} {% set description = page.description |
|
<!-- prettier-ignore -->
|
||||||
truncate(length=150) %} {% elif section.description %} {% set description =
|
{% elif section.title %} {% set title = section.title %}
|
||||||
section.description | truncate(length=150) %} {% elif page.summary %} {% set
|
<!-- prettier-ignore -->
|
||||||
description = page.summary | truncate(length=150) %} {% elif section.summary %}
|
{% elif config.title %} {% set title = config.title %}
|
||||||
{% set description = section.summary | truncate(length=150) %} {% elif
|
<!-- prettier-ignore -->
|
||||||
config.description %} {% set description = config.description |
|
{% endif %}
|
||||||
truncate(length=150) %} {% else %} {% set description = "" %} {% endif %}
|
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% if page.description %} {% set description = page.description | truncate(length=150) %}
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% elif section.description %} {% set description = section.description | truncate(length=150) %}
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% elif page.summary %} {% set description = page.summary | truncate(length=150) %}
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% elif section.summary %} {% set description = section.summary | truncate(length=150) %}
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% elif config.description %} {% set description = config.description | truncate(length=150) %}
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% else %} {% set description = "" %}
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
{% endif %}
|
||||||
<html lang="{{ config.default_language }}">
|
<html lang="{{ config.default_language }}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue