From ffc10a70595c5cab9c5ab7bc438af923b796d48e Mon Sep 17 00:00:00 2001 From: Alie Date: Wed, 26 Jul 2023 12:30:24 +0200 Subject: [PATCH] corrected some errors and fmtd --- deploy.sh | 5 ++-- webpage/models.py | 8 +----- webpage/templates/about.html | 49 ++++++++++++++++++------------------ webpage/templates/index.html | 20 +++++++++------ webpage/views.py | 6 +++-- 5 files changed, 46 insertions(+), 42 deletions(-) diff --git a/deploy.sh b/deploy.sh index a76fa59..06adccf 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,6 +1,7 @@ #!/bin/sh rsync -rv webpage django:/home/django/personalWebpage/ -ssh django "bash -s" < str: - return self.name """ -""" if(strpos($_SERVER["HTTP_HOST"], ".onion")){ $hosting = "tor!";} - elseif(strpos($_SERVER["HTTP_HOST"], ".i2p")){ $hosting = "i2p!";} - elseif(strpos($_SERVER["HTTP_HOST"], ".fai")){ $hosting = "fai!";} - else{$hosting = "???!";} """ \ No newline at end of file + hosting = models.CharField(max_length=10) \ No newline at end of file diff --git a/webpage/templates/about.html b/webpage/templates/about.html index 3fc7a2b..6b4b78d 100755 --- a/webpage/templates/about.html +++ b/webpage/templates/about.html @@ -79,35 +79,36 @@ What i am

+ A silly colection of bytes

Where to contact me

+ {# djlint: ignore D018 #} + XMPP + + + Personal Mail + + + Pleroma + - IDK return back - + IDK return back + + diff --git a/webpage/templates/index.html b/webpage/templates/index.html index bba06e2..20abbcf 100755 --- a/webpage/templates/index.html +++ b/webpage/templates/index.html @@ -14,7 +14,7 @@

@@ -22,7 +22,7 @@

{% for gif in banger_list %} - {{ gif.url }} + {{ gif.url }} {% endfor %}

@@ -30,7 +30,7 @@

{% for gif in gif_list %} - {{ gif.url }} + {{ gif.url }} {% endfor %}

@@ -39,7 +39,7 @@
{% for banner in banner_list %} - {{ banner.url }} + {{ banner.url }} {% endfor %}
@@ -48,7 +48,10 @@

@@ -56,13 +59,16 @@

diff --git a/webpage/views.py b/webpage/views.py index 3d16b24..fcb1bb2 100755 --- a/webpage/views.py +++ b/webpage/views.py @@ -1,7 +1,9 @@ +import os +import random + from django.forms import ValidationError -from django.http import HttpResponseNotFound, HttpResponseRedirect +from django.http import HttpResponseNotFound from django.shortcuts import render -import os, random from .models import Booksigner from .forms import SignbookForm