{"id":18565321,"url":"https://github.com/pelican-plugins/featured-image","last_synced_at":"2025-02-26T22:18:03.308Z","repository":{"id":187971678,"uuid":"676132393","full_name":"pelican-plugins/featured-image","owner":"pelican-plugins","description":"Pelican plugin to add a featured image, extracting from summary or content if not specified in metadata","archived":false,"fork":false,"pushed_at":"2024-07-07T14:40:39.000Z","size":49,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-24T11:57:15.220Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pelican-plugins.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"justinmayer","liberapay":"pelican"}},"created_at":"2023-08-08T13:58:09.000Z","updated_at":"2025-01-21T20:48:04.000Z","dependencies_parsed_at":"2023-08-13T03:28:35.918Z","dependency_job_id":"5d423625-596f-42c2-8210-782812f0e783","html_url":"https://github.com/pelican-plugins/featured-image","commit_stats":null,"previous_names":["pelican-plugins/featured-image"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Ffeatured-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Ffeatured-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Ffeatured-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Ffeatured-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pelican-plugins","download_url":"https://codeload.github.com/pelican-plugins/featured-image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240941516,"owners_count":19882063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T22:18:30.568Z","updated_at":"2025-02-26T22:18:03.286Z","avatar_url":"https://github.com/pelican-plugins.png","language":"Python","funding_links":["https://github.com/sponsors/justinmayer","https://liberapay.com/pelican"],"categories":[],"sub_categories":[],"readme":"Featured Image: A Plugin for Pelican\n====================================\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/pelican-plugins/featured-image/main.yml?branch=main)](https://github.com/pelican-plugins/featured-image/actions)\n[![PyPI Version](https://img.shields.io/pypi/v/pelican-featured-image)](https://pypi.org/project/pelican-featured-image/)\n[![Downloads](https://img.shields.io/pypi/dm/pelican-featured-image)](https://pypi.org/project/pelican-featured-image/)\n![License](https://img.shields.io/pypi/l/pelican-featured-image?color=blue)\n\nThis Pelican plugin extracts an image from the summary or content of an article or page if not already specified in content metadata.\n\nInstallation\n------------\n\nThis plugin can be installed via:\n\n    python -m pip install pelican-featured-image\n\nAs long as you have not explicitly added a `PLUGINS` setting to your Pelican settings file, then the newly-installed plugin should be automatically detected and enabled. Otherwise, you must add `featured_image` to your existing `PLUGINS` list. For more information, please see the [How to Use Plugins](https://docs.getpelican.com/en/latest/plugins.html#how-to-use-plugins) documentation.\n\nUsage\n-----\n\nTo override the default behavior of selecting the first image in the article's summary or content, set the image property the article's metadata to the URL of the image to display, e.g:\n\n```markdown\nTitle: My super title\nDate: 2010-12-03 10:20\nCategory: Python\nTags: pelican, publishing\nSlug: my-super-post\nAuthor: Alexis Metaireau\nSummary: Short version for index and feeds\nImage: /images/my-super-image.png\n\nArticle content...\n```\n\n### Page\n\nTo include a representative image in a page add the following to the template:\n\n```html\n{% if page.featured_image %}\n    \u003cimg src=\"{{ page.featured_image }}\"\u003e\n{% endif %}\n```\n\n### Article\n\nTo include a representative image in an article add the following to the template:\n\n```html\n{% if article.featured_image %}\n    \u003cimg src=\"{{ article.featured_image }}\"\u003e\n{% endif %}\n```\n\nContributing\n------------\n\nContributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on [existing issues][].\n\nTo start contributing to this plugin, review the [Contributing to Pelican][] documentation, beginning with the **Contributing Code** section.\n\n[existing issues]: https://github.com/pelican-plugins/featured-image/issues\n[Contributing to Pelican]: https://docs.getpelican.com/en/latest/contribute.html\n\nLicense\n-------\n\nThis project is licensed under the AGPL-3.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelican-plugins%2Ffeatured-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpelican-plugins%2Ffeatured-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelican-plugins%2Ffeatured-image/lists"}