{ "info": { "author": "Rafael Laboissi\u00e8re", "author_email": "rafael@laboissiere.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Framework :: Pelican :: Plugins", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[![travis\\_build\\_status](https://travis-ci.org/rlaboiss/pelican-linkclass.svg?branch=master)](https://travis-ci.org/rlaboiss/pelican-linkclass)\n\n# Link Class for Pelican\n\n## Description\n\nThis plugin allows the setting of the class attribute of `` elements\n(generated in Markdown by `[ext](link)`) according to whether the link is\nexternal (i.e. starts with `http://` or `https://`) or internal to the\nPelican-generated site.\n\nFor now, this plugin only works with Markdown. It was tested with version\n3.0.1 of the Python Markdown module. It may not work with previous\nversions.\n\n## Usage\n\n### User Settings\n\nIn order to avoid clashes with already-defined classes in the user CSS\nstyle sheets, it is possible to specify the name of the classes that will\nbe used. They can be specified in the Pelican setting files with the\n`LINKCLASS` variable, which must be defined as a list of tuples, like this:\n\n```python\n'LINKCLASS' = (('EXTERNAL_CLASS', 'name-of-the-class-for-external-links')\n 'INTERNAL_CLASS', 'name-of-the-class-for-internal-links'))\n```\n\nThe default values for `EXTERNAL_CLASS` and `INTERNAL_CLASS` are,\nrespectively, `'external'` and `'internal'`.\n\n### Styling the hyperlinks\n\nOne of the possible uses of this plugins is for styling. Suppose that we\nhave the following in your article written with Markdown:\n\n```markdown\nThis is an [internal](internal) link and this is an\n[external](http://external.com) link.\n```\n\nIf the default values of the configuration variables are used, then a\n possible CSS setting would be:\n\n```css\na.external:before {\n content: url('../images/external-link.png');\n margin-right: 0.2em;\n}\n```\n\n(The file `external-link.png` is also distributed with this plugin. Just\ncopy it to the appropriate place in your website source tree, for instance\nin `theme/static/images/`.)\n\nThen, the result will look like the following:\n\n![figure](https://github.com/rlaboiss/pelican-linkclass/raw/master/linkclass-example.png)\n\nNote that this plugin also works with reference-style links, as in the\nfollowing example:\n\n```markdown\nThis is an [internal][internal] link and this is an\n[external][external] link.\n\n [internal]: internal\n [external]: http://external.com\n```\n\n## Acknowledgments\n\nMany thanks to [Yuliya Bagriy](https://github.com/aviskase) for setting up\nthe package for [PyPI](https://pypi.org/) and [Lucas\nCimon](https://github.com/Lucas-C) for fixing the issues with\n[pytest](https://pytest.org/) and the smooth integration into the Pelican\nrepository as a sub-module.\n\n## Author\n\nCopyright (C) 2015, 2017, 2019 Rafael Laboissiere ()\n\nReleased under the GNU Affero Public License, version 3 or later. No warranties.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rlaboiss/pelican-linkclass", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pelican-linkclass", "package_url": "https://pypi.org/project/pelican-linkclass/", "platform": "", "project_url": "https://pypi.org/project/pelican-linkclass/", "project_urls": { "Homepage": "https://github.com/rlaboiss/pelican-linkclass" }, "release_url": "https://pypi.org/project/pelican-linkclass/1.0.0/", "requires_dist": [ "Markdown (>=3.0.1)", "pelican (>=3.4)" ], "requires_python": "", "summary": "Allows the setting of the class attribute of `` elements according to whether the link is external or internal to the Pelican-generated site.", "version": "1.0.0" }, "last_serial": 5903088, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f62269387bd41da0caf48b306574adaa", "sha256": "952deb1196e96a432b0694800ee4baaca7f1961106f35d4ac3eb6c392cea0af5" }, "downloads": -1, "filename": "pelican_linkclass-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f62269387bd41da0caf48b306574adaa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19415, "upload_time": "2019-09-29T16:53:43", "url": "https://files.pythonhosted.org/packages/86/47/d426bb015681fe90d3d5a963cc7b796f3dc23441f106ca0392984b1243a1/pelican_linkclass-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aa2d3eadbf07bf0a7d4b35d782590d7e", "sha256": "e186d17ff29303b2df18f315c6ce0c3411ab6d0be9ac17eac6f415b3724eeed3" }, "downloads": -1, "filename": "pelican-linkclass-1.0.0.tar.gz", "has_sig": false, "md5_digest": "aa2d3eadbf07bf0a7d4b35d782590d7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5627, "upload_time": "2019-09-29T16:54:15", "url": "https://files.pythonhosted.org/packages/97/08/7f5c85bf0c3ba2160c83055da7e5d16291cf70ca593aeb696b7ca1c052d4/pelican-linkclass-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f62269387bd41da0caf48b306574adaa", "sha256": "952deb1196e96a432b0694800ee4baaca7f1961106f35d4ac3eb6c392cea0af5" }, "downloads": -1, "filename": "pelican_linkclass-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f62269387bd41da0caf48b306574adaa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19415, "upload_time": "2019-09-29T16:53:43", "url": "https://files.pythonhosted.org/packages/86/47/d426bb015681fe90d3d5a963cc7b796f3dc23441f106ca0392984b1243a1/pelican_linkclass-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aa2d3eadbf07bf0a7d4b35d782590d7e", "sha256": "e186d17ff29303b2df18f315c6ce0c3411ab6d0be9ac17eac6f415b3724eeed3" }, "downloads": -1, "filename": "pelican-linkclass-1.0.0.tar.gz", "has_sig": false, "md5_digest": "aa2d3eadbf07bf0a7d4b35d782590d7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5627, "upload_time": "2019-09-29T16:54:15", "url": "https://files.pythonhosted.org/packages/97/08/7f5c85bf0c3ba2160c83055da7e5d16291cf70ca593aeb696b7ca1c052d4/pelican-linkclass-1.0.0.tar.gz" } ] }