1
0
Fork
You've already forked codeberg_nikola_widget
0
shortcode widget plugin for the Nikola static site generator, to display a Codeberg repo. Loosely based on the Github widget by Diego Carrasco G.
  • Python 100%
Find a file
2025年09月03日 21:16:02 -05:00
templates/mako updated options, readme 2025年09月03日 21:10:30 -05:00
.gitignore init commit 2025年09月03日 17:48:52 -05:00
codeberg_widget.plugin init commit 2025年09月03日 17:48:52 -05:00
codeberg_widget.py updated options, readme 2025年09月03日 21:10:30 -05:00
README.md I dont know how markdown works 2 electric boogaloo 2025年09月03日 21:16:02 -05:00

This is a Nikola plugin that displays a Codeberg repository widget on your Nikola site. This widget only uses Mako templates.

Install

Place the /codeberg_widget folder into the /plugins folder of your Nikola site.

Usage

{{% codeberg_widget name=username repo=reponame %}}

Optional Arguments:

  • show_pronouns=True or False (default:False)
  • show_location=True or False (default:False)
  • use_full_name=True or False (default:False) - displays your full name, otherwise displays your username

That's it. That's all it does. Stats may not be up to date because it only calls the Codeberg API when you recompile the plugin.

License

this widget is under the MIT License

MIT License

Copyright (c) [Kenneth Rapp]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.