How to make the publication type visible and filterable #268
-
Checks
Link to your website repohttps://inspirelab-site.github.io Version of Lab Website Template you are using1.2.2 DescriptionHi, I wonder how to make the style of publication list exactly as shown in https://manubot.org/catalog/. Specifically, I want to:
The current website template doesn't have these features by default. In addition, I also have the issue with the icon and favicon.
Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, In the future, please provide a link to your repo (github source code, not a link to the website itself). Had to dig to find this: I'll answer your questions in order:
As you seem to already be doing, you can add a manual If this is not desirable... I would likely not build in a "filter by publication type" feature into the template because it too inflexible and not in demand enough. I would rather try to implement a "filter by any field" feature, but that would be difficult to accomplish because the filtering happens at in the browser (at run-time, not at compile-time) after those fields have already been rendered as html in various ways that is brittle to track. You can create an issue for a feature request for this if you want, but I'd say it's unlikely to be implemented as that's already what the tags feature is designed to do.
You can go into Related to the discussion above, we can't add template "options" for low-level things like this. As this is a template and not a package, you're meant to go in and edit things yourself, except for the most commonly needed configurations. We need to do this for practicality (we don't want to end up with 100 different small options/flags) and to avoid anti-patterns.
You'll have to clarify what you mean by this. Perhaps you want to change the image's object fit to "cover", instead of "contain" which leaves whitespace? If so, see Perhaps you want to make each image just be a fixed width/height, not do any object-fitting, and maybe align them with the top of the citation cards (which will leave white space below them sometimes when the text content is long). Perhaps you want to make every citation card (the whole component, not just the image) a fixed height, but you have some citations with very long descriptions and other content that makes them much taller than the rest, so you'd have to decide what do to about that: truncate long text? get rid of tags/links? The Manubot catalog takes the approach of limiting the title/authors/extras to a max of 2 lines each to achieve this.
I am seeing the correct favicon for your site: Try hard-refreshing your browser. Unfortunately, browsers sometimes aggressively cache the favicon image, even though it is (supposed to be) small in size. I noticed that your
This is a bug. In |
Beta Was this translation helpful? Give feedback.
-
Regarding the paper types, I did not see any specified faded icons shown on the published items with specified types. Could you please guide me on how to enable these icons to be visualized? |
Beta Was this translation helpful? Give feedback.
Hi,
In the future, please provide a link to your repo (github source code, not a link to the website itself). Had to dig to find this:
https://github.com/inspirelab-site/inspirelab-site.github.io
I'll answer your questions in order:
As you seem to already be doing, you can add a manual
type
to each citation, but that only specifies the faded icon to show as a hint to the user. Instead, I would recommend tagging each citation withpaper
,conference
, etc. Then you can use the tags component at the top of the page with manual tags (e.g.tags="paper, conference, etc"
) which th…