diff options
| -rw-r--r-- | static/index.md | 2 | ||||
| -rw-r--r-- | static/style.css | 26 | ||||
| -rw-r--r-- | templates/index.html | 16 | ||||
| -rw-r--r-- | templates/template.html | 34 | 
4 files changed, 41 insertions, 37 deletions
| diff --git a/static/index.md b/static/index.md index ffa30ea..4748be8 100644 --- a/static/index.md +++ b/static/index.md @@ -1,4 +1,4 @@ -# haiiiiiii +## haiiiiiii  my name is eden and im a 19yo computer science undergraduate. i made my own website to encourage others to do so too.  i'll post my thoughts on here sometimes, and use this site to link to other stuff i host. diff --git a/static/style.css b/static/style.css index a169e55..45b9459 100644 --- a/static/style.css +++ b/static/style.css @@ -39,22 +39,19 @@ header nav {      display: inline;  } -#links { -    text-align: center; -    font-size: x-small; -} - -header span nav ul { +#externallinks {      background-color: black; +    text-align: center;  } -header span nav ul li a { -    color: white; +#externallinks nav ul li a { +    color: #f1f3f3; +    font-size: smaller;  }  header div {      padding-left: 20px; -    padding-bottom: 10px; +    /* padding-bottom: 10px; */  }  nav ul { @@ -100,7 +97,7 @@ article section table td {      max-width: 65%;  } -article img { +#content img {      max-width: 65%;  } @@ -125,22 +122,19 @@ blockquote span::before {  .running {      background-color: green; -    padding: 1, 1, 1, 1; -    margin: 0, 0, 2, 3;  }  .notRunning {      background-color: red; -    padding: 1, 1, 1, 1; -    margin: 0, 0, 2, 3;  }  header img {      max-height: 110px;  } -body div article { -    padding-left: 6px; +body div div { +    padding-left: 10px; +    padding-right: 10px;  }  footer { 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> | 
