Skip to content

Commit c3e677a

Browse files
committed
further simplify and cleanup layouts to be consistent with each other
1 parent 0ee3a1b commit c3e677a

File tree

5 files changed

+50
-66
lines changed

5 files changed

+50
-66
lines changed

content/_layouts/base.liquid

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!doctype html>
2+
<html lang="en">
3+
{% comment %} <%- @partial('head.html.eco', {title:@getPreparedTitle()}, {description:@getPreparedDescription()}, {keywords:@getPreparedKeywords()}, {author:@site.author or ''}, {styles:@getBlock("styles").add(["/styles/style.css", "/vendor/highlightjs/styles/an-old-hope.min.css"]).toHTML()} ) %> {% endcomment %}
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
8+
{% if title != null %}
9+
{% capture preparedTitle %} {{ title }} | HaxeFlixel - 2D Game Engine{% endcapture %}
10+
{% else %}
11+
{% assign preparedTitle = 'HaxeFlixel - 2D Game Engine' %}
12+
{% endif %}
13+
<title>{{ preparedTitle }}</title>
14+
15+
<meta property="og:title" content="{{ preparedTitle }}">
16+
<meta property="og:url" content="https://haxeflixel.com{{ page.url }}">
17+
<meta name="generator" content="{{ eleventy.generator }}">
18+
<meta
19+
name="description"
20+
content="HaxeFlixel is a 2D Game Engine that lets you create cross-platform games easier with free, open source technology!">
21+
<meta name="viewport" content="width=device-width, initial-scale=1">
22+
23+
<link rel="icon" href="/images/haxeflixel.svg">
24+
<link rel="shortcut icon" href="/images/favicon.ico">
25+
26+
<link rel="stylesheet" href="/styles/style.css">
27+
<link rel="stylesheet" href="/styles/highlights/vs2015.min.css">
28+
29+
<script>
30+
{% render "darkmode.js" %}
31+
</script>
32+
</head>
33+
34+
<body>
35+
{% renderFile "./content/_layouts/partials/header-menu.liquid" %}
36+
37+
{{ content }}
38+
39+
{% renderFile "./content/_layouts/partials/footer.liquid" %}
40+
{% renderFile "./content/cdn-scripts.liquid" %}
41+
<script src="/11ty-bundle.js"></script>
42+
</body>
43+
</html>

content/_layouts/default.liquid

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
<!doctype html>
2-
<html lang="en" data-bs-theme="dark">
3-
{% renderFile "./content/_layouts/partials/head.liquid" %}
4-
5-
<body>
6-
{% renderFile "./content/_layouts/partials/header-menu.liquid" %}
7-
8-
<div class="container-md container-main rounded-0">
9-
{{ content }}
10-
</div>
11-
12-
{% renderFile "./content/_layouts/partials/footer.liquid" %}
13-
14-
{% renderFile "./content/cdn-scripts.liquid" %}
15-
<script src="/11ty-bundle.js"></script>
16-
</body>
17-
</html>
1+
---
2+
layout: base
3+
---
4+
<div class="container-md container-main rounded-0">
5+
{{ content }}
6+
</div>

content/_layouts/home.liquid

Lines changed: 0 additions & 18 deletions
This file was deleted.

content/_layouts/partials/head.liquid

Lines changed: 0 additions & 30 deletions
This file was deleted.

content/index.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: 'home'
2+
layout: 'base'
33
title: 'Home'
44
---
55
<div class="container text-center">

0 commit comments

Comments
 (0)