inukshuk / jekyll-scholar

jekyll extensions for the blogging scholar
MIT License
1.13k stars 101 forks source link

config question re details links #325

Closed pazz closed 1 year ago

pazz commented 3 years ago

I would like to let jekyll-scholar generate details pages but not add the "details" link after each bib entry when using the bibliography tag. I'm trying to make the title of an article the link to the details page. Is that possible? From a quick glance at the code it looks like this is hard-coded, correct?

I've already tried setting these in my config file:

details_link:
details_link_class: "hidden"

Thanks for this awesome piece of software :)

inukshuk commented 3 years ago

You're right. It looks like we just add the link if the details page layout exists and use the details_link option only to configure the name of the link. A quick way to address this, without adding extra options might be to skip the link if the option is blank?

In any case, you can use the details_link tag to create a link to one of the details pages anywhere.

drmikeuk commented 3 years ago

If you wanted to make the whole citation (not just the title) the link then you could try stretching the details link to cover the parent LI, a bit like bootstrap does.