aboutsummaryrefslogtreecommitdiff
path: root/source/_includes/asides
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2014-10-20 16:38:24 -0700
committerZhiming Wang <zmwangx@gmail.com>2014-10-20 16:38:24 -0700
commitd139da3a3277f73d7f01e4283d8dc01630a5317c (patch)
tree5a58aeb89869f09cc48543c0540a1fbd4910040e /source/_includes/asides
parentc434de5977c316c8406c00bb24221fa61ca8fe88 (diff)
downloadmy_new_personal_website-d139da3a3277f73d7f01e4283d8dc01630a5317c.tar.xz
my_new_personal_website-d139da3a3277f73d7f01e4283d8dc01630a5317c.zip
initial setup
Diffstat (limited to '')
-rw-r--r--source/_includes/asides/delicious.html8
-rw-r--r--source/_includes/asides/github.html30
-rw-r--r--source/_includes/asides/googleplus.html11
-rw-r--r--source/_includes/asides/pinboard.html19
-rw-r--r--source/_includes/asides/recent_posts.html10
5 files changed, 78 insertions, 0 deletions
diff --git a/source/_includes/asides/delicious.html b/source/_includes/asides/delicious.html
new file mode 100644
index 00000000..115cdcbc
--- /dev/null
+++ b/source/_includes/asides/delicious.html
@@ -0,0 +1,8 @@
+{% if site.delicious_user %}
+<section>
+ <h1>On Delicious</h1>
+ <div id="delicious"></div>
+ <script type="text/javascript" src="http://feeds.delicious.com/v2/json/{{ site.delicious_user }}?count={{ site.delicious_count }}&amp;sort=date&amp;callback=renderDeliciousLinks"></script>
+ <p><a href="http://delicious.com/{{ site.delicious_user }}">My Delicious Bookmarks &raquo;</a></p>
+</section>
+{% endif %} \ No newline at end of file
diff --git a/source/_includes/asides/github.html b/source/_includes/asides/github.html
new file mode 100644
index 00000000..b0bf9596
--- /dev/null
+++ b/source/_includes/asides/github.html
@@ -0,0 +1,30 @@
+{% 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">
+ $(document).ready(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 --git a/source/_includes/asides/googleplus.html b/source/_includes/asides/googleplus.html
new file mode 100644
index 00000000..00a0aa85
--- /dev/null
+++ b/source/_includes/asides/googleplus.html
@@ -0,0 +1,11 @@
+{% if site.googleplus_user %}
+<section class="googleplus{% if site.googleplus_hidden %} googleplus-hidden{% endif %}">
+ <h1>
+ <a href="https://plus.google.com/{{ site.googleplus_user }}?rel=author">
+ <img src="http://www.google.com/images/icons/ui/gprofile_button-32.png" width="32" height="32">
+ Google+
+ </a>
+ </h1>
+</section>
+{% endif %}
+
diff --git a/source/_includes/asides/pinboard.html b/source/_includes/asides/pinboard.html
new file mode 100644
index 00000000..c89c3e7b
--- /dev/null
+++ b/source/_includes/asides/pinboard.html
@@ -0,0 +1,19 @@
+{% if site.pinboard_user %}
+<section>
+ <h1>My Pinboard</h1>
+ <ul id="pinboard_linkroll">Fetching linkroll...</ul>
+ <p><a href="http://pinboard.in/u:{{ site.pinboard_user }}">My Pinboard Bookmarks &raquo;</a></p>
+</section>
+<script type="text/javascript">
+ var linkroll = 'pinboard_linkroll'; //id target for pinboard list
+ var pinboard_user = "{{ site.pinboard_user }}"; //id target for pinboard list
+ var pinboard_count = {{ site.pinboard_count }}; //id target for pinboard list
+ (function(){
+ var pinboardInit = document.createElement('script');
+ pinboardInit.type = 'text/javascript';
+ pinboardInit.async = true;
+ pinboardInit.src = '{{ root_url }}/javascripts/pinboard.js';
+ document.getElementsByTagName('head')[0].appendChild(pinboardInit);
+ })();
+</script>
+{% endif %}
diff --git a/source/_includes/asides/recent_posts.html b/source/_includes/asides/recent_posts.html
new file mode 100644
index 00000000..4b108474
--- /dev/null
+++ b/source/_includes/asides/recent_posts.html
@@ -0,0 +1,10 @@
+<section>
+ <h1>Recent Posts</h1>
+ <ul id="recent_posts">
+ {% for post in site.posts limit: site.recent_posts %}
+ <li class="post">
+ <a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a>
+ </li>
+ {% endfor %}
+ </ul>
+</section>