Skip to content
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

Question: Per item image in page.meta.image with relative path #197

Open
9Lukas5 opened this issue Jul 30, 2023 · 0 comments
Open

Question: Per item image in page.meta.image with relative path #197

9Lukas5 opened this issue Jul 30, 2023 · 0 comments

Comments

@9Lukas5
Copy link

9Lukas5 commented Jul 30, 2023

Hey,

I have included this plugin today into my site (thank you for that, pretty happy with it 🤗 ).

I populated the page.meta.image in all my sites with a relative path. Would it be possible to not only prepend the site_url, but also fill in the relative path?
Otherwise I'd have to use absolute links, which I wanted not to in case I'd have to rename something 🤔

Guts added a commit that referenced this issue Jul 3, 2024
Hello @Guts 

Thanks for the awesome project.

I use this plugin heavily in my [SRE
blog](https://developer-friendly.blog).

I figured it would be nice to allow per page customization of the
`description` field, cause at the moment, there's not a lot one can do
when the description before `<!-- more -->` is short and extra detail is
desired.

With this change, you can have separate contents for RSS description and
your typical content.

An example taken from the [Material for Mkdocs Social
Cards](https://squidfunk.github.io/mkdocs-material/plugins/social/#option.description):

```markdown
---
date: 2024-06-24
description: >-
  This is the SEO description.
social:
  cards_layout_options:
    description: >-
      This is the social cards description.
rss:
  feed_description: >-
    And I want to have customized RSS description.
---

```


This idea, I reckon, can easily be extended for other similar use-cases:
- #297 
- #275 
- #197
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

No branches or pull requests

1 participant