-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redesign sidebar to be chronological, better title, favicon
- Loading branch information
Showing
8 changed files
with
213 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -454,7 +454,6 @@ code { | |
font-size: 14px; | ||
margin: 0; | ||
padding: 20px; | ||
text-transform: uppercase; | ||
} | ||
|
||
#sidebar h2 { | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -454,7 +454,6 @@ code { | |
font-size: 14px; | ||
margin: 0; | ||
padding: 20px; | ||
text-transform: uppercase; | ||
} | ||
|
||
#sidebar h2 { | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.