From 437fc69c88d70d17f95dc0142d1c1afaef61ae94 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Tue, 27 Dec 2022 04:31:13 -0500 Subject: [PATCH] open graph metadata --- lib/ash_hq_web/pages/blog.ex | 11 ++++++ lib/ash_hq_web/pages/docs.ex | 57 ++++++++++++++++++++++++++- lib/ash_hq_web/views/app_view_live.ex | 19 +++++++++ 3 files changed, 86 insertions(+), 1 deletion(-) diff --git a/lib/ash_hq_web/pages/blog.ex b/lib/ash_hq_web/pages/blog.ex index 9c8eb8b..944eaf9 100644 --- a/lib/ash_hq_web/pages/blog.ex +++ b/lib/ash_hq_web/pages/blog.ex @@ -20,6 +20,10 @@ defmodule AshHqWeb.Pages.Blog do
{#if @post} + + + +

{@post.title}

@@ -42,6 +46,13 @@ defmodule AshHqWeb.Pages.Blog do
{#else} + + + + {#if @tag}

Showing posts with tag: {@tag}

{#else} diff --git a/lib/ash_hq_web/pages/docs.ex b/lib/ash_hq_web/pages/docs.ex index 73ddb4b..7608a70 100644 --- a/lib/ash_hq_web/pages/docs.ex +++ b/lib/ash_hq_web/pages/docs.ex @@ -32,11 +32,17 @@ defmodule AshHqWeb.Pages.Docs do data module, :any data mix_task, :any data positional_options, :list + data description, :string + data title, :string @spec render(any) :: Phoenix.LiveView.Rendered.t() def render(assigns) do ~F"""
+ + + +