Created
September 4, 2011 18:07
-
-
Save rednaxelafx/1193246 to your computer and use it in GitHub Desktop.
Modifications to the default Octopress blog for my blog on Github
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
Binary files ./source/images/avatar.jpg and /home/rednaxelafx/coderepo/gitrepo/octopress/source/images/avatar.jpg differ | |
diff -rupN ./source/_includes/custom/asides/about.html /home/rednaxelafx/coderepo/gitrepo/octopress/source/_includes/custom/asides/about.html | |
--- ./source/_includes/custom/asides/about.html 2011-09-05 01:49:29.787989004 +0800 | |
+++ /home/rednaxelafx/coderepo/gitrepo/octopress/source/_includes/custom/asides/about.html 2011-09-04 21:50:03.177989008 +0800 | |
@@ -1,4 +1,19 @@ | |
<section> | |
<h1>About Me</h1> | |
- <p>A little something about me.</p> | |
+ <p> | |
+ <img src="/images/avatar.jpg" width="120" style="float:left;margin-right:10px" /> | |
+ I'm a software engineer, currently working on JVM performance | |
+ and related toolings, at <a href="http://www.taobao.com">Taobao.com</a>. | |
+ </p> | |
+ <p> | |
+ Polyglot programmer. Interested in programming language design and | |
+ implementations, especially in compilers and virtual machines. Mostly | |
+ hacking on OpenJDK / HotSpot VM codebase these days. | |
+ </p> | |
+ <p> | |
+ Loves anime/comic/game and kart racing. | |
+ </p> | |
+ <p> | |
+ Chinese blog at: <a href="http://rednaxelafx.iteye.com" target="_blank">http://rednaxelafx.iteye.com</a> | |
+ </p> | |
</section> | |
diff -rupN ./source/_includes/custom/asides/blogroll.html /home/rednaxelafx/coderepo/gitrepo/octopress/source/_includes/custom/asides/blogroll.html | |
--- ./source/_includes/custom/asides/blogroll.html 1970-01-01 08:00:00.000000000 +0800 | |
+++ /home/rednaxelafx/coderepo/gitrepo/octopress/source/_includes/custom/asides/blogroll.html 2011-09-04 21:47:22.757989020 +0800 | |
@@ -0,0 +1,49 @@ | |
+<section> | |
+ <h1>Blogroll</h1> | |
+ <ul id="blogroll"> | |
+ <li> | |
+ HotSpot Developers | |
+ <ul id="blogroll_hotspot"> | |
+ <li><a href="http://blogs.oracle.com/jrose/">John Rose</a></li> | |
+ <li><a href="http://blogs.oracle.com/fatcatair/">Steve Goldman</a></li> | |
+ <li><a href="http://blogs.oracle.com/twisti/">Christian Thalinger</a></li> | |
+ <li><a href="http://blogs.oracle.com/dave/">David Dice</a></li> | |
+ <li><a href="http://blogs.oracle.com/tony/">Tony Printezis</a></li> | |
+ <li><a href="http://blogs.oracle.com/jonthecollector/">Jon Masamitsu</a></li> | |
+ <li><a href="http://blogs.oracle.com/dholmes/">David Holmes</a></li> | |
+ <li><a href="http://blogs.oracle.com/poonam/">Poonam Bajaj</a></li> | |
+ <li><a href="http://blogs.oracle.com/charliebrown/">Charlie Hunt</a></li> | |
+ <li><a href="http://blogs.oracle.com/kbr/">Ken Russell</a></li> | |
+ <li><a href="http://blogs.oracle.com/alanb/">Alan Bateman</a></li> | |
+ <li><a href="http://blogs.oracle.com/kamg/">Keith McGuigan</a></li> | |
+ <li><a href="http://blogs.oracle.com/briand/">Brian Doherty</a></li> | |
+ <li><a href="http://blogs.oracle.com/ksrini/">Kumar Srinivasan</a></li> | |
+ <li><a href="http://blogs.oracle.com/sbohne/">Steve Bohne</a></li> | |
+ <li><a href="http://blogs.oracle.com/dagastine/">David Dagastine Keenan</a></li> | |
+ <li><a href="http://blogs.oracle.com/moazam/">Moazam Rajas</a></li> | |
+ </ul> | |
+ </li> | |
+ <li> | |
+ Programmers | |
+ <ul id="blogroll_programmers"> | |
+ <li><a href="http://blog.headius.com/">Charles Oliver Nutter</a></li> | |
+ <li>To be added...</li> | |
+ </ul> | |
+ </li> | |
+ <li> | |
+ Friends - Programmers | |
+ <ul id="blogroll_friends"> | |
+ <li><a href="http://saitowu.github.com">Saito Wu</a></li> | |
+ <li><a href="http://luikore.github.com">Zete Lui</a></li> | |
+ <li>To be added...</li> | |
+ </ul> | |
+ </li> | |
+ <li> | |
+ Websites | |
+ <ul id="blogroll_websites"> | |
+ <li><a href="http://yavaeye.com/">Yavaeye</a></li> | |
+ <li>To be added...</li> | |
+ </ul> | |
+ </li> | |
+ </ul> | |
+</section> | |
diff -rupN ./source/_includes/custom/asides/tags.html /home/rednaxelafx/coderepo/gitrepo/octopress/source/_includes/custom/asides/tags.html | |
--- ./source/_includes/custom/asides/tags.html 1970-01-01 08:00:00.000000000 +0800 | |
+++ /home/rednaxelafx/coderepo/gitrepo/octopress/source/_includes/custom/asides/tags.html 2011-09-04 19:16:24.367989010 +0800 | |
@@ -0,0 +1,25 @@ | |
+<section> | |
+ <h1>Tags</h1> | |
+ <input class="search" type="text" name="filter_tags" results="0" placeholder="Filter Tags ..."/> | |
+ <script type="text/javascript"> | |
+ var filter = function(e) { | |
+ var val = $(this).val(); | |
+ if (/^\s*$/.test(val) || (e && e.keyCode == 27)) { // 27 is 'esc' | |
+ $('#tags li').show(); | |
+ $(this).val(''); | |
+ return; | |
+ } | |
+ var pattern = new RegExp(val, 'i'); | |
+ $('#tags li').each(function(){ | |
+ $(this)[pattern.test($(this).find('a').text()) ? 'show' : 'hide'](); | |
+ }); | |
+ }; | |
+ $('input[name=filter_tags]').change(filter); | |
+ $('input[name=filter_tags]').keyup(filter); | |
+ </script> | |
+ <ul id="tags"> | |
+ {% for cat in site.categories %} | |
+ <li class="post"> | |
+ <a href="{{ root_url }}/blog/categories/{{ cat[0] }}">{{ cat[0] }}</a> | |
+ </li> | |
+ {% endfor %} | |
+ </ul> | |
+</section> | |
diff -rupN ./source/_includes/custom/navigation.html /home/rednaxelafx/coderepo/gitrepo/octopress/source/_includes/custom/navigation.html | |
--- ./source/_includes/custom/navigation.html 2011-09-05 01:49:29.787989004 +0800 | |
+++ /home/rednaxelafx/coderepo/gitrepo/octopress/source/_includes/custom/navigation.html 2011-09-04 20:37:24.057989019 +0800 | |
@@ -1,4 +1,5 @@ | |
<ul role=main-navigation> | |
<li><a href="{{ root_url }}/">Blog</a></li> | |
<li><a href="{{ root_url }}/blog/archives">Archives</a></li> | |
+ <li><a href="https://github.com/rednaxelafx">Github</a></li> | |
</ul> | |
diff -rupN ./source/_layouts/default.html /home/rednaxelafx/coderepo/gitrepo/octopress/source/_layouts/default.html | |
--- ./source/_layouts/default.html 2011-09-05 01:49:29.787989004 +0800 | |
+++ /home/rednaxelafx/coderepo/gitrepo/octopress/source/_layouts/default.html 2011-09-05 01:27:57.487989004 +0800 | |
@@ -5,7 +5,7 @@ | |
<nav role=navigation>{% include navigation.html %}</nav> | |
<div id="main"> | |
<div id="content"> | |
- {{ content | expand_urls: root_url | backtick_codeblock | smart_quotes }} | |
+ {{ content | expand_urls: root_url | backtick_codeblock }} | |
</div> | |
</div> | |
<footer>{% include footer.html %}</footer> | |
diff -rupN ./sass/partials/sidebar/_base.scss /home/rednaxelafx/coderepo/gitrepo/octopress/sass/partials/sidebar/_base.scss | |
--- ./sass/partials/sidebar/_base.scss 2011-09-05 01:49:29.797989016 +0800 | |
+++ /home/rednaxelafx/coderepo/gitrepo/octopress/sass/partials/sidebar/_base.scss 2011-09-04 20:59:51.257989010 +0800 | |
@@ -30,9 +30,10 @@ aside[role=sidebar] { | |
margin-left: 0; | |
} | |
li { | |
- list-style: none; | |
+// list-style: none; | |
padding: .5em 0; | |
margin: 0; | |
+ margin-left: 20px; | |
border-bottom: 1px solid $sidebar-border; | |
@extend .side-shadow-border; | |
p:last-child { | |
@@ -47,6 +48,26 @@ aside[role=sidebar] { | |
color: $sidebar-link-color; | |
&:hover { color: $sidebar-link-color-hover; } | |
} | |
+ .search { | |
+ padding: .3em .5em 0; | |
+ font-size: .85em; | |
+ @extend .sans; | |
+ line-height: 1.1em; | |
+ width: 95%; | |
+ @include border-radius(.5em); | |
+ @include background-clip(padding-box); | |
+ @include box-shadow(lighten($nav-bg, 2) 0 1px); | |
+ background-color: lighten($nav-bg, 15); | |
+ border: 1px solid $nav-border; | |
+ color: #888; | |
+ &:focus { | |
+ color: #444; | |
+ border-color: #80b1df; | |
+ @include box-shadow(#80b1df 0 0 4px, #80b1df 0 0 3px inset); | |
+ background-color: #fff; | |
+ outline: none; | |
+ } | |
+ } | |
} | |
.aside-alt-link { | |
color: $sidebar-link-color-subdued; | |
diff -rupN ./sass/screen.scss /home/rednaxelafx/coderepo/gitrepo/octopress/sass/screen.scss | |
--- ./sass/screen.scss 2011-09-05 01:49:29.797989016 +0800 | |
+++ /home/rednaxelafx/coderepo/gitrepo/octopress/sass/screen.scss 2011-09-05 00:45:51.077989001 +0800 | |
@@ -7,3 +7,8 @@ | |
@import "base"; | |
@import "partials"; | |
@import "custom/styles"; | |
+ | |
+.entry-content li { | |
+ margin-left: 20px; | |
+} | |
+ |
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
diff -rupN ./source/_includes/asides/github.html /home/rednaxelafx/coderepo/gitrepo/octopress/source/_includes/asides/github.html | |
--- ./source/_includes/asides/github.html 2011-09-05 01:49:29.787989004 +0800 | |
+++ /home/rednaxelafx/coderepo/gitrepo/octopress/source/_includes/asides/github.html 1970-01-01 08:00:00.000000000 +0800 | |
@@ -1,30 +0,0 @@ | |
-{% if site.github_user %} | |
-<section> | |
- <h1>Github Repos</h1> | |
- <ul id="gh_repos"> | |
- <li class="loading">Status updating...</li> | |
- </ul> | |
- {% if site.github_show_profile_link %} | |
- <a href="https://github.com/{{site.github_user}}">@{{site.github_user}}</a> on Github | |
- {% endif %} | |
- <script type="text/javascript"> | |
- $.domReady(function(){ | |
- if (!window.jXHR){ | |
- var jxhr = document.createElement('script'); | |
- jxhr.type = 'text/javascript'; | |
- jxhr.src = '{{ root_url}}/javascripts/libs/jXHR.js'; | |
- var s = document.getElementsByTagName('script')[0]; | |
- s.parentNode.insertBefore(jxhr, s); | |
- } | |
- | |
- github.showRepos({ | |
- user: '{{site.github_user}}', | |
- count: {{site.github_repo_count}}, | |
- skip_forks: {{site.github_skip_forks}}, | |
- target: '#gh_repos' | |
- }); | |
- }); | |
- </script> | |
- <script src="{{ root_url }}/javascripts/github.js" type="text/javascript"> </script> | |
-</section> | |
-{% endif %} | |
diff -rupN ./source/javascripts/github.js /home/rednaxelafx/coderepo/gitrepo/octopress/source/javascripts/github.js | |
--- ./source/javascripts/github.js 2011-09-05 01:49:29.787989004 +0800 | |
+++ /home/rednaxelafx/coderepo/gitrepo/octopress/source/javascripts/github.js 1970-01-01 08:00:00.000000000 +0800 | |
@@ -1,43 +0,0 @@ | |
-github = (function(){ | |
- function render(target, repos){ | |
- var i = 0, fragment = '', t = $(target)[0]; | |
- | |
- for(i = 0; i < repos.length; i++) | |
- fragment += '<li><a href="'+repos[i].url+'">'+repos[i].name+'</a><p>'+repos[i].description+'</p></li>'; | |
- | |
- t.innerHTML = fragment; | |
- } | |
- return { | |
- showRepos: function(options){ | |
- var feed = new jXHR(); | |
- feed.onerror = function (msg,url) { | |
- $(options.target + ' li.loading').addClass('error').text("Error loading feed"); | |
- } | |
- feed.onreadystatechange = function(data){ | |
- if (feed.readyState === 4) { | |
- var repos = []; | |
- var i; | |
- for (i = 0; i < data.repositories.length; i++){ | |
- if (options.skip_forks && data.repositories[i].fork) | |
- continue; | |
- repos.push(data.repositories[i]); | |
- } | |
- repos.sort(function(a, b){ | |
- var a = new Date(a.pushed_at), | |
- b = new Date(b.pushed_at); | |
- | |
- if (a.valueOf() == b.valueOf()) return 0; | |
- return a.valueOf() > b.valueOf() ? -1 : 1; | |
- }); | |
- | |
- if (options.count) | |
- repos.splice(options.count); | |
- | |
- render(options.target, repos) | |
- } | |
- }; | |
- feed.open("GET","http://github.com/api/v2/json/repos/show/"+options.user+"?callback=?"); | |
- feed.send(); | |
- } | |
- }; | |
-})(); | |
\ No newline at end of file | |
diff -rupN ./source/javascripts/twitter.js /home/rednaxelafx/coderepo/gitrepo/octopress/source/javascripts/twitter.js | |
--- ./source/javascripts/twitter.js 2011-09-05 01:49:29.787989004 +0800 | |
+++ /home/rednaxelafx/coderepo/gitrepo/octopress/source/javascripts/twitter.js 2011-08-26 02:40:52.322973000 +0800 | |
@@ -68,7 +68,7 @@ function prettyDate(time) { | |
var diff = ((current_date_full - date.getTime()) / 1000); | |
var day_diff = Math.floor(diff / 86400); | |
- if (isNaN(day_diff) || day_diff < 0) return "<span>∞</span>"; | |
+ if (isNaN(day_diff) || day_diff < 0 || day_diff >= 31) return; | |
return day_diff == 0 && ( | |
diff < 60 && say.just_now || | |
@@ -78,5 +78,5 @@ function prettyDate(time) { | |
diff < 86400 && Math.floor(diff / 3600) + say.hours_ago) || | |
day_diff == 1 && say.yesterday || | |
day_diff < 7 && day_diff + say.days_ago || | |
- day_diff > 7 && Math.ceil(day_diff / 7) + say.weeks_ago; | |
+ day_diff < 31 && Math.ceil(day_diff / 7) + say.weeks_ago; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment