corrected some errors and fmtd

This commit is contained in:
Alie 2023-07-26 12:30:24 +02:00
parent d1b9a48626
commit ffc10a7059
5 changed files with 46 additions and 42 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
rsync -rv webpage django:/home/django/personalWebpage/ rsync -rv webpage django:/home/django/personalWebpage/
ssh django "bash -s" <<EOF ssh django "bash -s" <<EOF
cd /home/django/personalWebpage/ cd /home/django/personalWebpage/
python3 manage.py collectstatic --noinput python3 manage.py collectstatic --noinput
EOF

View File

@ -6,10 +6,4 @@ class Booksigner(models.Model):
website = models.CharField(blank=True, max_length=200) website = models.CharField(blank=True, max_length=200)
email = models.EmailField(blank=True, ) email = models.EmailField(blank=True, )
comment = models.CharField(blank=True, max_length=500) comment = models.CharField(blank=True, max_length=500)
hosting = models.CharField(max_length=10) hosting = models.CharField(max_length=10)
""" def __str__(self) -> 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 = "???!";} """

View File

@ -79,35 +79,36 @@
What i am What i am
</h2> </h2>
<p> <p>
A silly colection of bytes
</p> </p>
<h2 id="where"> <h2 id="where">
Where to contact me Where to contact me
</h2> </h2>
<div class="centerade"> <div class="centerade">
<a href="xmpp:bizcochito@fai.st"> {# djlint: ignore D018 #}<a href="xmpp:bizcochito@fai.st">
<img style="border: 0px; <img style="border: 0px;
height: 36px; height: 36px;
width: auto" width: auto"
src="https://xmpp.org/images/logos/xmpp-logo.svg" src="https://xmpp.org/images/logos/xmpp-logo.svg"
alt="XMPP" /> alt="XMPP" />
</a> </a>
<a href="mailto:bizcochito@anartist.org"> <a href="mailto:bizcochito@anartist.org">
<img style="border: 0px; <img style="border: 0px;
height: 36px; height: 36px;
width: auto" width: auto"
src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/%28at%29.svg/170px-%28at%29.svg.png" src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/%28at%29.svg/170px-%28at%29.svg.png"
alt="Personal Mail" /> alt="Personal Mail" />
</a> </a>
<a href="https://awoo.fai.st/MeDueleLaTeta"> <a href="https://awoo.fai.st/MeDueleLaTeta">
<img style="border: 0px; <img style="border: 0px;
height: 36px; height: 36px;
width: auto" width: auto"
src="https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg" src="https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg"
alt="Pleroma" /> alt="Pleroma" />
</a> </a>
</div>
</div> </div>
<a href="/">IDK return back</a>
</div> </div>
</body> <a href="{% url "webpage:index" %}">IDK return back</a>
</div>
</body>
</html> </html>

View File

@ -14,7 +14,7 @@
</h2> </h2>
<ul class="disclosure-closed"> <ul class="disclosure-closed">
<li> <li>
<a href="signbook/">Signbook</a> <a href=" {% url 'webpage:signbook' %} ">Signbook</a>
</li> </li>
</ul> </ul>
<h2> <h2>
@ -22,7 +22,7 @@
</h2> </h2>
<div class="img"> <div class="img">
{% for gif in banger_list %} {% for gif in banger_list %}
<img style="max-height: 50px; width: auto" src="{% static "icons/banner/" %}{{ gif.name }}" alt="{{ gif.url }}" /> <img style="max-height:50px;width:auto" src="{% static "icons/banner/" %}{{ gif.name }}" alt="{{ gif.url }}" />
{% endfor %} {% endfor %}
</div> </div>
<h2> <h2>
@ -30,7 +30,7 @@
</h2> </h2>
<div class="img"> <div class="img">
{% for gif in gif_list %} {% for gif in gif_list %}
<img style="max-height: 50px; width: auto" src="{% static "icons/gif/" %}{{ gif.name }}" alt="{{ gif.url }}" /> <img style="max-height:50px;width:auto" src="{% static "icons/gif/" %}{{ gif.name }}" alt="{{ gif.url }}" />
{% endfor %} {% endfor %}
</div> </div>
<h2> <h2>
@ -39,7 +39,7 @@
<div class="img"> <div class="img">
{% for banner in banner_list %} {% for banner in banner_list %}
<a href="https://{{ banner.url }}"> <a href="https://{{ banner.url }}">
<img style="height: 31px; width: auto" src="{% static "icons/88x31/" %}{{ banner.name }}" alt="{{ banner.url }}" /> <img style="height:31px; width:81px" src="{% static "icons/88x31/" %}{{ banner.name }}" alt="{{ banner.url }}" />
</a> </a>
{% endfor %} {% endfor %}
</div> </div>
@ -48,7 +48,10 @@
</h2> </h2>
<div class="img"> <div class="img">
<a href=""> <a href="">
<img src="{% static 'icons/coconut.png' %}" alt="cronut.cafe/~bizcochito" /> <img style="height:33px;
width:81px"
src="{% static 'icons/coconut.png' %}"
alt="cronut.cafe/~bizcochito" />
</a> </a>
</div> </div>
<h2> <h2>
@ -56,13 +59,16 @@
</h2> </h2>
<div class="img"> <div class="img">
<a href="https://yari.fai.st"> <a href="https://yari.fai.st">
<img src="{% static 'icons/bizcochito.gif' %}" alt="yari.fai.st" /> <img style="height:33px;
width:81px"
src="{% static 'icons/bizcochito.gif' %}"
alt="yari.fai.st" />
</a> </a>
</div> </div>
</div> </div>
<div class="centerade"> <div class="centerade">
<a> <a>
<img src="{% static "ads/hor/" %}{{ ad }}" /> <img src="{% static "ads/hor/" %}{{ ad }}" alt="ad" />
</a> </a>
</div> </div>
</div> </div>

View File

@ -1,7 +1,9 @@
import os
import random
from django.forms import ValidationError from django.forms import ValidationError
from django.http import HttpResponseNotFound, HttpResponseRedirect from django.http import HttpResponseNotFound
from django.shortcuts import render from django.shortcuts import render
import os, random
from .models import Booksigner from .models import Booksigner
from .forms import SignbookForm from .forms import SignbookForm