Skip to content

Commit

Permalink
redesign sidebar to be chronological, better title, favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
insanj committed Mar 4, 2019
1 parent 613624a commit 9623ba3
Show file tree
Hide file tree
Showing 8 changed files with 213 additions and 169 deletions.
5 changes: 4 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ exclude: ['README.markdown']
permalink: ':title'
safe: false
title: 'insane.works'
highlighter: rouge
author: '@insanj'
description: '🐛 creative works by julian weiss'
description_biline: '👾 see this project on github'
highlighter: rouge
53 changes: 31 additions & 22 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
<h1>
<a href="{{site.url}}" style="color:inherit;">{{ site.title }}</a>
<span style="opacity: 0.5; font-size: 12px;">
<a href="https://insanj.com" style="color:white;"><br/>content from @insanj</a>
<a href="{{site.url}}" style="color:inherit;">
{{ site.title }}
<a href="https://github.com/insanj" style="color: white; opacity: 0.6;">
by {{ site.author }}
</a>
</a>
<span style="opacity: 0.6; font-size: 12px;">
<br/>
<a href="http://insanj.com" style="color:white; display: block;">
{{ site.description }}
</a>
<a href="https://github.com/insanj/works" style="color:white;">
{{ site.description_biline }}
</a>
</span>
</h1>


<ul id='links'>
{% for post in site.posts %}
{% if post.category == null %}
<li><a href='#{{ post.url }}'>{{ post.title }}</a></li>
{% endif %}
{% endfor %}

{% assign sorted_cats = site.categories | sort %}
{% for category in sorted_cats reversed %}
<li><h2>{{ category | first }}</h2>
<ul id="links">
{% for post in site.posts %}
{% capture current_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% if current_year != previous_year %}
{% unless forloop.first %}
</ul>
{% endunless %}
<p>
<h2 class="links-year-header text-center">{{ current_year }}</h2>
</p>
<ul>
{% for posts in category %}
{% for post in posts %}
<li class='{{ post.type }}'>
<a href='#{{ post.url }}'>{{ post.title }}<span class="sidebar-date-biline">{{ post.date | date_to_long_string }}</span></a>
</li>
{% endfor %}
{% endfor %}
{% assign previous_year = current_year %}
{% endif %}
<li class='{{ post.type }}'>
<a href='#{{ post.url }}'>{{ post.category | truncate: 2, ''}} {{ post.title }}<span class="sidebar-date-biline">{{ post.date | date_to_long_string }}</span></a>
</li>
{% if forloop.last %}
</ul>
</li>
{% endif %}
{% endfor %}
</ul>
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1'/>
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'/>
<link href='assets.css' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="">
<link rel="shortcut icon" href="/assets/images/favicon.png">

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
Expand Down
1 change: 0 additions & 1 deletion assets.css
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ code {
font-size: 14px;
margin: 0;
padding: 20px;
text-transform: uppercase;
}

#sidebar h2 {
Expand Down
Binary file added assets/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion docs/assets.css
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ code {
font-size: 14px;
margin: 0;
padding: 20px;
text-transform: uppercase;
}

#sidebar h2 {
Expand Down
Binary file added docs/assets/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9623ba3

Please sign in to comment.