Skip to content

Commit

Permalink
Add preview
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Dec 20, 2024
1 parent 9b6a724 commit a2d5bc3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Binary file added docs/img/preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
{% extends "base.html" %}

<!-- Meta tags -->
{% block site_meta %}
{{ super() }}

{% if page.meta and page.meta.title %}
<meta property="og:title" content="{{ page.meta.title }} - {{ config.site_name }}" />
{% elif page.title and not page.is_homepage %}
<meta property="og:title" content="{{ page.title | striptags }} - {{ config.site_name }}" />
{% else %}
<meta property="og:title" content="{{ config.site_name }}}" />
{% endif %}

<meta property="og:type" content="website" />
{% if page.canonical_url %}
<meta property="og:url" content="{{ page.canonical_url }}" />

{% endif %}

<meta property="og:image" content="{{ 'img/preview.jpg' | url }}" />

{% endblock %}

{% block scripts %}
<!-- Add scripts that need to run before here -->
{{ super() }}
Expand Down

0 comments on commit a2d5bc3

Please sign in to comment.