Skip to content

Commit

Permalink
optional OpenGraph description and image
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Aug 1, 2024
1 parent 8f3d1f2 commit df5f41d
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _includes/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
{% include "meta.html" %}
<title>{{ title }}</title>
{% include "styles.html" %}
{% if ogImage or ogDescription %}
{% include "opengraph.html" %}
{% endif %}
</head>
<body class="article">
{% include "header.html" %}
Expand Down
3 changes: 3 additions & 0 deletions _includes/blog-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<title>{{ title }}</title>
{% include "styles.html" %}
{% include "blog-feeds-meta.html" %}
{% if ogImage or ogDescription %}
{% include "opengraph.html" %}
{% endif %}
</head>
<body class="blog sidebars">
{% include "header.html" %}
Expand Down
3 changes: 3 additions & 0 deletions _includes/blog-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<title>{{ title }} - {{ siteTitle }}</title>
{% include "styles.html" %}
{% include "blog-feeds-meta.html" %}
{% if ogImage or ogDescription %}
{% include "opengraph.html" %}
{% endif %}
</head>
<body class="blog sidebars">
{% include "header.html" %}
Expand Down
3 changes: 3 additions & 0 deletions _includes/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
{% include "meta.html" %}
<title>{{ title }} - {{ siteTitle }}</title>
{% include "styles.html" %}
{% if ogImage or ogDescription %}
{% include "opengraph.html" %}
{% endif %}
</head>
<body class="docs sidebars">
{% include "header.html" %}
Expand Down
3 changes: 3 additions & 0 deletions _includes/marketing.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
{% include "meta.html" %}
<title>{{ title }}</title>
{% include "styles.html" %}
{% if ogImage or ogDescription %}
{% include "opengraph.html" %}
{% endif %}
</head>
<body class="marketing">
{% include "header.html" %}
Expand Down
5 changes: 5 additions & 0 deletions _includes/opengraph.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<meta property="og:url" content="https://feathersui.com{{ page.url | url }}"/>
<meta property="og:title" content="{{ title }}"/>
{%if ogDescription %}<meta property="og:description" content="{{ ogDescription }}"/>{% endif %}
{%if ogImageURL %}<meta property="og:image" content="https://feathersui.com{{ ogImageURL }}"/>{% endif %}
<meta property="og:type" content="website"/>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ authorImageURL: /img/authors/josh.jpg
layout: "blog-post.html"
permalink: "{{ page | blog_permalink }}"
tags: ["blog"]
ogDescription: The new Feathers UI v1.3.0 update is now officially available on Haxelib
ogImageURL: /blog/img/feathersui-v1.3.0-og.png
---

Today, Feathers UI **v1.3.0** is now officially available [on Haxelib](https://lib.haxe.org/p/feathersui/1.3.0). This release includes a new `DragDropManager` used by components like `ListView` and `GridView`, a new [`Collapsible`](https://feathersui.com/learn/haxe-openfl/collapsible/) component with a clickable header to toggle the visibility of its content, and a new `dispose()` method to help with UI component cleanup. It also includes over a year of bug fixes, which means even more stability for your projects.
Expand Down
2 changes: 2 additions & 0 deletions cross-platform-guis.liquid
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: "Cross-platform GUI development with Feathers UI"
layout: "article.html"
ogDescription: "Build native apps for mobile, desktop, and web"
ogImageURL: /img/feathersui-cross-platform-og.png
---

<section class="section-one-column">
Expand Down
2 changes: 2 additions & 0 deletions index.liquid
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
layout: "marketing.html"
ogDescription: "Cross-platform GUI components for creative projects on mobile, desktop, and web"
ogImageURL: /img/feathersui-cross-platform-og.png
---
<section class="section-one-column section-hero">
<div class="section-row">
Expand Down
Binary file added static/blog/img/feathersui-v1.3.0-og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/feathersui-cross-platform-og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df5f41d

Please sign in to comment.