-
Notifications
You must be signed in to change notification settings - Fork 4
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
Provide Open Graph metadata for Quotes (#170) #176
Conversation
Supported fields: - og:title - og:type (with custom loglist:quote type) - og:image - og:description - og:url
Thanks, looks good to me. Will deploy. |
|
||
@entity(s"Log List ⚙ Цитата #${quote.id}", | ||
"loglist:quote", | ||
routes.Assets.at("images/gear_400x400.png").absoluteURL(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we provide two images—the original in SVG and a fallback in PNG?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems we could: http://opengraphprotocol.org/#array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, too much of an effort. Let's create a separate issue for that and implement it if it's really needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll create a PR for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant I'll research and not create a PR for that because of reasons.
@@ -0,0 +1,7 @@ | |||
@(quote: models.data.Quote)(implicit requestHeader: play.api.mvc.RequestHeader) | |||
|
|||
@entity(s"Log List ⚙ Цитата #${quote.id}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use “№” in RSS but “#” here and on the web. Shouldn't it be consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I'll create a separate PR for this later. Thanks!
Supported fields:
og:title
og:type
(with customloglist:quote
type)og:image
og:description
og:url
Close #170