Skip to content

Conversation

jchapuis
Copy link

No description provided.

@mkurz
Copy link
Member

mkurz commented Feb 13, 2024

@jchapuis Can you please rebase to solve conflicts? Thanks!

@jchapuis jchapuis force-pushed the add-open-graph-tags branch from f18986d to b30f8e2 Compare February 14, 2024 15:17
@jchapuis
Copy link
Author

@mkurz sure! done

@jchapuis jchapuis force-pushed the add-open-graph-tags branch from b30f8e2 to c0bb47d Compare February 14, 2024 15:18
@jchapuis jchapuis force-pushed the add-open-graph-tags branch from c0bb47d to fc5fb68 Compare February 14, 2024 15:19
@mdedetrich
Copy link
Contributor

@jchapuis You need to format the codebase

@jchapuis
Copy link
Author

@jchapuis You need to format the codebase

yes i saw it was build.sbt i believe, pushed a commit

Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think one of the URI's need to be updated

Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. @mkurz Want to take a look?

<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="$page.properties.("project.description")$">
$ if (page.properties.("project.name")) $
<meta property="og:title" content="$page.properties.("project.name")$">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should use project name as og:title.
Shouldn't we use something like here instead?

$ if (page.properties.("title")) $
<title>$page.properties.("title")$</title>
$ elseif (page.title) $
<title>$page.title$$ if (!page.home.active) $ · $page.home.title$$ endif $</title>
$ else $
<title>$page.home.title$</title>
$ endif $

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think those were metadata of open graph

Copy link
Member

@mkurz mkurz Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Roiocam I understand that, however my point is if it makes sense to use the "project name" as og:title. Maybe it would be better to use the same value like we use for the html <title> tag.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, makes sense. Thanks

Copy link
Author

@jchapuis jchapuis Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, changed, but i kept the condition logic simple, where you have to define the page title property for it to be exposed in opengraph. Or would we want to have the same logic? trying to avoid unnecessary duplication

Copy link

@Roiocam Roiocam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks @jchapuis. It would be great to get reviews from others.

<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="$page.properties.("project.description")$">
$ if (page.properties.("project.name")) $
<meta property="og:title" content="$page.properties.("project.name")$">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think those were metadata of open graph

@mkurz
Copy link
Member

mkurz commented Mar 8, 2024

/cc @mdedetrich maybe you can also take a look here if you have time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants