Skip to main content

Pelican Delicious bookmarks

https://travis-ci.org/2xyo/pelican-delicious.png?branch=master https://coveralls.io/repos/2xyo/pelican-delicious/badge.png?branch=master

Pelican Delicious Bookmarks is a library to make it easy to add your Delicious bookmarks in your Pelican blogs.

Installation

To install pelican-delicious, simply:

$ pip install pelican-delicious

Then add a bit of code to your blog configuration:

PLUGINS = [
    # ...
    'pelican_delicious',
    # ...
]

Usage

In your articles, just add lines to your posts that look like:

[delicious:tags=tag1 tage2]

This will tell the plugin to insert links withs tag1 and tag2 into your post. The resulting HTML will look like:

<div class ="delicious">
    <dl>
        <dt>Title</dt>
        <dd>The Titile of the link</dd>

        <dt>Description</dt>
        <dd>The Description</dd>

        <dt>URL</dt>
        <dd><a href="http://www.example.com"/></dd>
    </dl>
</div>

Settings

Create the file pelican-creds.py with your credentials :

DELICIOUS_USERNAME = 'Your Delicious username'
DELICIOUS_PASSWORD = 'Your Delicious password'

Import this config in your pelicanconf.py :

import pelican-delicious
from pelican-delicious import *

You can also modify the default template:

DELICIOUS_TEMPLATE = """
     <div class="delicious">
    {% for bookmark in bookmarks %}
        <dl>
            <dt>Title</dt>
            <dd>{{ bookmark.title }}</dd>
            {% if bookmark.description %}
            <dt>Description</dt>
            <dd>{{ bookmark.description }}</dd>
            {% endif %}
            <dt>URL</dt>
            <dd><a href="{{ bookmark.url }}"/></dd>
        </dl>
    {% endfor %}
    </div>"""

Don’t forget to add pelican-creds.py to your .gitignore!

License

Uses the BEER-WARE license.

Metadata

Release files for pelican-delicious 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pelican-delicious 0.0.1
File Size Uploaded Provenance Actions
pelican-delicious-0.0.1.tar.gz 3.9 kB Without provenance Details for pelican-delicious-0.0.1.tar.gz

Release files / pelican-delicious-0.0.1.tar.gz

Download URL pelican-delicious-0.0.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f51848edc6fb6f1e06e68ddd96d6a5a125ecb00123731b11f45eeb0b4dcef73a
BLAKE2b-256 checksum
How to use checksums
5beeb87c17683211d258e15fa0488b0d6fb96caf75b12bc5dbea6356d55bc64f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pelican-delicious 0.0.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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page