...
 
Commits (5)
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</script> </script>
<div class="wrap"> <div class="wrap">
<header> <header>
<img id="profile" src="/image/universalu13.jpg" height="170" alt="Tim Stumbaugh"/> <img id="profile" src="/image/universalu15.jpg" height="170" alt="Tim Stumbaugh"/>
<h1>Tim Stumbaugh</h1> <h1>Tim Stumbaugh</h1>
<p>A work in progress</p> <p>A work in progress</p>
</header> </header>
...@@ -73,8 +73,9 @@ ...@@ -73,8 +73,9 @@
<footer> <footer>
<p>&copy;2012-2017 Tim Stumbaugh</p> <p>&copy;2012-2017 Tim Stumbaugh</p>
<p>Hand-written, valid <a href="//validator.w3.org/check?uri=referer">HTML5</a> <p><a href="https://gitlab.com/tjstum/tjstum-www/">Hand-written</a>, valid
and <a href="//jigsaw.w3.org/css-validator/check/referer">CSS</a>.</p> <a href="//validator.w3.org/check?uri=referer">HTML5</a> and
<a href="//jigsaw.w3.org/css-validator/check/referer">CSS</a>.</p>
</footer> </footer>
</div> </div>
</div> </div>
......
...@@ -157,6 +157,14 @@ def collect_only(args, config): ...@@ -157,6 +157,14 @@ def collect_only(args, config):
print(path) print(path)
@action('preview')
def web_server(args, config):
import http.server, socketserver
with socketserver.TCPServer(("127.0.0.1", 8080), http.server.SimpleHTTPRequestHandler) as httpd:
print("Running on http://127.0.0.1:8080/")
httpd.serve_forever()
def main(): def main():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
......
This diff is collapsed.
...@@ -20,6 +20,7 @@ body { ...@@ -20,6 +20,7 @@ body {
} }
img { img {
padding-left: 1em;
float: right; float: right;
} }
...@@ -47,6 +48,7 @@ section { ...@@ -47,6 +48,7 @@ section {
} }
.content h2 { .content h2 {
padding-top: 5px;
margin-bottom: 10px; margin-bottom: 10px;
border-bottom: dashed thin black; border-bottom: dashed thin black;
background-color: #C4D2E0; background-color: #C4D2E0;
...@@ -56,8 +58,13 @@ section ul { ...@@ -56,8 +58,13 @@ section ul {
list-style-type: none; list-style-type: none;
} }
section p {
padding-left: 1em;
}
section p,li { section p,li {
margin-top: 0; margin-top: 0;
padding-right: 1em;
margin-bottom: 10px; margin-bottom: 10px;
line-height: 1.25em; line-height: 1.25em;
} }
......