From 1bf45d6f524b77956530e3d39a4a646f5b972cb1 Mon Sep 17 00:00:00 2001 From: Anne Date: Thu, 24 May 2018 01:56:44 +0400 Subject: [PATCH 1/3] Issue #230 --- _layouts/projects.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_layouts/projects.html b/_layouts/projects.html index dca8b90f..d42405a2 100644 --- a/_layouts/projects.html +++ b/_layouts/projects.html @@ -10,13 +10,15 @@ {% if post.title != null %}

- {{ post.title }} + {{ post.title }} +

{% endif %}
- {% for post in site.categories[post.title] %} + {% assign projects = site.categories[post.title] | sample: 5 %} + {% for post in projects %}
  • {{ post.title }}
  • {% endfor %}
    From 1d471fa5ede676af86206630af930e40b24a181d Mon Sep 17 00:00:00 2001 From: Anne Date: Thu, 14 Jun 2018 00:22:22 +0400 Subject: [PATCH 2/3] updating strains and feature classes --- _layouts/event.html | 2 +- _layouts/impact.html | 16 ++++---- _layouts/people.html | 2 +- _layouts/project.html | 4 +- _layouts/projects.html | 4 +- _layouts/strain.html | 4 +- public/css/global.css | 90 ++++++++++++++++++------------------------ 7 files changed, 56 insertions(+), 66 deletions(-) diff --git a/_layouts/event.html b/_layouts/event.html index 23ed0cff..6a1f3d73 100644 --- a/_layouts/event.html +++ b/_layouts/event.html @@ -33,7 +33,7 @@

    {{ page.title }}

    Updates

    {% for update in page.updates %} -
    +
    {{ update.date | date: "%m/%y" }} {{ update.text | markdownify | remove: '

    ' | remove: '

    ' }}
    diff --git a/_layouts/impact.html b/_layouts/impact.html index 94b5aecc..08f05dad 100644 --- a/_layouts/impact.html +++ b/_layouts/impact.html @@ -17,9 +17,9 @@ {% for o in order %} {% include date-split.html %} {% if update.type contains 'publication' or update.type contains 'paper' %} -
    +
    {{ update.date | date: "%m/%y" }} - + {{ post.title | downcase }}
    {{ update.text | markdownify | remove: '

    ' | remove: '

    ' }} @@ -43,10 +43,10 @@ {% for o in order %} {% include date-split.html %} {% if update.type contains 'grant' or update.type contains 'award' %} -
    +
    {{ update.date | date: "%m/%y" }} - + {{ post.title | downcase }}
    @@ -71,10 +71,10 @@ {% for o in order %} {% include date-split.html %} {% if update.type contains 'talk' or update.type contains 'press' %} -
    +
    {{ update.date | date: "%m/%y" }} - + {{ post.title | downcase }}
    @@ -98,10 +98,10 @@
    {% for job in site.data.jobs %} -
    +
    diff --git a/_layouts/people.html b/_layouts/people.html index c7c5b0d6..26f7db20 100644 --- a/_layouts/people.html +++ b/_layouts/people.html @@ -6,7 +6,7 @@ diff --git a/_layouts/project.html b/_layouts/project.html index 9363a051..20a04166 100644 --- a/_layouts/project.html +++ b/_layouts/project.html @@ -37,7 +37,7 @@

    {{ page.title }}
    - + {% if page.caption %}
    {{ page.caption }}
    @@ -59,7 +59,7 @@

    {{ page.title }} {% if page.updates%} -
    +

    Updates

    {% for update in page.updates %}
    diff --git a/_layouts/projects.html b/_layouts/projects.html index d42405a2..ac4d66fb 100644 --- a/_layouts/projects.html +++ b/_layouts/projects.html @@ -16,10 +16,10 @@

    {% endif %} -
    +
    {% assign projects = site.categories[post.title] | sample: 5 %} {% for post in projects %} -
  • {{ post.title }}
  • +
  • {{ post.title }}
  • {% endfor %}
    diff --git a/_layouts/strain.html b/_layouts/strain.html index 3e275634..6899a833 100644 --- a/_layouts/strain.html +++ b/_layouts/strain.html @@ -43,7 +43,9 @@

    » {{ post.title }}
    {% if post.image %} - + + + {% endif %} diff --git a/public/css/global.css b/public/css/global.css index 994cd432..4627a28f 100644 --- a/public/css/global.css +++ b/public/css/global.css @@ -57,61 +57,51 @@ img { strong { font-weight: bold; } - +.iconsolata { + font-family: "Inconsolata", monospace; +} /* Specific Elements */ header { margin-bottom: 1em; } - header a, header a:visited { - font-size: 1.4rem; - font-family: "Inconsolata", monospace; - } - header a#site-title, header a:visited#site-title { - text-transform: none; - color: black; - font-size: 1.4rem; - } - header > a { - font-family: "Inconsolata", monospace; - text-transform: lowercase; - font-size: 1.2rem; - } - header > a.active { - color: #F00; - } +header a, header a:visited { + font-size: 1.4rem; + font-family: "Inconsolata", monospace; +} +header a#site-title, header a:visited#site-title { + text-transform: none; + color: black; + font-size: 1.4rem; +} +header > a { + font-family: "Inconsolata", monospace; + text-transform: lowercase; + font-size: 1.2rem; +} +header > a.active { + color: #F00; +} .nav.active { color: red; } -#strain img, #feature img { - float: right; - margin: 0 0 1.5em 1.5em; +#feature img, +#strain img { max-width: 40%; - border: 2px solid #ddd; } -#strains { - margin: 0; - padding: 0; +#strains li:after { + content: ' \00BB '; } - #strains li { - display: inline; - } - #strains li:after { - content: ' \00BB '; - } - #strains li:last-child:after { - content: ""; - } - #strains li a { - font-family: "Inconsolata", monospace; - color: black; - } - -div.update-list { - margin-bottom: 0.5em; +#strains li:last-child:after { + content: ""; } +#strains li a { + color: black; +} + + div.update-list .update-link { color: gray; } @@ -145,17 +135,15 @@ div.update-list { padding: 1em 2em; } -div.update-list { - margin-bottom: 0.5em; + +div.update-list .update-link { + color: gray; +} +div.update-list .update-date { + font-family: "Inconsolata", monospace; + margin-left: -3em; + color: lightgray; } - div.update-list .update-link { - color: gray; - } - div.update-list .update-date { - font-family: "Inconsolata", monospace; - margin-left: -3em; - color: lightgray; - } .people-list li { display: inline; From 09e26a53946401cdaa166fc7d82971b2636bbbf2 Mon Sep 17 00:00:00 2001 From: Anne Date: Thu, 14 Jun 2018 01:52:27 +0400 Subject: [PATCH 3/3] updating header classes --- _includes/header.html | 4 +-- _layouts/event.html | 2 +- _layouts/events.html | 2 +- _layouts/impact.html | 8 ++--- _layouts/project.html | 2 +- _layouts/strain.html | 2 +- public/css/global.css | 73 +++++++++++++++++++------------------------ 7 files changed, 42 insertions(+), 51 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index e686e34e..7651472b 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,12 +1,12 @@
    - Columbia's Group for Experimental Methods in the Humanities + Columbia's Group for Experimental Methods in the Humanities {% assign sorted_pages = site.pages | sort:"name" %} {% for node in sorted_pages %} {% if node.title != null %} {% unless node.url contains 'archive' %} - {{ page.title }}

    Updates

    {% for update in page.updates %}
    - {{ update.date | date: "%m/%y" }} + {{ update.date | date: "%m/%y" }} {{ update.text | markdownify | remove: '

    ' | remove: '

    ' }}
    {% endfor %} diff --git a/_layouts/events.html b/_layouts/events.html index ce18151b..2df85f93 100644 --- a/_layouts/events.html +++ b/_layouts/events.html @@ -10,7 +10,7 @@
    {% for post in site.categories['events'] %} {% if post.title != null %} - {{ post.date | date_to_string }} {{ post.title }} + {{ post.date | date_to_string }} {{ post.title }} {% if post.type %} {{ post.type }} {% endif %} diff --git a/_layouts/impact.html b/_layouts/impact.html index 08f05dad..1f1e4b65 100644 --- a/_layouts/impact.html +++ b/_layouts/impact.html @@ -18,7 +18,7 @@ {% include date-split.html %} {% if update.type contains 'publication' or update.type contains 'paper' %}
    -
    {{ update.date | date: "%m/%y" }} +
    {{ update.date | date: "%m/%y" }} {{ post.title | downcase }}
    @@ -44,7 +44,7 @@ {% include date-split.html %} {% if update.type contains 'grant' or update.type contains 'award' %}
    -
    +
    {{ update.date | date: "%m/%y" }} {{ post.title | downcase }} @@ -72,7 +72,7 @@ {% include date-split.html %} {% if update.type contains 'talk' or update.type contains 'press' %}
    -
    +
    {{ update.date | date: "%m/%y" }} {{ post.title | downcase }} @@ -99,7 +99,7 @@
    {% for job in site.data.jobs %}
    -
    +
    {{ job.date }} Experimental Methods Group diff --git a/_layouts/project.html b/_layouts/project.html index 20a04166..4776bcfd 100644 --- a/_layouts/project.html +++ b/_layouts/project.html @@ -63,7 +63,7 @@

    {{ page.title }}

    Updates

    {% for update in page.updates %}
    - {{ update.date | date: "%m/%y" }} + {{ update.date | date: "%m/%y" }} {{ update.text | markdownify | remove: '

    ' | remove: '

    ' }}
    {% endfor %} diff --git a/_layouts/strain.html b/_layouts/strain.html index 6899a833..50abb755 100644 --- a/_layouts/strain.html +++ b/_layouts/strain.html @@ -44,7 +44,7 @@

    » {{ post.title }} {% if post.image %} - + {% endif %} diff --git a/public/css/global.css b/public/css/global.css index 4627a28f..b77776e2 100644 --- a/public/css/global.css +++ b/public/css/global.css @@ -2,6 +2,7 @@ @import url("https://fonts.googleapis.com/css?family=Source+Code+Pro"); @import url("https://fonts.googleapis.com/css?family=Inconsolata"); @import url("https://fonts.googleapis.com/css?family=Cardo"); + body { font-family: "Cardo", serif; max-width: 40em; @@ -9,7 +10,6 @@ body { margin: 1em auto; line-height: 1.3; } - p, a, div, li { font-size: 18px; line-height: 1.3; @@ -20,9 +20,9 @@ a, a:visited { color: DarkSlateGray; text-decoration: none; } - a:hover, a:visited:hover { - color: #1c2f2f; - } +a:hover, a:visited:hover { + color: #1c2f2f; +} ol { padding: 0; @@ -57,31 +57,31 @@ img { strong { font-weight: bold; } + + .iconsolata { font-family: "Inconsolata", monospace; } +.f4 { + font-size: 1.4rem; +} +.f3 { + font-size: 1.2rem; +} + + /* Specific Elements */ header { margin-bottom: 1em; } -header a, header a:visited { - font-size: 1.4rem; - font-family: "Inconsolata", monospace; -} -header a#site-title, header a:visited#site-title { - text-transform: none; + +header a#site-title, +header a:visited#site-title { color: black; - font-size: 1.4rem; -} -header > a { - font-family: "Inconsolata", monospace; - text-transform: lowercase; - font-size: 1.2rem; } header > a.active { color: #F00; } - .nav.active { color: red; } @@ -102,16 +102,11 @@ header > a.active { } - div.update-list .update-link { - color: gray; - } - div.update-list .update-date { - font-family: "Inconsolata", monospace; - color: lightgray; - } - -.event .date { - font-family: "Inconsolata", monospace; +div.update-list .update-link { + color: gray; +} +div.update-list .update-date { + color: lightgray; } #time { @@ -148,15 +143,11 @@ div.update-list .update-date { .people-list li { display: inline; } - .people-list li:after { - content: ", "; - } - .people-list li:last-child:after { - content: ""; - } - -.event .date { - font-family: "Inconsolata", monospace; +.people-list li:after { + content: ", "; +} +.people-list li:last-child:after { + content: ""; } #post .github-badges { @@ -168,11 +159,11 @@ div.update-list .update-date { position: relative; overflow: hidden; } - #gallery-box img { - max-width: 30%; - margin: .5em; - float: left; - } +#gallery-box img { + max-width: 30%; + margin: .5em; + float: left; +} footer { margin-top: 1em;