Skip to content

Commit 5581295

Browse files
committed
add theme-colors for different site sections for embeds
1 parent 89e3a71 commit 5581295

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

content/_layouts/base.liquid

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<meta property="og:title" content="{{ preparedTitle }}">
2020
<meta property="og:description" content="HaxeFlixel is a 2D Game Engine that lets you create cross-platform games easier with free, open source technology!">
2121
<meta property="og:url" content="https://haxeflixel.com{{ page.url }}">
22+
<meta property="og:site_name" content="HaxeFlixel">
23+
<meta name="theme-color" content="{{ embedColor }}">
2224
<meta name="generator" content="{{ eleventy.generator }}">
2325

2426
<meta name="viewport" content="width=device-width, initial-scale=1">

content/_layouts/blog-layout.liquid

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
layout: default.liquid
3+
# Flixel Green for blog posts
4+
embedColor: "#00b92b"
35
---
46
<div class="row">
57
<div class="col-md-8">

content/_layouts/demo.liquid

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
layout: default.liquid
3+
# Flixel Yellow for demos/example embeds
4+
embedColor: "#ffbf37"
35
---
46
<div class="demo-container position-relative mx-auto" style="width: fit-content;">
57
{% unless height %}

content/_layouts/demos-layout.liquid

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
layout: default.liquid
3+
# Flixel Yellow for demos/example embeds
4+
embedColor: "#ffbf37"
35
---
46
<h1 class="title">
57
{{ title }}

content/_layouts/doc.liquid

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
layout: default
3+
# Flixel Dark Blue for documentation
4+
embedColor: "#3b43ff"
35
---
46
<div class="row">
57
<div class="col-md-3">

content/_layouts/documentation-layout.liquid

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
layout: default
3+
# Flixel Dark Blue for documentation
4+
embedColor: "#3b43ff"
35
---
46
<h1 class="title">
57
{{ title }}

content/_layouts/showcase.liquid

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
layout: default
3+
# Flixel Red for showcase sections
4+
embedColor: "#ff2346"
35
---
46
<h1 class="title">
57
{{ title }}

0 commit comments

Comments
 (0)