inukshuk / jekyll-scholar

jekyll extensions for the blogging scholar
MIT License
1.12k stars 102 forks source link

using a template to convert .bib into summary html table #313

Open fdq09eca opened 3 years ago

fdq09eca commented 3 years ago

I am having a .bib file with the following format

@article{ploberger2017one,
  title={One belt, One road--China’s new grand strategy},
  author={Ploberger, Christian},
  journal={Journal of Chinese Economic and Business Studies},
  volume={15},
  number={3},
  pages={289--305},
  year={2017},
  publisher={Taylor \& Francis},
  datasrc={Est dolore Lorem},
  type={labour},
  review={
    - consectetur eu magna adipisicing excepteur nisi aliqua in. 
    - Adipisicing ipsum nostrud adipisicing eiusmod sit.
    - Occaecat minim aute ex culpa dolor. 
    - Cupidatat dolore exercitation et ullamco non eu et enim.
  },
  findings={
    - consectetur eu magna adipisicing excepteur nisi aliqua in. 
    - Adipisicing ipsum nostrud adipisicing eiusmod sit.
    - Occaecat minim aute ex culpa dolor. 
    - Cupidatat dolore exercitation et ullamco non eu et enim.
  }
}

note that datasrc, type, review, findings are custom attribute.

I have got over 100 entries in this format and I would like to convert them into a HTML table in jekyll with the following template

type | year | author | datasrc | review | findings

how may I do so? Thank you.

inukshuk commented 3 years ago

You can probably use a custom bibliography template and change the bibliography_list_tag to tbody (And you need to wrap the whole bibliography in a table with your own thead)