diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2021-03-25 23:17:35 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2021-03-25 23:17:35 +0000 |
commit | e204aaaa9c5155401ad3ab8bb7edec6588055fb0 (patch) | |
tree | c9a1af33ae205daf6d6ae3e08b98bf8c2cdfb681 /templates | |
parent | 0ccad16d5de0a9e8a5b651b13c60ef3abdb192c8 (diff) | |
download | boymoder.blog-e204aaaa9c5155401ad3ab8bb7edec6588055fb0.tar.gz boymoder.blog-e204aaaa9c5155401ad3ab8bb7edec6588055fb0.zip |
updated the css and html to be w3c valid
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 16 | ||||
-rw-r--r-- | templates/template.html | 34 |
2 files changed, 30 insertions, 20 deletions
diff --git a/templates/index.html b/templates/index.html index 91f7ded..1b4eda0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,11 +1,11 @@ {% extends "template.html" %} {% block content %} <aside> - <section id="recent thoughts"> + <section id="recent_thoughts"> <h4>recent thoughts:</h4> <ul> {% for id_, title in featured_thoughts %} - <li><a href={{"/thought?id=%i" % id_}}>{{title}}</a></li> + <li><a href="{{'/thought?id=%i' % id_}}">{{title}}</a></li> {% endfor %} </ul> </section> @@ -13,23 +13,23 @@ {{markdown|safe}} {% if tweets != None %} <section id="recent_tweets"> - <h1>recent tweets</h1> + <h3>recent tweets</h3> <ul> {% for text, url in tweets %} {% if text == None %} - <li><a href={{url}}>[image only]</a></li> + <li><a href="{{url}}">[image only]</a></li> {% else %} - <li><a href={{url}}>{{text}}</a></li> + <li><a href="{{url}}">{{text}}</a></li> {% endif %} {% endfor %} </ul> </section> {% endif %} - <section id="recent commits"> - <h1>recent git commits:</h4> + <section id="recent_commits"> + <h3>recent git commits:</h3> <ul> {% for commit in commits %} - <li><a href={{commit["url"]}}>{{"[%s] %s {+%i;-%i}" % (commit["repo"], commit["message"], commit["stats"]["additions"], commit["stats"]["deletions"])}}</a></li> + <li><a href="{{commit['url']}}">{{"[%s] %s {+%i;-%i}" % (commit["repo"], commit["message"], commit["stats"]["additions"], commit["stats"]["deletions"])}}</a></li> {% endfor %} </ul> </section> diff --git a/templates/template.html b/templates/template.html index d2f1382..00a7cea 100644 --- a/templates/template.html +++ b/templates/template.html @@ -1,5 +1,5 @@ <!doctype html> -<html> +<html lang="en"> <head> <meta name="abuseipdb-verification" content="3IuG6dik" /> <link rel='stylesheet' href="{{url_for('static', filename='style.css')}}"> @@ -9,17 +9,17 @@ <body> <div id=wrapper> <header> - <span> - <nav id=links> + <div id="externallinks"> + <nav> <ul> {% for name, link in links %} <li> - <a href={{link}}>{{name}}</a> + <a href="{{link}}">{{name}}</a> </li> {% endfor %} </ul> </nav> - </span> + </div> <div id=headerflex> <div id=headers> <a href="/" id=TheTitle><h1>{{title}}</h1></a> @@ -27,14 +27,14 @@ <ul> {% for name, link in articles %} <li> - <a href={{link}}>{{name}}</a> + <a href="{{link}}">{{name}}</a> </li> {% endfor %} </ul> </nav> </div> <a href="/"> - <img alt={{image[0]}} src={{image[1]}}> + <img alt="{{image[0]}}" src="{{image[1]}}"> </a> </div> </header> @@ -44,29 +44,39 @@ <h4>{{dt}}</h4> <h5>this category:</h5> <ul> - <li><b><a href={{'/thoughts#'+category.replace(' ', '_')}}>{{category}}</a></b></li> + <li><b><a href="{{'/thoughts#'+category.replace(' ', '_')}}">{{category}}</a></b></li> </ul> <h5>related thoughts:</h5> <ul> {% for id_, title, dt, category in related %} - <li><a href={{"/thought?id=%i" % id_}}>{{title}}</a></li> + <li><a href="{{'/thought?id=%i' % id_}}">{{title}}</a></li> {% endfor %} </ul> <h5>other categories:</h5> {% for category_name in othercategories %} <ul> - <li><a href={{'/thoughts#'+category_name.replace(' ', '_')}}>{{category_name}}</a></li> + <li><a href="{{'/thoughts#'+category_name.replace(' ', '_')}}">{{category_name}}</a></li> </ul> {% endfor %} </aside> {% endif %} - <article> + <div id="content"> {% block content %} {% endblock %} - </article> + </div> <footer> <p>this site is <a href="/thought?id=3">javascript free</a></p> <a href="https://github.com/jwansek/edaweb">sauce code released under gplv3</a> + <p> + <a href="http://jigsaw.w3.org/css-validator/check/referer"> + <img style="border:0;width:88px;height:31px" + src="http://jigsaw.w3.org/css-validator/images/vcss-blue" + alt="Valid CSS!" /> + </a> + </p> + <a href="https://www.abuseipdb.com/user/55019" title="AbuseIPDB is an IP address blacklist for webmasters and sysadmins to report IP addresses engaging in abusive behavior on their networks"> + <img src="https://www.abuseipdb.com/contributor/55019.svg" style="width: 201px;" alt="AbuseIPDB Contributor Badge"> + </a> </footer> </div> </body> |