Skip to content

Feature: Tags Listing Show "summary" #8059

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

Open
4 tasks done
misilot opened this issue Mar 3, 2025 · 6 comments
Open
4 tasks done

Feature: Tags Listing Show "summary" #8059

misilot opened this issue Mar 3, 2025 · 6 comments
Labels
change request Issue requests a new feature or improvement resolved by customization Issue can be solved through customization

Comments

@misilot
Copy link

misilot commented Mar 3, 2025

Context

We are working on building a service catalog for our documentation, and it would be great if we could have a "summary" metadata on the page that gets fed into the tag listing.

Description

Add a "summary" similar to "include" the include where we can specify the page metadata tag to use.

where it would be

  • A - summary text
  • B - summary text
  • C - summary text
    or even the option of creating it as a definition list instead of a list?

Related links

Use Cases

Author, creates a summary of the page, and it shows up in the tag listing.

Visuals

No response

Before submitting

@squidfunk
Copy link
Owner

Thanks for suggesting! I'm sorry, but I don't fully understand what you're aiming for. Could you maybe create some mockups or add some screenshots that shows the final thing + where the data is coming from?

or even the option of creating it as a definition list instead of a list?

I'm not sure I understand this either. What is created as a definition list? Is this a second feature request? Please provide more and detailed input, so we and others can decide whether this would be a useful feature request for our users ☺️

@squidfunk squidfunk added the needs input Issue needs further input by the reporter label Mar 4, 2025
@misilot
Copy link
Author

misilot commented Mar 4, 2025

Sorry, I am hoping this helps explain it better

Screenshots (Where the tags would be hyperlinks, like the normal tag list)

Image

Image Image

Example page (it's in markdown)


---
hide:
    - toc
---
# Service Catalog

## Based on Tags
<!-- material/tags { include: [service], scope: true} -->


## Front Matter example

---
title: DSpace
tags:
   - service
summary: DSpace is an Institional Repository that we manage for the submission and long term storage of ETDR as well as pre- and post- print papers.
---


## Mock Up (1)

Simple tag list with the expanded summary

Pull from "summary"

* DSpace - DSpace is an Institional Repository that we manage for the submission and long term storage of ETDR as well as pre- and post- print papers.
* Matomo - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis...
* PrivateBin - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ...
* Redmine - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad mi...


## Mock Up (2)

Definition list instead of the already existing bullets of "tags"

`DSpace`

:   DSpace is an Institional Repository that we manage for the submission and long term storage of ETDR as well as pre- and post- print papers.

`Matomo`

:  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis...

`PrivateBin`

:  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ...

`Redmine`

:  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad mi...


It was the same idea, just two different ways of presenting it.

@kamilkrzyskow
Copy link
Collaborator

kamilkrzyskow commented Mar 4, 2025

There is an undocumented layout option, which allows to select a custom layout of a listing:

The mapping items are Page/Link objects, so it should be possible to access their page.meta.summary, but from your description it should likely be the description property as it's the default metadata key also used for SEO meta tags, I see no reason to separate it out into summary 🤔

So using customization it should be possible to add a custom listing layout which also renders additional text apart of the title:

@misilot
Copy link
Author

misilot commented Mar 4, 2025

@kamilkrzyskow thank you! This worked great, I didn't know about this hidden feature! I did have to copy the tags.html to the same directory as listings.html

I've got a docs_overrides/fragments/tags/service-catalog/{listing,tag}.html path to add the service-catalog template.

I'm going to close this as I think this does what I need.

@misilot misilot closed this as completed Mar 4, 2025
@kamilkrzyskow kamilkrzyskow added resolved by customization Issue can be solved through customization and removed needs input Issue needs further input by the reporter labels Mar 4, 2025
@squidfunk
Copy link
Owner

Thanks for investigating a way to solve this, @kamilkrzyskow! It's not documented, because it's still considered experimental/unstable. I don't expect it to break, but I just want to set expectations.

@squidfunk
Copy link
Owner

I'm reopening this feature request, because I think the idea might be useful to support without customization, or at least offer an official way to solve it. We'll investigate once we're done with the current foundational work efforts.

@squidfunk squidfunk reopened this Mar 4, 2025
@squidfunk squidfunk added the change request Issue requests a new feature or improvement label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Issue requests a new feature or improvement resolved by customization Issue can be solved through customization
Projects
None yet
Development

No branches or pull requests

3 participants