Changed homepage
This commit is contained in:
parent
2576fecd4f
commit
f3f60f8c8c
|
|
@ -1,16 +1,28 @@
|
|||
<header class="hero">
|
||||
<div class="wrapper">
|
||||
<div class="hero-content">
|
||||
<h1>
|
||||
{% if heroTitle %}
|
||||
{{ heroTitle }}
|
||||
{% else %}
|
||||
{{ title }}
|
||||
{% endif %}
|
||||
</h1>
|
||||
{% if description %}
|
||||
<p>{{ description }}</p>
|
||||
{% if heroTitle or description %}
|
||||
{% if heroBackground or heroColor %}
|
||||
<style>
|
||||
.hero {
|
||||
{% if heroBackground %}
|
||||
--hero-background: {{ heroBackground }};
|
||||
{% endif %}
|
||||
{% if heroColor %}
|
||||
--hero-color: {{ heroColor }};
|
||||
{% endif %}
|
||||
}
|
||||
</style>
|
||||
{% endif %}
|
||||
<header class="hero">
|
||||
<div class="wrapper">
|
||||
<div class="hero-content">
|
||||
{% if heroTitle %}
|
||||
<h1>
|
||||
{{ heroTitle }}
|
||||
</h1>
|
||||
{% endif %}
|
||||
{% if description %}
|
||||
<p>{{ description }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
</header>
|
||||
{% endif %}
|
||||
|
|
@ -1,11 +1,10 @@
|
|||
---
|
||||
title: 'Home'
|
||||
description: 'A website made with Eleventy'
|
||||
heroTitle: 'Welcome'
|
||||
heroTitle: 'Welcome to my website'
|
||||
heroBackground: var(--surface1)
|
||||
heroColor: var(--text1)
|
||||
metaDesc: 'A made up agency site that you build if you take Learn Eleventy From Scratch, by Piccalilli'
|
||||
layout: 'home'
|
||||
---
|
||||
|
||||
## Posts
|
||||
|
||||
{% include "partials/post-list.html" %}
|
||||
Loading…
Reference in a new issue