From 3eedc1dd5ac0c38a8b6a8cb17c8e6da1f2174eb0 Mon Sep 17 00:00:00 2001 From: Chris Mungall Date: Wed, 7 Sep 2016 07:17:06 -0700 Subject: [PATCH] initial commit, adapted from https://github.com/Gaohaoyang/gaohaoyang.github.io --- README.md | 8 +++ _config.yml | 55 ++++++++++++++++++ feed.xml | 30 ++++++++++ index.html | 159 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 252 insertions(+) create mode 100644 README.md create mode 100644 _config.yml create mode 100644 feed.xml create mode 100644 index.html diff --git a/README.md b/README.md new file mode 100644 index 0000000..c4d5f7e --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# My BioCaddie + +Put your data here + +Site adapted from: + +Adapted from: https://github.com/Gaohaoyang/gaohaoyang.github.io/* + diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..3ec1c65 --- /dev/null +++ b/_config.yml @@ -0,0 +1,55 @@ +# Welcome to Jekyll! +# +# This config file is meant for settings that affect your whole blog, values +# which you are expected to set up once and rarely need to edit after that. +# For technical reasons, this file is *NOT* reloaded automatically when you use +# 'jekyll serve'. If you change this file, please restart the server process. + +# Site settings +title: MyBioCaddie +brief-intro: My Data +baseurl: "/mybiocaddie" # the subpath of your site, e.g. /blog +url: "http://cmungall.github.io/mybiocaddie" # the base hostname & protocol for your site + +permalink: /:year/:month/:day/:title/ + +# other links +twitter_username: chrismungall +github_username: cmungall +email: cjmungall@lbl.gov + +collections: + metadata: + output: true + ctest: + output: true + +description_footer: My BioCaddie! + +# comments +# two ways to comment, only choose one, and use your own short name +disqus_shortname: cmungall + +##google_analytics_id: UA-72449510-4 # google 分析追踪id + +# Build settings +markdown: kramdown + +kramdown: + input: GFM + syntax_highlighter: rouge + +# port +# port: 1234 + +# url +category_dir: category/ +tag_dir: tag/ + +# excerpt +excerpt_separator: "\n\n\n\n" + +# paginate +# note: no longer required? +#gems: [jekyll-paginate] +#paginate: 6 diff --git a/feed.xml b/feed.xml new file mode 100644 index 0000000..a6628bd --- /dev/null +++ b/feed.xml @@ -0,0 +1,30 @@ +--- +layout: null +--- + + + + {{ site.title | xml_escape }} + {{ site.description | xml_escape }} + {{ site.url }}{{ site.baseurl }}/ + + {{ site.time | date_to_rfc822 }} + {{ site.time | date_to_rfc822 }} + Jekyll v{{ jekyll.version }} + {% for post in site.posts limit:10 %} + + {{ post.title | xml_escape }} + {{ post.content | xml_escape }} + {{ post.date | date_to_rfc822 }} + {{ post.url | prepend: site.baseurl | prepend: site.url }} + {{ post.url | prepend: site.baseurl | prepend: site.url }} + {% for tag in post.tags %} + {{ tag | xml_escape }} + {% endfor %} + {% for cat in post.categories %} + {{ cat | xml_escape }} + {% endfor %} + + {% endfor %} + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..da61d43 --- /dev/null +++ b/index.html @@ -0,0 +1,159 @@ +--- +layout: default +--- + +
+
+

My Datasets

+
+
    + {% for post in site.metadata %} +
  • +

    + {{ post.title }} +

    +
    +
    + {{ post.date | date: "%F" }} +
    +
    + {% if post.author %}{{ post.author }} + {% endif %} +
    +
    + {% if page.meta %}{{ page.meta }} {% endif %} +
    + +
    + {% include category.html %} +
    + +
    + {% include tag.html %} +
    +
    +
    + {{post.excerpt}} +
    +
    + Read All +
    +
    +
  • + {% endfor %} +
+ + + + + +
+ +
+
+
+
+ + Recent Posts +
+
    + {% for post in site.posts offset: 0 limit: 10 %} +
  • {{ post.title }}
  • + {% endfor %} +
+
+ + +
+
+ + Categories +
+ +
+ +
+
+ + Tags +
+
+ {% assign first = site.tags.first %} + {% assign max = first[1].size %} + {% assign min = max %} + {% for tag in site.tags offset:1 %} + {% if tag[1].size > max %} + {% assign max = tag[1].size %} + {% elsif tag[1].size < min %} + {% assign min = tag[1].size %} + {% endif %} + {% endfor %} + + {% if max == min %} + {% assign diff = 1 %} + {% else %} + {% assign diff = max | minus: min %} + {% endif %} + + {% for tag in site.tags %} + {% assign temp = tag[1].size | minus: min | times: 36 | divided_by: diff %} + {% assign base = temp | divided_by: 4 %} + {% assign remain = temp | modulo: 4 %} + {% if remain == 0 %} + {% assign size = base | plus: 9 %} + {% elsif remain == 1 or remain == 2 %} + {% assign size = base | plus: 9 | append: '.5' %} + {% else %} + {% assign size = base | plus: 10 %} + {% endif %} + {% if remain == 0 or remain == 1 %} + {% assign color = 9 | minus: base %} + {% else %} + {% assign color = 8 | minus: base %} + {% endif %} + {{ tag[0] }} + {% endfor %} +
+
+ + +
+
+
+ +