Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- "docs/**"
- "mkdocs.yml"
- "overrides/**"
workflow_dispatch:
permissions:
contents: read
Expand Down
Binary file added docs/assets/social/ignis-social-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ edit_uri: edit/main/docs/
# Theme configuration
theme:
name: material
custom_dir: overrides
# The header is brand ink (#16191c) in both schemes, the background the -dark lockup is drawn for.
logo: assets/logo/ignis-lockup-ember-dark-outline.svg
favicon: assets/logo/favicon.ico
Expand Down
22 changes: 22 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% extends "base.html" %}

{#- Open Graph and Twitter tags for link previews. Previewers need an absolute raster image URL,
so the image is a PNG resolved against site_url. -#}
{% block extrahead %}
{%- set title = (page.title ~ " - " ~ config.site_name) if page.title and not page.is_homepage else config.site_name -%}
{%- set description = (page.meta.description if page.meta and page.meta.description else config.site_description) | trim -%}
{%- set image = config.site_url ~ "assets/social/ignis-social-preview.png" -%}
<meta property="og:type" content="website">
<meta property="og:site_name" content="{{ config.site_name }}">
<meta property="og:title" content="{{ title }}">
<meta property="og:description" content="{{ description }}">
<meta property="og:url" content="{{ page.canonical_url }}">
<meta property="og:image" content="{{ image }}">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1280">
<meta property="og:image:height" content="640">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ title }}">
<meta name="twitter:description" content="{{ description }}">
<meta name="twitter:image" content="{{ image }}">
{% endblock %}
Loading