diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-11-27 15:43:01 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-11-27 15:43:01 +0300 |
commit | 0bf59677249ff726ad467209a82932048ff62fa4 (patch) | |
tree | 40aff4cbccd0c46ac6a22d726c4a89d5af23b109 | |
parent | add serve.sh (same as serve.bat) (diff) | |
download | sorting-algorithms-0bf59677249ff726ad467209a82932048ff62fa4.tar.gz sorting-algorithms-0bf59677249ff726ad467209a82932048ff62fa4.zip |
fix markup semantics
-rw-r--r-- | _includes/common/sidebar.html | 9 | ||||
-rw-r--r-- | css/common/misc.css | 11 | ||||
-rw-r--r-- | index.html | 15 |
3 files changed, 20 insertions, 15 deletions
diff --git a/_includes/common/sidebar.html b/_includes/common/sidebar.html index e6041c3..5b5eb9d 100644 --- a/_includes/common/sidebar.html +++ b/_includes/common/sidebar.html @@ -1,4 +1,4 @@ -<h4>About the project</h4> +<h2 class="h4">About the project</h2> <p>{{ site.project.description }}. Feel free to contribute or contact me.</p> <div class="list-group wide-enough"> <a class="list-group-item" href="{{ site.github.repository_url }}"><span class="glyphicon glyphicon-home"></span> GitHub repository</a> @@ -6,13 +6,16 @@ </div> <p>The implemented algorithms have been plotted to study their performance. You can examine the plots <a href="{{ site.baseurl }}/plots.html">here</a>.</p> -<h4>Latest posts</h4> +<h2 class="h4">Latest posts</h2> {% if site.posts.size == 0 %} <p>Sorry, there're no posts yet.</p> {% else %} <div class="list-group wide-enough"> {% for post in site.posts limit: 5 %} - <a class="list-group-item" href="{{ site.baseurl }}{{ post.url }}"><span class="badge"><span class="glyphicon glyphicon-time"></span> {{ post.date | date_to_string }}</span><span class="glyphicon glyphicon-file"></span> {{ post.title }}</a> + <a class="list-group-item" href="{{ site.baseurl }}{{ post.url }}"> + <span class="badge"><span class="glyphicon glyphicon-time"></span> {{ post.date | date_to_string }}</span> + <span class="glyphicon glyphicon-file"></span> {{ post.title }} + </a> {% endfor %} </div> {% endif %} diff --git a/css/common/misc.css b/css/common/misc.css index 49072c4..617aced 100644 --- a/css/common/misc.css +++ b/css/common/misc.css @@ -1,3 +1,14 @@ .wide-enough { max-width: 400px; } +.wider { + max-width: 600px; +} +h1 a, +h2 a, +h3 a, +h4 a, +h5 a, +h6 a { + color: inherit; +} @@ -6,23 +6,14 @@ groups: navbar_link: <span class="glyphicon glyphicon-home"></span> Main page --- {% if site.posts.size == 0 %} - <h3>Sorry, no posts have been added yet.</h3> + <p class="h3">Sorry, no posts have been added yet.</p> <p class="text-muted">But I've made quite a few <a href="{{ site.baseurl }}/plots.html">plots</a> which you might want to check out.</p> <hr/> {% else %} {% for post in paginator.posts %} - <h2>{{ post.title }}</h2> + <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2> <p>{{ post.excerpt }}</p> - <div style="display: table; width: 100%;"> - <div style="display: table-row;"> - <div style="display: table-cell;"> - <a class="btn btn-primary" href="{{ site.baseurl }}{{ post.url }}">Read More <span class="glyphicon glyphicon-chevron-right"></span></a> - </div> - <div class="text-muted" style="text-align: right; display: table-cell;"> - <span class="glyphicon glyphicon-time"></span> Posted on {{ post.date | date_to_long_string }} - </div> - </div> - </div> + <p class="text-muted" style="text-align: right;"><span class="glyphicon glyphicon-time"></span> Posted on {{ post.date | date_to_long_string }}</p> <hr/> {% endfor %} <div class="text-center"> |