-
Notifications
You must be signed in to change notification settings - Fork 22
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
Improve reference display #200
Comments
Add copy reference button in corner of popup |
This would be the possible steps - from conversation with @seunolufemi123 Maybe you can try to first implement it prettily on one page, with one reference, just using HTML, CSS and JS, as needed? Then the next step would be to move the elements to their appropriate homes: CSS into our global CSS file (see https://hugo-mini-course.netlify.app/sections/styling/custom/), the JS into a central place (header.html or footer.html in layouts/partials or maybe baseof.html) and then generate a short code based on the HTML (https://gohugo.io/templates/shortcode/). To then avoid having to include full reference details into the shortcode, we would want to look up the reference in a database - according to ChatGPT, that should be very easy: https://chatgpt.com/share/673dc36e-23e4-800e-b3a9-0a5e57494bfc, though I expect we might have to do some touble-shooting. |
This issue has been inactive for more than 90 days. If there is no further activity, it will be automatically closed in seven days time. You can reopen the issue if it is still relevant. |
This issue has been automatically closed due to it being stale for more than 7 days. Please feel free to reopen if you still want this issue. |
@seunolufemi123 are you still working on this? It would be a great improvement to the webpage ... |
Hi @LukasWallrich, I am so sorry that this is delayed, I lost track of it. Can we fix a meeting, at your convenience so you can help me make sense of what am supposed to do and how best I could do it? I would be looking forward to hearing from you. Thanks and Best regards. |
There is actually a very nice hugo plugin that would get us 95% there: https://github.com/loup-brun/hugo-cite. However, it's not been updated since 2002 - not entirely sure if it is working at the moment, and can obviously break at any point. https://github.com/joksas/hugo-simplecite is a more active project, but does not support APA style (only footnotes), and - more importantly - does not support a site-wide reference file (and as I see it not even a cited-in bibliography, which would make it much less useful for e.g. the glossary. |
We could go for a more "handmade" solution as suggested here - but that has already broken on their example site, so stating from hugo-cite (and maybe fixing issues in a PR to it) might be the best idea ... |
Process from here:
|
Good stuff, I am looking forward to hearing from you. |
The website is full of citations that are currently not systematically linked to references - so that they are of little use. We have a standing promise to change that in the glossary (#135) but the issue also arises in many other places.
Could we fix this across the webpage? I can think of three options:
Or, my favorite:
popup_test.html.zip
@flavioazevedo would this solution make sense for you?
The text was updated successfully, but these errors were encountered: