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

Add 'how to cite this page' section to page layout #315

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

anenadic
Copy link
Contributor

@anenadic anenadic commented Dec 19, 2024

Automated generation of citation information for each page in a new "How to cite this page" section at the bottom, to look like the following:

image

A parameter is needed to control if the citation info is added to the page or not (and defaults to false for backward compatibility) and also so that citation does not show on other pages using the "page" layout. For example, in _config.yaml:

  -
    scope:
      path: "pages/your_tasks/"
    values:
      type: your_tasks
      type_img: /assets/img/section-icons/tick.svg
      include_citation: true

We'd need to update the page metadata documenation at: https://rdmkit.elixir-europe.org/page_metadata too.
I did not apply any CSS styles to the added citation div.

@anenadic anenadic marked this pull request as ready for review December 20, 2024 09:31
@bedroesb
Copy link
Member

I like the idea! I am just wondering if the "page metadata" at the bottom of the page, like contributors, affiliations, and now citation, could not benefit from a redesign so they look different from the content of the page.

@anenadic
Copy link
Contributor Author

I like the idea! I am just wondering if the "page metadata" at the bottom of the page, like contributors, affiliations, and now citation, could not benefit from a redesign so they look different from the content of the page.

I like your idea too @bedroesb - it would also make it clear to content contributors that these sections are automatically generated and are separate (to a certain extent) from the content they are writing.

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

Successfully merging this pull request may close these issues.

2 participants