Lektor Bibtex Plugin
The plugin allows adding a list of publications generated from bibtex files to a page.
Enabling the plugin
To enable the plugin add this to your project file:
[packages]
lektor-bibtex-support = 0.1
Configuring
Create a file configs/bibtex-support.ini with a section called Bibtex. Define a variable files that is a white space separated list of bibtex files. Put these files into the assets directory of your project.
[Bibtex]
files = A.bib B.bib
Optionally you can also create a template file that should leave in the template directory to render the bibtex entries. If you skip this entry a default template will be used that sorts the entries by year.
Usage
You can add the the publication anywhere in your jinja template by calling
{{ list_publications(name=name, tag=tag, year=year, labels=labels, fname=fname)|safe }}
The arguments are optional and can be used for filtering.
By name: the name has to show up in the author list to be included
by year: only publications from this year
labels: white space separated list of bibtex labels (the name of each entry in the bibtex file)
fname: white space separated list files to search (by default all files will be searched)
Javascript
For the default template, you can also add the following javascript to show some entries if you have a long list (relies on jquery):
$(document).ready(function()
{
$(".BIBTeX").hide();
$(".BIBTeXtoggle").click( function () {
$(this).parent().children(".BIBTeX").toggle(300);
return false;
});
$(".BIBYear").hide();
$(".BIBYear:first").show();
$(".BIBYearheader").click( function () {
$(this).parent().children(".BIBYear").toggle(300);
return false;
});
$(".bibshowall").click( function () {
$(".BIBYear").show();
});
$(".bibhideall").click( function () {
$(".BIBYear").hide();
$(".BIBYear:first").show();
});
});
Metadata
Release files for lektor-bibtex-support 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lektor-bibtex-support-0.1.1.tar.gz | 5.3 kB | Without provenance | Details for lektor-bibtex-support-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lektor_bibtex_support-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for lektor_bibtex_support-0.1.1-py3-none-any.whl |
Total release size: 10.6 kB
Release files / lektor-bibtex-support-0.1.1.tar.gz
| Download URL | lektor-bibtex-support-0.1.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f32b14d59e102f1884d647bb1d994449f3369b1cb395c68b4fefe5b79283527
|
|
BLAKE2b-256 checksum How to use checksums |
2d1d0d973f5a08262d493040cf56484ae2d8a354173e868b174e18ffa62a9a7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lektor_bibtex_support-0.1.1-py3-none-any.whl
| Download URL | lektor_bibtex_support-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
346435c1d31658aac1579c45735e559666a1391b2e4c3b4faac7013a6a4eb199
|
|
BLAKE2b-256 checksum How to use checksums |
53d4b71763e8105aa1d419e1de758662f331649b3abbd85b6f9ac90c226037f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for lektor-bibtex-support 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.