Commit graph

20 commits

Author SHA1 Message Date
Anton Khorev
09721c6fee Add article:published_time meta tag to diary entries 2024-08-14 18:00:14 +03:00
Anton Khorev
5f4ae35814 Set og:description meta tag to diary entry description 2024-08-07 18:59:16 +03:00
Anton Khorev
43f5440537 Pass properties hash to OpenGraph helper 2024-08-07 18:58:47 +03:00
Anton Khorev
e0cec1a6e8 Remove default argument values of OpenGraph tag helper 2024-08-07 18:55:08 +03:00
Anton Khorev
243557a31a Set og:image:alt OpenGraph property 2024-08-05 05:32:47 +03:00
Anton Khorev
b97834f1fd Use default og:image if Addressable::URI fails 2024-06-15 15:57:10 +03:00
Anton Khorev
c03649355a Join and normalize og:image url using Addressable
Avoids failing on urls that are not strictly rfc2396 URIs.
2024-06-15 15:06:07 +03:00
Anton Khorev
eeb7e02f88 Don't add site name to og:title when page title is provided 2024-06-07 11:33:00 +03:00
Anton Khorev
24c138ac8d Ensure that Open Graph image url is absolute 2024-06-06 18:01:23 +03:00
Anton Khorev
a73e20cd5c Set Open Graph image to first image for diary entries 2024-06-06 17:28:57 +03:00
Anton Khorev
879c6017e0 Remove Open Graph og:image:secure_url property 2024-06-04 13:42:01 +03:00
Tom Hughes
8a9dbc94c8 Update rubocop todo and fix new warnings 2021-09-14 20:40:36 +01:00
Andy Allan
2559226be3 Avoid various uses of html_safe
We can avoid using `html_safe` in various circumstances, through alternative approaches like i18n keys ending in `_html` or using `safe_join` to avoid converting via unsafe string types.

The `_html` keys approach only work for ActionView helper version of `t`, not the base `I18n.t` method.
2020-10-21 15:43:14 +02:00
Andy Allan
1b181d4c1d Put specific page titles at the start
The makes the shortened titles commonly shown on browser tabs more
useful.
2017-11-22 14:57:26 +00:00
Tom Hughes
34c473f503 Use only_path instead of setting an explicit host 2016-11-24 20:33:36 +00:00
Tom Hughes
1309661b15 Use image_url instead of image_path with the host option
Fixes #1379
2016-11-24 20:23:42 +00:00
Tom Hughes
243129b671 Add og:description to OpenGraph tags 2015-10-27 12:02:13 +00:00
Tom Hughes
c8640c8f82 Add og:url to OpenGraph tags 2015-10-27 12:01:58 +00:00
Tom Hughes
18d26c0d81 Use PNG logo for og:image 2015-10-27 12:01:44 +00:00
Tom Hughes
e62e879b3b Add more detail to OpenGraph tags
Closes #1073
2015-10-26 22:27:21 +00:00