Compare commits
6 Commits
5196913266
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4aa73b1aa | ||
|
|
73e89ca513 | ||
|
|
a1900a77e4 | ||
|
|
258d062ff4 | ||
|
|
8fee8d879e | ||
|
|
373cade0a7 |
25
README.md
25
README.md
@@ -1,4 +1,15 @@
|
||||
# Installing
|
||||
<a href="https://oql.avris.it/license/v1.2" target="_blank" rel="noopener"><img src="https://badgers.space/badge/License/OQL/pink" alt="License: OQL" style="vertical-align: middle;"/></a>
|
||||
|
||||
# STSG
|
||||
|
||||
## Planned features
|
||||
|
||||
- [ ] auto uploading to ftp and other online services using a plugin system
|
||||
- [ ] build a git wiki in a specified languages instead of a static website
|
||||
- [ ] hosting the documentation somehow
|
||||
- [ ] multiple templates + a way to choose templates
|
||||
|
||||
## Installing
|
||||
|
||||
```sh
|
||||
python3 -m venv .venv
|
||||
@@ -6,7 +17,7 @@ source .venv/bin/activate
|
||||
pip install -e .
|
||||
```
|
||||
|
||||
# Execute
|
||||
## Execute
|
||||
|
||||
To start a local http server in the dist folder you can simply do:
|
||||
|
||||
@@ -24,13 +35,3 @@ stsg
|
||||
stsg_dev
|
||||
```
|
||||
|
||||
# build favicon
|
||||
|
||||
```
|
||||
cd src/static/assets
|
||||
inkscape -w 16 -h 16 -o 16.png logo.svg
|
||||
inkscape -w 32 -h 32 -o 32.png logo.svg
|
||||
inkscape -w 48 -h 48 -o 48.png logo.svg
|
||||
|
||||
convert 16.png 32.png 48.png ../icon.ico
|
||||
```
|
||||
|
||||
@@ -13,6 +13,9 @@ readme = "README.md"
|
||||
requires-python = ">=3.8"
|
||||
classifiers = []
|
||||
version = "0.0.0"
|
||||
license-files = [
|
||||
"LICENSE"
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
stsg = "stsg.__main__:build"
|
||||
|
||||
@@ -6,4 +6,4 @@ Dies ist ein Static Site Generator mit fokus auf Nutzer:innenfreundlichkeit und
|
||||
|
||||
Die Templates sind komplet anpassbar, trotzdem empfehle ich [Bulma](https://bulma.io/) als CSS-Framework zu verwenden.
|
||||
|
||||
Polizei und das Millitär jeglichen Staates dürfen dieses Tool nicht verwenden.
|
||||
Polizei und das Millitär jeglichen Staates dürfen dieses Tool nicht verwenden. Für mehr Info zur Nutzung lest [die Lizenz]({{license.url}}).
|
||||
|
||||
@@ -6,4 +6,4 @@ This is a static-site-generator with focus on ease of use and making accessible
|
||||
|
||||
The templates are completely customizable, but I still reccomend using [bulma](https://bulma.io/) as css-framework.
|
||||
|
||||
Cops and Millitary of any state are stricly prohibited from using this tool.
|
||||
Cops and Millitary of any state are stricly prohibited from using this tool. For more information about the usage of that tool, read [our license]({{license.url}}).
|
||||
|
||||
57
src/articles/license/de.md
Normal file
57
src/articles/license/de.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# 🏳️🌈 Opinionated Queer License v1.2
|
||||
|
||||
© Copyright {Licensor}
|
||||
|
||||
## Permissions
|
||||
|
||||
The creators of this Work (“The Licensor”) grant permission
|
||||
to any person, group or legal entity that doesn't violate the prohibitions below (“The User”),
|
||||
to do everything with this Work that would otherwise infringe their copyright or any patent claims,
|
||||
subject to the following conditions:
|
||||
|
||||
## Obligations
|
||||
|
||||
The User must give appropriate credit to the Licensor,
|
||||
provide a copy of this license or a (clickable, if the medium allows) link to
|
||||
[oql.avris.it/license/v1.2](https://oql.avris.it/license/v1.2),
|
||||
and indicate whether and what kind of changes were made.
|
||||
The User may do so in any reasonable manner,
|
||||
but not in any way that suggests the Licensor endorses the User or their use.
|
||||
|
||||
## Prohibitions
|
||||
|
||||
No one may use this Work for prejudiced or bigoted purposes, including but not limited to:
|
||||
racism, xenophobia, queerphobia, queer exclusionism, homophobia, transphobia, enbyphobia, misogyny.
|
||||
|
||||
No one may use this Work to inflict or facilitate violence or abuse of human rights,
|
||||
as defined in either of the following documents:
|
||||
[Universal Declaration of Human Rights](https://www.un.org/en/about-us/universal-declaration-of-human-rights),
|
||||
[European Convention on Human Rights](https://prd-echr.coe.int/web/echr/european-convention-on-human-rights)
|
||||
along with the rulings of the [European Court of Human Rights](https://www.echr.coe.int/).
|
||||
|
||||
No law enforcement, carceral institutions, immigration enforcement entities, military entities or military contractors
|
||||
may use the Work for any reason. This also applies to any individuals employed by those entities.
|
||||
|
||||
No business entity where the ratio of pay (salaried, freelance, stocks, or other benefits)
|
||||
between the highest and lowest individual in the entity is greater than 50 : 1
|
||||
may use the Work for any reason.
|
||||
|
||||
No private business run for profit with more than a thousand employees
|
||||
may use the Work for any reason.
|
||||
|
||||
Unless the User has made substantial changes to the Work,
|
||||
or uses it only as a part of a new work (eg. as a library, as a part of an anthology, etc.),
|
||||
they are prohibited from selling the Work.
|
||||
That prohibition includes processing the Work with machine learning models.
|
||||
|
||||
## Sanctions
|
||||
|
||||
If the Licensor notifies the User that they have not complied with the rules of the license,
|
||||
they can keep their license by complying within 30 days after the notice.
|
||||
If they do not do so, their license ends immediately.
|
||||
|
||||
## Warranty
|
||||
|
||||
This Work is provided “as is”, without warranty of any kind, express or implied.
|
||||
The Licensor will not be liable to anyone for any damages related to the Work or this license,
|
||||
under any kind of legal claim as far as the law allows.
|
||||
57
src/articles/license/en.md
Normal file
57
src/articles/license/en.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# 🏳️🌈 Opinionated Queer License v1.2
|
||||
|
||||
© Copyright {Licensor}
|
||||
|
||||
## Permissions
|
||||
|
||||
The creators of this Work (“The Licensor”) grant permission
|
||||
to any person, group or legal entity that doesn't violate the prohibitions below (“The User”),
|
||||
to do everything with this Work that would otherwise infringe their copyright or any patent claims,
|
||||
subject to the following conditions:
|
||||
|
||||
## Obligations
|
||||
|
||||
The User must give appropriate credit to the Licensor,
|
||||
provide a copy of this license or a (clickable, if the medium allows) link to
|
||||
[oql.avris.it/license/v1.2](https://oql.avris.it/license/v1.2),
|
||||
and indicate whether and what kind of changes were made.
|
||||
The User may do so in any reasonable manner,
|
||||
but not in any way that suggests the Licensor endorses the User or their use.
|
||||
|
||||
## Prohibitions
|
||||
|
||||
No one may use this Work for prejudiced or bigoted purposes, including but not limited to:
|
||||
racism, xenophobia, queerphobia, queer exclusionism, homophobia, transphobia, enbyphobia, misogyny.
|
||||
|
||||
No one may use this Work to inflict or facilitate violence or abuse of human rights,
|
||||
as defined in either of the following documents:
|
||||
[Universal Declaration of Human Rights](https://www.un.org/en/about-us/universal-declaration-of-human-rights),
|
||||
[European Convention on Human Rights](https://prd-echr.coe.int/web/echr/european-convention-on-human-rights)
|
||||
along with the rulings of the [European Court of Human Rights](https://www.echr.coe.int/).
|
||||
|
||||
No law enforcement, carceral institutions, immigration enforcement entities, military entities or military contractors
|
||||
may use the Work for any reason. This also applies to any individuals employed by those entities.
|
||||
|
||||
No business entity where the ratio of pay (salaried, freelance, stocks, or other benefits)
|
||||
between the highest and lowest individual in the entity is greater than 50 : 1
|
||||
may use the Work for any reason.
|
||||
|
||||
No private business run for profit with more than a thousand employees
|
||||
may use the Work for any reason.
|
||||
|
||||
Unless the User has made substantial changes to the Work,
|
||||
or uses it only as a part of a new work (eg. as a library, as a part of an anthology, etc.),
|
||||
they are prohibited from selling the Work.
|
||||
That prohibition includes processing the Work with machine learning models.
|
||||
|
||||
## Sanctions
|
||||
|
||||
If the Licensor notifies the User that they have not complied with the rules of the license,
|
||||
they can keep their license by complying within 30 days after the notice.
|
||||
If they do not do so, their license ends immediately.
|
||||
|
||||
## Warranty
|
||||
|
||||
This Work is provided “as is”, without warranty of any kind, express or implied.
|
||||
The Licensor will not be liable to anyone for any damages related to the Work or this license,
|
||||
under any kind of legal claim as far as the law allows.
|
||||
1
src/articles/license/index.toml
Normal file
1
src/articles/license/index.toml
Normal file
@@ -0,0 +1 @@
|
||||
author="Andrea Vos"
|
||||
@@ -96,7 +96,7 @@
|
||||
<!-- Footer -->
|
||||
<footer class="footer">
|
||||
<div class="content has-text-centered">
|
||||
<p><strong>{{name}}</strong> by {{author}}. © 2025</p>
|
||||
<p><strong>{{name}}</strong> by {{author}}. © {{year}}</p>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<!-- Footer -->
|
||||
<footer class="footer">
|
||||
<div class="content has-text-centered">
|
||||
<p><strong>{{name}}</strong> by {{author}}. © 2025</p>
|
||||
<p><strong>{{name}}</strong> by {{author}}. © {{year}}</p>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
@@ -238,6 +238,7 @@ class ArticleTranslation:
|
||||
self.context["url"] = self.url
|
||||
add_html_link(self.context)
|
||||
self.context["date"] = self.article.modified_at.strftime(config.formatting.datetime_format)
|
||||
self.context["year"] = str(self.article.modified_at.year)
|
||||
self.context["iso_date"] = self.article.modified_at.isoformat()
|
||||
self.context["author"] = self.article.author
|
||||
|
||||
@@ -383,6 +384,7 @@ class Article:
|
||||
self.context["url"] = self.url
|
||||
add_html_link(self.context)
|
||||
self.context["date"] = self.modified_at.strftime(config.formatting.datetime_format)
|
||||
self.context["year"] = str(self.modified_at.year)
|
||||
self.context["iso_date"] = self.modified_at.isoformat()
|
||||
self.context["author"] = self.author
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ class ArticleContext(TypedDict):
|
||||
url: str
|
||||
link: str
|
||||
date: str
|
||||
year: str
|
||||
iso_date: str
|
||||
author: str
|
||||
|
||||
@@ -39,6 +40,7 @@ class ArticleTranslationContext(TypedDict):
|
||||
url: str
|
||||
link: str
|
||||
date: str
|
||||
year: str
|
||||
iso_date: str
|
||||
author: str
|
||||
|
||||
|
||||
Reference in New Issue
Block a user