diff --git a/_layouts/index.html b/_layouts/index.html index b19a66c3dcb8ae08ee8702ec7568a9f9fc8d0914..2d96daa7cfd3dcaf07a736850a0c9a225944aa95 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -72,13 +72,13 @@ layout: default {% for post in paginator.posts %} <div class="post"> - <a class="post-title" href="{{ post.url | relative_url }}">{{ post.title }}</a> - <br /> - <span class="post-date">Published on: {{ post.date | date: '%B %d, %Y' }}</span> + <a class="post-title" href="{{ post.url | relative_url }}">{{ post.title }}</a> <div class="content"> {{ post.content | strip_html | normalize_whitespace | truncate: 220 }} <a href="{{ post.url | relative_url }}">(read more)</a> </div> + + <span class="post-date">Published on: {{ post.date | date: '%B %d, %Y' }}</span> </div> {% endfor %} diff --git a/_layouts/news.html b/_layouts/news.html new file mode 100644 index 0000000000000000000000000000000000000000..2227043d77d5ea1ead4771202585490c094ffbf9 --- /dev/null +++ b/_layouts/news.html @@ -0,0 +1,23 @@ +--- +layout: default +--- + +<article class="body-wrapper margin-wrapper"> + <div id="left-column"> + <h2>{{ page.section }}</h2> + <ul> + {%- for link in page.pages -%} + <li> + <a href="{{ link.href | relative_url }}" + class="{%- if link.active -%}active {%- endif -%}{%- if link.smaller -%}smaller {%- endif -%}"> + {{ link.title }} + </a> + </li> + {%- endfor -%} + </ul> + </div> + + <div id="right-column"> + {{ content }} + </div> +</article> diff --git a/_sass/elixir/_helpers.scss b/_sass/elixir/_helpers.scss index 649bc14c44518676b99c7555106093fbef4a3977..2aaf91a32c37111a4a9a4dad798a72c714a6a059 100644 --- a/_sass/elixir/_helpers.scss +++ b/_sass/elixir/_helpers.scss @@ -13,4 +13,8 @@ h1.no-caps { text-transform: unset; +} + +.no-underline { + text-decoration: none; } \ No newline at end of file diff --git a/_sass/elixir/_layout.scss b/_sass/elixir/_layout.scss index 39e921aae0881f4409538113fe4b9efa23c10e0b..92558516e36b6ad49e8c6b60ede989f143e12a64 100644 --- a/_sass/elixir/_layout.scss +++ b/_sass/elixir/_layout.scss @@ -178,9 +178,11 @@ div.post { margin-bottom: 30px; .post-title { - font-size: 20px; + font-size: 14pt; text-decoration: none; font-weight: 600; + display: block; + margin-bottom: 5px; } .content { @@ -191,7 +193,12 @@ div.post { .post-date { font-size: smaller; font-weight: 200; - color: #555; + color: #3c3c3c; + display: block; + margin-top: 8px; + padding-top: 2px; + padding-bottom: 1px; + border-top: solid 1px #fbf4f4; } } diff --git a/elixir-theme.gemspec b/elixir-theme.gemspec index 0aa4ed1b6739f862aab4e2f928e7396a89ecd603..558859e0175aa41a32929216453840e16e074137 100644 --- a/elixir-theme.gemspec +++ b/elixir-theme.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "jekyll-elixir-theme" - spec.version = "0.9.20" + spec.version = "0.9.21" spec.authors = ["jacek.lebioda"] spec.email = ["jacek.lebioda@uni.lu"]