jekyll / jekyll-seo-tag

A Jekyll plugin to add metadata tags for search engines and social networks to better index and display your site's content.
https://jekyll.github.io/jekyll-seo-tag
MIT License
1.66k stars 294 forks source link

Feature Request: Over-ride yaml image #413

Closed CraigChamberlain closed 3 years ago

CraigChamberlain commented 4 years ago

If you have some image processing on your site with a plug-in or gulp then you might want to push images of a certain size into seo tag for example:

{%- assign social-image = page.image | replace: '.jpg', '_3x2_1800.jpg' -%}
{% seo image = social-image %}
CraigChamberlain commented 4 years ago

Failing this feature I guess I have two options:

  1. Transform the output: https://www.npmjs.com/package/gulp-string-replace
  2. Use an alternative variable in my page front matter, for example "custom-image" and creating a plugin that sets a value for image according to some rules.
asiletto commented 4 years ago

I need this too.

ghost commented 3 years ago

This would be really helpful to use with e.g. jekyll-picture-tag!

jekyllbot commented 3 years ago

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

CraigChamberlain commented 3 years ago

This is not a bug, but a feature request. Quite a few people also commented it would be useful. It was a major reason for me to start using js based frameworks.