Basially, the publication page is created to represent a .bib file. But you can use the publication page as needed.
using zzo-bibtex-parer
I made a library to parse the .bibfile to mdfile. Follow the steps below to install the library.
Install pip(The Python Package Installer) first.
Install
zzo-bibtex-paresrby typing this in your terminal.pip install zzo-bibtex-parser==1.0.8Prepare your .bib file to the root folder.
Assuming your file name is bibtex.bib, from the root of your project, type this.
zzo --path bibtex.bibMake a publication menu. In your menu.toml file
... [[main]] identifier = "publication" name = "Publications" url = "publication" weight = 6Set new param to your
params.tomlfile.... pubPaginate = 20Now, you can see the publications page when you start the hugo
If the year of the post is the curreny year, the post set the
pinnedparam totrueby default.
manually
If you don’t have .bib file and just take advantage of the publication page, you can manually make the pages.
Make a publication folder in content folder.
root/content/publicationMake a subfolder and
_index.mdfile. This subfolder will be a section of the publication page. I’ll make anarticlefolder as an example.root/content/publication/article/_index.md1 2 3 4 5--- title: article # must be the same with the folder name date: 2020-02-08 19:37:21.760316 description: Publication - article # for SEO ---Make a folder in the article folder we made above and make
index.mdfile in that folder.root/content/publication/article/american_libraries_magazine/index.md1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16--- authors: ['Watson, Brian M.'] publication: "American Libraries Magazine" abstract: "Kristin Pekoll, Assistant Director of ALA Office for Intellectual Freedom (OIF) began the session by announcing that OIF had recorded 531 affected items in 2018—which is a step beyond just challenges. These items included books films, board games, video games, magazines and much more. Sarah Ward, outreach librarian at Hunter College Libraries in New York … Continue reading Still Chilling: Censorship Beyond Banned Books →" links: - name: url link: https://americanlibrariesmagazine.org/blogs/the-scoop/still-chilling-censorship-beyond-banned-books/) shorttitle: "Still Chilling" copyright: "All rights reserved" title: "Still Chilling: Censorship Beyond Banned Books" ENTRYTYPE: "article" enableToc: False enableWhoami: True pinned: False publishDate: "2019-06-01" ---In the above
yamlfile, theENTRYTYPEparam should be the same with the section name(In our case,article).Now, you get the idea. Make any section you want and there, make any publication like above.
You can pin the publication by setting parameter
pinnedtotrue. The pinned publication will show up in the overview page.