more style updates

This commit is contained in:
Michael Zhang 2018-05-28 12:43:03 -05:00
parent 872144eb2c
commit c94d40ac2b
No known key found for this signature in database
GPG key ID: A1B65B603268116B
5 changed files with 14 additions and 4 deletions

4
_includes/navbar.html Normal file
View file

@ -0,0 +1,4 @@
<div class="container" id="navbar" style="padding-top: 10px;">
<h3 style="display: inline-block;"><a href="/" class="link">michael's blog</a></h3>
<a href="/about" class="link">about</a>
</div>

View file

@ -7,6 +7,8 @@
</head> </head>
<body> <body>
{% include navbar.html %}
<div class="container" style="padding: 30px;"> <div class="container" style="padding: 30px;">
{{ content }} {{ content }}
</div> </div>

View file

@ -6,10 +6,11 @@
</head> </head>
<body> <body>
{% include navbar.html %}
<div class="container" style="padding: 30px;"> <div class="container" style="padding: 30px;">
<a href="/">&laquo; back</a>
<div style="text-align: center;"> <div style="text-align: center;">
<h2 style="display: inline-block; margin-bottom: 0;">{{ page.title }}</h2> <h2 style="display: inline-block; margin: 0;">{{ page.title }}</h2>
<p style="font-size: 0.9em;">published: <b>{{ page.date | date_to_long_string }}</b></p> <p style="font-size: 0.9em;">published: <b>{{ page.date | date_to_long_string }}</b></p>
</div> </div>

View file

@ -39,3 +39,8 @@ code {
} }
padding: 10px; padding: 10px;
} }
#navbar .link {
font-size: 1.6em;
margin-right: 20px;
}

View file

@ -2,8 +2,6 @@
layout: default layout: default
--- ---
<h1 style="text-align: center;">michael's blog</h1>
<table style="width: 100%;"> <table style="width: 100%;">
{% for post in site.posts %} {% for post in site.posts %}
<tr> <tr>