From 96686b2361391d98bfffa0a8febc8a276e6275aa Mon Sep 17 00:00:00 2001 From: jyamihud Date: Tue, 5 Apr 2022 21:21:04 +0300 Subject: [PATCH] Made the footer less ugly and more --- README.md | 12 ++++++++++++ data/issues/Includes Non-Free Software.html | 1 + modules/render.py | 16 ++++++++++------ 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 data/issues/Includes Non-Free Software.html diff --git a/README.md b/README.md index 7f134ce..fe16569 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,18 @@ The software is built on Python. So you will need to have python3 installed. The On first run, you will be prompted to edit the newly created `config.json`. You should set the URL to be the URL in which you are hosting **Free Competitors** (ex. `http://5wxkwfl6n4abwjsqv5r6roebwbc7fnc22dq3clpooojzdmdnzzo3amad.onion/`). If you do not wish to set a URL, you should set it to `/`. Then, you should specify the port to serve on, and the CSS to use. +If you want your instance updated with all the new software constantly, please run a script of a similar nature from the same folder: + +``` +import time +import os +while True: + time.sleep(300) # Every 5 minutes + os.system("git pull") # Pull the changes from git +``` + + + Please tell us if you start an instance. We want to add it's link here. # How it works? diff --git a/data/issues/Includes Non-Free Software.html b/data/issues/Includes Non-Free Software.html new file mode 100644 index 0000000..9301580 --- /dev/null +++ b/data/issues/Includes Non-Free Software.html @@ -0,0 +1 @@ +Some operating systems are Free Software, but contain software which is not Free. This is a problem since in order for a person to control the computer, the person must have control over all of the software on that computer. Not merely most of it. diff --git a/modules/render.py b/modules/render.py index 82434e3..dc6a1f6 100644 --- a/modules/render.py +++ b/modules/render.py @@ -76,7 +76,7 @@ def html(page, json): """ page = page + "" - + linksfilter = {"git":"source"} links = json.get("links", {}) for website in links: if website in ["icon"]: @@ -84,7 +84,7 @@ def html(page, json): link = links[website] page = page + """ """ @@ -185,15 +185,19 @@ def source_code_link(page):
- +
- + + +
- +
+ +
- +
- +