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 · 2 comments
Open

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

9Lukas5 opened this issue Jul 30, 2023 · 2 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
@Guts
Copy link
Owner

Guts commented Dec 2, 2024

Hi @9Lukas5,

Sorry for the delay, I work on this side-project from time to time, mainly when I have free time to develop, review, get paid for or have a particular need. So I select the issues I want to work on and try to stay focused on them.

Could you share your Git URL or upload a reproduction following something like https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/ please?

@9Lukas5
Copy link
Author

9Lukas5 commented Dec 2, 2024

Hi, the project I asked for is this one:
https://gitlab.com/9Lukas5/blog/

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

2 participants