diff --git a/_config.yml b/_config.yml index 2c726d1..744ea03 100644 --- a/_config.yml +++ b/_config.yml @@ -14,7 +14,7 @@ github_username: sipp11 markdown: kramdown permalink: /:year/:month/:day/:title/ -paginate: 8 +paginate: 5 paginate_path: "post/page/:num/" sass: diff --git a/archive.html b/archive.html new file mode 100644 index 0000000..a744d34 --- /dev/null +++ b/archive.html @@ -0,0 +1,41 @@ +--- +layout: default +title : Archive +--- +
+{% assign posts_collate = site.posts %} + +{% for post in posts_collate %} + {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} + {% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %} + {% capture this_month_num %}{{ post.date | date: "%m" }}{% endcapture %} + {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %} + {% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %} + + {% if forloop.first %} +

{{this_year}}

+

{{this_month}}

+ + {% else %} + {% if this_year != next_year %} + +

{{next_year}}

+

{{next_month}}

+ +

{{next_month}}

+
\ No newline at end of file diff --git a/css/main.scss b/css/main.scss index bc4a7ed..d9e1f59 100755 --- a/css/main.scss +++ b/css/main.scss @@ -28,6 +28,89 @@ $on-palm: 600px; $on-laptop: 800px; +form#cse-search-box { + display: inline; +} + +form#cse-search-box input { + font-size: $base-font-size; + font-family: $base-font-family; + color: $brand-color; + max-width:200px; + border-bottom-color: $grey-color-light; + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; + border-bottom-style: solid; + border-bottom-width: 1px; + border-collapse: collapse; + border-image-outset: 0 0 0 0; + border-image-repeat: stretch stretch; + border-image-slice: 100% 100% 100% 100%; + border-image-source: none; + border-image-width: 1 1 1 1; + border-left-color: rgb(85, 85, 85); + border-left-style: none; + border-left-width: 0px; + border-right-color: rgb(85, 85, 85); + border-right-style: none; + border-right-width: 0px; + border-spacing: 0px 0px; + border-top-color: rgb(85, 85, 85); + border-top-left-radius: 0px; + border-top-right-radius: 0px; + border-top-style: none; + border-top-width: 0px; + box-shadow: rgba(0, 0, 0, 0.075) 0px 0px 0px 0px inset; + margin: 0px; + padding: 4px 6px; + text-align: start; + transition-delay: 0s, 0s; + transition-duration: 0.2s, 0.2s; + transition-property: border, box-shadow; + transition-timing-function: cubic-bezier(0, 0, 1, 1), cubic-bezier(0, 0, 1, 1); + vertical-align: middle; + -moz-border-bottom-colors: none; + -moz-border-left-colors: none; + -moz-border-right-colors: none; + -moz-border-top-colors: none; +} + +ul.post-list>li { + display: block; + padding-top: 1em; + padding-bottom: 1em; + border-bottom: 1px solid $grey-color-light; +} + +ul.tag_box { + list-style: none; +} + +ul.tag_box>li { + display: inline-block; +} + +span.label-success { + background-color: $grey-color-light; +} + +span.label-success a, span.label-success a:hover { + color: $text-color; + text-decoration: none; +} + +span.label { + display: inline; + padding: 0.2em 0.6em 0.3em; + font-size: 75%; + font-weight: 700; + line-height: 1; + color: $text-color; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: 0.25em; +} // Using media queries with like this: // @include media-query($on-palm) { diff --git a/index.html b/index.html index bb78566..ed970e4 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,8 @@ layout: default
  • {{ post.date | date: "%b %-d, %Y" }} • {{ post.categories | array_to_sentence_string }} • comments

    {{ post.title }}

    + + {{ post.content }}
  • {% endfor %} diff --git a/tags.html b/tags.html new file mode 100644 index 0000000..a46f156 --- /dev/null +++ b/tags.html @@ -0,0 +1,29 @@ +--- +layout: default +title: Tags +--- + + + +{% for tag in site.categories %} +

    {{ tag[0] }}

    + +{% endfor %}