Skip to content

add open graph meta tags #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 1, 2022
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
8 changes: 8 additions & 0 deletions pgml-docs/docs/blog/data-is-living-and-relational.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
author: Montana Low
description: A common problem with data science and machine learning tutorials is the published and studied datasets are often nothing like what you’ll find in industry.
image: https://postgresml.org/images/illustrations/uml.png
image_alt: Data is relational and growing in multiple dimensions
---


<style>
img.float-right {
margin: 0 16px !important;
Expand Down
8 changes: 8 additions & 0 deletions pgml-docs/docs/blog/postgres-full-text-search-is-awesome.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
author: Montana Low
description: If you want to improve your search results, don't rely on expensive O(n*m) word frequency statistics. Get new sources of data instead. It's the relational nature of relevance that underpins why a relational database forms the ideal search engine.
image: https://postgresml.org/blog/images/delorean.jpg
image_alt: We were promised flying cars
---


<h1>Postgres Full Text Search is Awesome!</h1>

<p class="author">
Expand Down
32 changes: 32 additions & 0 deletions pgml-docs/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,38 @@
<a class="navbar-brand" href="{{ nav.homepage.url|url }}">Postgres<span style="color: dodgerblue">ML</span></a>
{%- endblock %}

{% block site_meta %}
{{ super() }}
<meta name="og:site_name" content="PostgresML">
{% if page.meta and page.meta.title %}
<meta name="og:title" content="{{ page.meta.title }}">
{% elif page.title %}
<meta name="og:title" content="{{ page.title | striptags }}">
{% endif %}
{% if page.meta and page.meta.type %}
<meta name="og:type" content="{{ page.meta.type }}">
{% endif %}
{% if page.meta and page.meta.description %}
<meta name="og:description" content="{{ page.meta.description }}">
{% elif config.site_description %}
<meta name="og:description" content="{{ config.site_description }}">
{% endif %}
{% if page.meta and page.meta.author %}
<meta name="og:author" content="{{ page.meta.author }}">
{% endif %}
{% if page.meta and page.meta.image %}
<meta name="og:image" content="{{ page.meta.image }}">
{% endif %}
{% if page.meta and page.meta.image_alt %}
<meta name="og:image:alt" content="{{ page.meta.image_alt }}">
{% endif %}
{% if page.meta and page.meta.type %}
<meta name="og:type" content="{{ page.meta.type }}">
{% else %}
<meta name="og:type" content="article">
{% endif %}
{% endblock %}

{%- block content %}
{{ super() }}

Expand Down