jekyll 1.0.4 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jekyll might be problematic. Click here for more details.

Files changed (90) hide show
  1. checksums.yaml +14 -6
  2. data/{CONTRIBUTING.md → CONTRIBUTING.markdown} +19 -1
  3. data/History.markdown +172 -85
  4. data/README.markdown +45 -0
  5. data/Rakefile +43 -18
  6. data/bin/jekyll +31 -1
  7. data/features/create_sites.feature +18 -0
  8. data/features/include_tag.feature +35 -0
  9. data/features/pagination.feature +28 -0
  10. data/features/post_excerpts.feature +50 -0
  11. data/features/step_definitions/jekyll_steps.rb +27 -11
  12. data/features/support/env.rb +9 -0
  13. data/jekyll.gemspec +32 -7
  14. data/lib/jekyll.rb +2 -1
  15. data/lib/jekyll/commands/new.rb +15 -3
  16. data/lib/jekyll/configuration.rb +23 -22
  17. data/lib/jekyll/converters/markdown/kramdown_parser.rb +4 -15
  18. data/lib/jekyll/convertible.rb +4 -0
  19. data/lib/jekyll/core_ext.rb +11 -0
  20. data/lib/jekyll/excerpt.rb +113 -0
  21. data/lib/jekyll/generators/pagination.rb +93 -23
  22. data/lib/jekyll/page.rb +1 -3
  23. data/lib/jekyll/post.rb +15 -55
  24. data/lib/jekyll/related_posts.rb +2 -1
  25. data/lib/jekyll/site.rb +33 -41
  26. data/lib/jekyll/stevenson.rb +25 -4
  27. data/lib/jekyll/tags/include.rb +46 -2
  28. data/lib/site_template/_config.yml +1 -0
  29. data/lib/site_template/css/main.css +0 -5
  30. data/site/_config.yml +1 -0
  31. data/site/_includes/docs_contents.html +12 -3
  32. data/site/_includes/docs_contents_mobile.html +7 -1
  33. data/site/_includes/news_contents.html +23 -0
  34. data/site/_includes/news_contents_mobile.html +11 -0
  35. data/site/_includes/news_item.html +24 -0
  36. data/site/_includes/primary-nav-items.html +4 -1
  37. data/site/_includes/top.html +2 -0
  38. data/site/_layouts/news.html +19 -0
  39. data/site/_layouts/news_item.html +27 -0
  40. data/site/_posts/2013-05-06-jekyll-1-0-0-released.markdown +23 -0
  41. data/site/_posts/2013-05-08-jekyll-1-0-1-released.markdown +27 -0
  42. data/site/_posts/2013-05-12-jekyll-1-0-2-released.markdown +28 -0
  43. data/site/_posts/2013-06-07-jekyll-1-0-3-released.markdown +25 -0
  44. data/site/_posts/2013-07-14-jekyll-1-1-0-released.markdown +27 -0
  45. data/site/_posts/2013-07-24-jekyll-1-1-1-released.markdown +31 -0
  46. data/site/css/style.css +125 -17
  47. data/site/docs/configuration.md +10 -1
  48. data/site/docs/contributing.md +21 -3
  49. data/site/docs/deployment-methods.md +2 -2
  50. data/site/docs/drafts.md +20 -0
  51. data/site/docs/extras.md +24 -3
  52. data/site/docs/github-pages.md +25 -0
  53. data/site/docs/history.md +150 -85
  54. data/site/docs/index.md +1 -17
  55. data/site/docs/installation.md +3 -2
  56. data/site/docs/migrations.md +2 -2
  57. data/site/docs/pagination.md +12 -0
  58. data/site/docs/plugins.md +97 -76
  59. data/site/docs/quickstart.md +32 -0
  60. data/site/docs/resources.md +0 -1
  61. data/site/docs/structure.md +15 -0
  62. data/site/docs/templates.md +26 -4
  63. data/site/docs/troubleshooting.md +22 -7
  64. data/site/docs/upgrading.md +6 -1
  65. data/site/docs/variables.md +12 -2
  66. data/site/feed.xml +36 -0
  67. data/site/freenode.txt +1 -0
  68. data/site/img/article-footer.png +0 -0
  69. data/site/img/footer-arrow.png +0 -0
  70. data/site/img/footer-logo.png +0 -0
  71. data/site/img/logo-2x.png +0 -0
  72. data/site/img/octojekyll.png +0 -0
  73. data/site/img/tube.png +0 -0
  74. data/site/img/tube1x.png +0 -0
  75. data/site/index.html +1 -1
  76. data/site/news/index.md +10 -0
  77. data/site/news/releases/index.md +10 -0
  78. data/test/source/+/foo.md +7 -0
  79. data/test/source/_includes/params.html +7 -0
  80. data/test/source/_posts/2013-07-22-post-excerpt-with-layout.markdown +23 -0
  81. data/test/test_configuration.rb +9 -0
  82. data/test/test_excerpt.rb +62 -0
  83. data/test/test_generated_site.rb +1 -1
  84. data/test/test_page.rb +9 -0
  85. data/test/test_pager.rb +31 -37
  86. data/test/test_post.rb +2 -1
  87. data/test/test_related_posts.rb +6 -1
  88. data/test/test_tags.rb +90 -0
  89. metadata +62 -23
  90. data/README.textile +0 -45
@@ -3,6 +3,7 @@
3
3
  <option value="">Navigate the docs…</option>
4
4
  <optgroup label="Getting started">
5
5
  <option value="{{ site.url }}/docs/home">Welcome</option>
6
+ <option value="{{ site.url }}/docs/quickstart">Quick-start guide</option>
6
7
  <option value="{{ site.url }}/docs/installation">Installation</option>
7
8
  <option value="{{ site.url }}/docs/usage">Basic Usage</option>
8
9
  <option value="{{ site.url }}/docs/structure">Directory structure</option>
@@ -11,6 +12,7 @@
11
12
  <optgroup label="Your Content">
12
13
  <option value="{{ site.url }}/docs/frontmatter">Front-matter</option>
13
14
  <option value="{{ site.url }}/docs/posts">Writing posts</option>
15
+ <option value="{{ site.url }}/docs/drafts">Working with drafts</option>
14
16
  <option value="{{ site.url }}/docs/pages">Creating pages</option>
15
17
  <option value="{{ site.url }}/docs/variables">Variables</option>
16
18
  <option value="{{ site.url }}/docs/migrations">Blog migrations</option>
@@ -27,10 +29,14 @@
27
29
  <option value="{{ site.url }}/docs/deployment-methods">Other methods</option>
28
30
  </optgroup>
29
31
  <optgroup label="Miscellaneous">
30
- <option value="{{ site.url }}/docs/contributing">Contributing</option>
31
32
  <option value="{{ site.url }}/docs/troubleshooting">Troubleshooting</option>
32
33
  <option value="{{ site.url }}/docs/sites">Sites using Jekyll</option>
33
34
  <option value="{{ site.url }}/docs/resources">Resources</option>
35
+ <option value="{{ site.url }}/docs/upgrading">Upgrading</option>
36
+ </optgroup>
37
+ <optgroup label="Meta">
38
+ <option value="{{ site.url }}/docs/contributing">Contributing</option>
39
+ <option value="{{ site.url }}/docs/history">History</option>
34
40
  </optgroup>
35
41
  </select>
36
42
  </div>
@@ -0,0 +1,23 @@
1
+ <div class="unit one-fifth hide-on-mobiles">
2
+ <aside>
3
+ <ul>
4
+ <li class="{% if page.title == 'News' %}current{% endif %}">
5
+ <a href="/news/">All News</a>
6
+ </li>
7
+ <li class="{% if page.title == 'Releases' %}current{% endif %}">
8
+ <a href="/news/releases/">Jekyll Releases</a>
9
+ </li>
10
+ </ul>
11
+ <h4>Recent Releases</h4>
12
+ <ul>
13
+ {% for post in site.posts limit:5 %}
14
+ <li class="{% if page.title == post.title %}current{% endif %}">
15
+ <a href="{{ post.url }}">Version {{ post.version }}</a>
16
+ </li>
17
+ {% endfor %}
18
+ <li>
19
+ <a href="/docs/history/">History »</a>
20
+ </li>
21
+ </ul>
22
+ </aside>
23
+ </div>
@@ -0,0 +1,11 @@
1
+ <div class="docs-nav-mobile unit whole show-on-mobiles">
2
+ <select onchange="if (this.value) window.location.href=this.value">
3
+ <option value="">Navigate the blog…</option>
4
+ <option value="/news/">Home</option>
5
+ <optgroup label="v1.x">
6
+ {% for post in site.posts %}
7
+ <option value="{{ post.url }}">{{ post.title }}</option>
8
+ {% endfor %}
9
+ </optgroup>
10
+ </select>
11
+ </div>
@@ -0,0 +1,24 @@
1
+ <article>
2
+ <h2>
3
+ <a href="{{ post.url }}">
4
+ {{ post.title }}
5
+ </a>
6
+ </h2>
7
+ <span class="post-category">
8
+ {% for category in post.categories %}
9
+ <span class="label">{{ category }}</span>
10
+ {% endfor %}
11
+ </span>
12
+ <div class="post-meta">
13
+ <span class="post-date">
14
+ {{ post.date | date_to_string }}
15
+ </span>
16
+ <a href="https://github.com/{{ post.author }}" class="post-author">
17
+ <img src="https://github.com/{{ post.author }}.png" class="avatar" />
18
+ {{ post.author }}
19
+ </a>
20
+ </div>
21
+ <p class="post-content">
22
+ {{ post.content }}
23
+ </p>
24
+ </article>
@@ -2,9 +2,12 @@
2
2
  <li class="{% if page.overview %}current{% endif %}">
3
3
  <a href="{{ site.url }}/">Overview</a>
4
4
  </li>
5
- <li class="{% unless page.overview %}current{% endunless %}">
5
+ <li class="{% if page.url contains '/docs/' %}current{% endif %}">
6
6
  <a href="{{ site.url }}/docs/home">Doc<span class="show-on-mobiles">s</span><span class="hide-on-mobiles">umentation</span></a>
7
7
  </li>
8
+ <li class="{% if page.author %}current{% endif %}">
9
+ <a href="{{ site.url }}/news">News</a>
10
+ </li>
8
11
  <li class="">
9
12
  <a href="https://github.com/mojombo/jekyll"><span class="hide-on-mobiles">View on </span>GitHub</a>
10
13
  </li>
@@ -4,6 +4,8 @@
4
4
  <meta charset="UTF-8">
5
5
  <title>{{ page.title }}</title>
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
+ <link rel="alternate" type="application/rss+xml" title="Jekyll • Simple, blog-aware, static sites - Feed" href="/feed.xml" />
8
+ <link rel="alternate" type="application/atom+xml" title="Recent commits to Jekyll’s master branch" href="https://github.com/mojombo/jekyll/commits/master.atom" />
7
9
  <link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'>
8
10
  <link href='http://fonts.googleapis.com/css?family=Arizonia' rel='stylesheet' type='text/css'>
9
11
  <link rel="stylesheet" href="{{ site.url }}/css/normalize.css" />
@@ -0,0 +1,19 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <section class="news">
6
+ <div class="grid">
7
+
8
+ {% include news_contents_mobile.html %}
9
+
10
+ <div class="unit four-fifths">
11
+ {{ content }}
12
+ </div>
13
+
14
+ {% include news_contents.html %}
15
+
16
+ <div class="clear"></div>
17
+
18
+ </div>
19
+ </section>
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: news
3
+ ---
4
+
5
+ <article>
6
+ <h2>
7
+ {{ page.title }}
8
+ <a href="{{ page.url }}" class="permalink" title="Permalink">∞</a>
9
+ </h2>
10
+ <span class="post-category">
11
+ {% for category in page.categories %}
12
+ <span class="label">{{ category }}</span>
13
+ {% endfor %}
14
+ </span>
15
+ <div class="post-meta">
16
+ <span class="post-date">
17
+ {{ page.date | date_to_string }}
18
+ </span>
19
+ <a href="https://github.com/{{ page.author }}" class="post-author">
20
+ <img src="https://github.com/{{ page.author }}.png" class="avatar" />
21
+ {{ page.author }}
22
+ </a>
23
+ </div>
24
+ <p class="post-content">
25
+ {{ content }}
26
+ </p>
27
+ </article>
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: news_item
3
+ title: "Jekyll 1.0.0 Released"
4
+ date: "2013-05-06 02:12:52 +0200"
5
+ author: parkr
6
+ version: 1.0.0
7
+ categories: [release]
8
+ ---
9
+
10
+ Hey! After many months of hard work by Jekyll's contributors, we're excited
11
+ to announce the first major release of the project in a long while. v1.0.0 is
12
+ finally here! While the list of improvements and bug fixes is [quite lengthy][history],
13
+ here are the highlights (thanks to [@benbalter](http://twitter.com/BenBalter) for the
14
+ examples and for compiling this list):
15
+
16
+ - Support for the Gist tag for easily embedding Gists ([example](https://gist.github.com/benbalter/5555251))
17
+ - Automatically generated post excerpts ([example](https://gist.github.com/benbalter/5555369))
18
+ - Save and preview drafts before publishing ([example](https://gist.github.com/benbalter/5555992))
19
+
20
+ Take a look at the [Upgrading][] page in the docs for more detailed information.
21
+
22
+ [history]: /docs/history/#100__20130506
23
+ [Upgrading]: /docs/upgrading/
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: news_item
3
+ title: "Jekyll 1.0.1 Released"
4
+ date: "2013-05-08 23:46:11 +0200"
5
+ author: parkr
6
+ version: 1.0.1
7
+ categories: [release]
8
+ ---
9
+
10
+ Hot on the trails of v1.0, v1.0.1 is out! Here are the highlights:
11
+
12
+ * Add newer `language-` class name prefix to code blocks ([#1037][])
13
+ * Commander error message now preferred over process abort with incorrect args ([#1040][])
14
+ * Do not force use of toc_token when using generate_toc in RDiscount ([#1048][])
15
+ * Make Redcarpet respect the pygments configuration option ([#1053][])
16
+ * Fix the index build with LSI ([#1045][])
17
+ * Don't print deprecation warning when no arguments are specified. ([#1041][])
18
+ * Add missing `</div>` to site template used by `new` subcommand, fixed typos in code ([#1032][])
19
+
20
+ See the [History][] page for more information on this release.
21
+
22
+ {% assign issue_numbers = "1037|1040|1048|1053|1045|1041|1032" | split: "|" %}
23
+ {% for issue in issue_numbers %}
24
+ [#{{ issue }}]: https://github.com/mojombo/jekyll/issues/{{ issue }}
25
+ {% endfor %}
26
+
27
+ [History]: /docs/history/#101__20130508
@@ -0,0 +1,28 @@
1
+ ---
2
+ layout: news_item
3
+ title: "Jekyll 1.0.2 Released"
4
+ date: "2013-05-12 14:45:00 +0200"
5
+ author: parkr
6
+ version: 1.0.2
7
+ categories: [release]
8
+ ---
9
+
10
+ v1.0.2 has some key bugfixes that optionally restore some behaviour from pre-1.0
11
+ releases, and fix some other annoying bugs:
12
+
13
+ * Backwards-compatibilize relative permalinks ([#1081][])
14
+ * Add `jekyll doctor` command to check site for any known compatibility problems ([#1081][])
15
+ * Deprecate old config `server_port`, match to `port` if `port` isn't set ([#1084][])
16
+ * Update pygments.rb and kramdon versions to 0.5.0 and 1.0.2, respectively ([#1061][], [#1067][])
17
+ * Fix issue when post categories are numbers ([#1078][])
18
+ * Add a `data-lang="<lang>"` attribute to Redcarpet code blocks ([#1066][])
19
+ * Catching that Redcarpet gem isn't installed ([#1059][])
20
+
21
+ See the [History][] page for more information on this release.
22
+
23
+ {% assign issue_numbers = "1059|1061|1066|1067|1078|1081|1084" | split: "|" %}
24
+ {% for issue in issue_numbers %}
25
+ [#{{ issue }}]: https://github.com/mojombo/jekyll/issues/{{ issue }}
26
+ {% endfor %}
27
+
28
+ [History]: /docs/history/#102__20130512
@@ -0,0 +1,25 @@
1
+ ---
2
+ layout: news_item
3
+ title: "Jekyll 1.0.3 Released"
4
+ date: "2013-06-07 21:02:13 +0200"
5
+ author: parkr
6
+ version: 1.0.3
7
+ categories: [release]
8
+ ---
9
+
10
+ v1.0.3 contains some key enhancements and bug fixes:
11
+
12
+ - Fail with non-zero exit code when MaRuKu errors ([#1190][]) or Liquid errors ([#1121][])
13
+ - Add support for private gists to `gist` tag ([#1189][])
14
+ - Add `--force` option to `jekyll new` ([#1115][])
15
+ - Fix compatibility with `exclude` and `include` with pre-1.0 Jekyll ([#1114][])
16
+ - Fix pagination issue regarding `File.basename` and `page:num` ([#1063][])
17
+
18
+ See the [History][] page for more information on this release.
19
+
20
+ {% assign issue_numbers = "1190|1121|1189|1115|1114|1063" | split: "|" %}
21
+ {% for issue in issue_numbers %}
22
+ [#{{ issue }}]: https://github.com/mojombo/jekyll/issues/{{ issue }}
23
+ {% endfor %}
24
+
25
+ [History]: /docs/history/#103__20130607
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: news_item
3
+ title: "Jekyll 1.1.0 Released"
4
+ date: "2013-07-14 19:38:02 +0200"
5
+ author: parkr
6
+ version: 1.1.0
7
+ categories: [release]
8
+ ---
9
+
10
+ After a month of hard work, the Jekyll core team is excited to announce the release of
11
+ Jekyll v1.1.0! This latest release of Jekyll brings some really exciting new additions:
12
+
13
+ - Add `docs` subcommand to read Jekyll's docs when offline. ([#1046][])
14
+ - Support passing parameters to templates in `include` tag ([#1204][])
15
+ - Add support for Liquid tags to post excerpts ([#1302][])
16
+ - Fix pagination for subdirectories ([#1198][])
17
+ - Provide better error reporting when generating sites ([#1253][])
18
+ - Latest posts first in non-LSI `related_posts` ([#1271][])
19
+
20
+ See the [GitHub Release][] page for more a more detailed changelog for this release.
21
+
22
+ {% assign issue_numbers = "1046|1204|1302|1198|1171|1118|1098|1215|1253|1271" | split: "|" %}
23
+ {% for issue in issue_numbers %}
24
+ [#{{ issue }}]: https://github.com/mojombo/jekyll/issues/{{ issue }}
25
+ {% endfor %}
26
+
27
+ [GitHub Release]: https://github.com/mojombo/jekyll/releases/tag/v1.1.0
@@ -0,0 +1,31 @@
1
+ ---
2
+ layout: news_item
3
+ title: "Jekyll 1.1.1 Released"
4
+ date: "2013-07-24 22:24:14 +0200"
5
+ author: parkr
6
+ version: 1.1.1
7
+ categories: [release]
8
+ ---
9
+
10
+
11
+ Coming just 10 days after the release of v1.1.0, v1.1.1 is out with a patch for the nasty
12
+ excerpt inception bug ([#1339][]) and non-zero exit codes for invalid commands
13
+ ([#1338][]).
14
+
15
+ To all those affected by the [strange excerpt bug in v1.1.0][#1321], I'm sorry. I think we
16
+ have it all patched up and it should be deployed to [GitHub Pages][gh_pages] in the next
17
+ couple weeks. Thank you for your patience!
18
+
19
+ If you're checking out v1.1.x for the first time, definitely check out [what shipped with
20
+ v1.1.0!][v1_1_0]
21
+
22
+ See the [GitHub Release][] page for more a more detailed changelog for this release.
23
+
24
+ {% assign issue_numbers = "1339|1338|1321" | split: "|" %}
25
+ {% for issue in issue_numbers %}
26
+ [{{ issue }}]: https://github.com/mojombo/jekyll/issues/{{ issue }}
27
+ {% endfor %}
28
+
29
+ [GitHub Release]: https://github.com/mojombo/jekyll/releases/tag/v1.1.1
30
+ [gh-pages]: http://pages.github.com
31
+ [v1_1_0]: https://github.com/mojombo/jekyll/releases/tag/v1.1.0
@@ -104,7 +104,7 @@ nav li {
104
104
  text-transform: uppercase;
105
105
  font-size: 14px;
106
106
  font-weight: 800;
107
- padding: 5px 0;
107
+ padding: 5px;
108
108
  border-radius: 5px;
109
109
  }
110
110
 
@@ -117,7 +117,7 @@ nav li {
117
117
 
118
118
  .mobile-nav li {
119
119
  display: table-cell;
120
- width: 33.3%;
120
+ width: 25%;
121
121
  padding: 8px;
122
122
  }
123
123
 
@@ -126,7 +126,7 @@ nav li {
126
126
  text-align: right;
127
127
  }
128
128
  }
129
- @media (max-width: 720px){
129
+ @media (max-width: 830px){
130
130
  .main-nav .show-on-mobiles {
131
131
  display: inline;
132
132
  }
@@ -359,40 +359,44 @@ body > footer a:hover img {
359
359
  }
360
360
  }
361
361
 
362
- /* Documentation */
362
+ /* Article - Used for both docs and news */
363
363
 
364
- .docs .content {
365
- padding: 0;
366
- }
367
364
 
368
- .docs article {
365
+ article {
369
366
  background: #444;
370
367
  border-radius: 10px;
371
368
  padding: 20px;
372
369
  margin: 0 10px;
373
370
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
374
- min-height: 800px;
375
371
  font-size: 16px;
376
372
  }
377
373
 
374
+ @media (max-width: 480px){
375
+ article ul {
376
+ padding-left: 20px;
377
+ }
378
+ }
379
+
378
380
  @media (max-width: 568px){
379
- .docs article {
381
+ article {
380
382
  margin: 0;
381
383
  }
382
384
  }
383
385
 
384
386
  @media (min-width: 768px){
385
- .docs article {
387
+ article {
386
388
  padding: 40px 40px 30px;
387
389
  font-size: 21px;
388
390
  }
389
391
  }
390
392
 
391
- .docs aside {
393
+ /* Right-side nav - used by both docs and news */
394
+
395
+ aside {
392
396
  padding-top: 30px;
393
397
  }
394
398
 
395
- .docs aside h4 {
399
+ aside h4 {
396
400
  text-transform: uppercase;
397
401
  font-size: 14px;
398
402
  font-weight: 700;
@@ -402,20 +406,24 @@ body > footer a:hover img {
402
406
  border-bottom: 1px solid #c00;
403
407
  }
404
408
 
405
- .docs aside ul {
409
+ aside ul {
406
410
  padding-left: 0;
407
411
  }
408
412
 
409
- .docs aside li {
413
+ aside ul:first-child {
414
+ margin-top: 0;
415
+ }
416
+
417
+ aside li {
410
418
  list-style-type: none;
411
419
  }
412
420
 
413
- .docs aside li a {
421
+ aside li a {
414
422
  font-size: 16px;
415
423
  position: relative
416
424
  }
417
425
 
418
- .docs aside li.current a:before {
426
+ aside li.current a:before {
419
427
  content: "";
420
428
  border-color: transparent transparent transparent #444;
421
429
  border-style: solid;
@@ -427,6 +435,16 @@ body > footer a:hover img {
427
435
  left: -30px;
428
436
  }
429
437
 
438
+ /* Documentation */
439
+
440
+ .docs article {
441
+ min-height: 800px;
442
+ }
443
+
444
+ .docs .content {
445
+ padding: 0;
446
+ }
447
+
430
448
  .section-nav {
431
449
  text-align: center;
432
450
  padding-top: 40px;
@@ -499,6 +517,96 @@ body > footer a:hover img {
499
517
  width: 100%;
500
518
  }
501
519
 
520
+ /* News */
521
+
522
+ article h2:first-child {
523
+ margin-top: 0;
524
+ }
525
+
526
+ .post-category,
527
+ .post-meta {
528
+ display: inline-block;
529
+ vertical-align: middle;
530
+ font-size: .8em;
531
+ }
532
+
533
+ .post-category {
534
+ display: inline-block;
535
+ margin-left: -30px;
536
+ padding: 6px 10px 8px;
537
+ padding-left: 50px;
538
+ border-radius: 0 5px 5px 0;
539
+ position: relative;
540
+ box-shadow: 0 1px 5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.3);
541
+ background: #9e2812;
542
+ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzllMjgxMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM2ZjBkMGQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
543
+ background: -moz-linear-gradient(top, #9e2812 0%, #6f0d0d 100%);
544
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9e2812), color-stop(100%,#6f0d0d));
545
+ background: -webkit-linear-gradient(top, #9e2812 0%,#6f0d0d 100%);
546
+ background: -o-linear-gradient(top, #9e2812 0%,#6f0d0d 100%);
547
+ background: -ms-linear-gradient(top, #9e2812 0%,#6f0d0d 100%);
548
+ background: linear-gradient(to bottom, #9e2812 0%,#6f0d0d 100%);
549
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9e2812', endColorstr='#6f0d0d',GradientType=0 );
550
+ }
551
+
552
+ .label {
553
+ float: left;
554
+ text-transform: uppercase;
555
+ font-weight: bold;
556
+ text-shadow: 0 -1px 0 rgba(0,0,0,.5);
557
+ }
558
+
559
+ @media (max-width: 568px){
560
+ .post-category {
561
+ padding-left: 30px;
562
+ }
563
+ }
564
+
565
+ @media (min-width: 768px){
566
+ .post-category {
567
+ margin-left: -50px;
568
+ }
569
+ }
570
+
571
+ .post-category:before {
572
+ content: "";
573
+ position: absolute;
574
+ top: -10px;
575
+ left: 0px;
576
+ border-color: transparent #6f0d0d #6f0d0d transparent;
577
+ border-style: solid;
578
+ border-width: 5px;
579
+ width: 0;
580
+ height: 0;
581
+ }
582
+
583
+ .avatar {
584
+ width: 24px;
585
+ height: 24px;
586
+ border-radius: 3px;
587
+ display: inline-block;
588
+ vertical-align: middle;
589
+ }
590
+
591
+ .post-meta {
592
+ padding: 5px 0;
593
+ color: #aaa;
594
+ font-weight: 600;
595
+ text-shadow: 0 -1px 0 #000;
596
+ }
597
+
598
+ .post-date,
599
+ .post-author {
600
+ margin-left: 10px;
601
+ }
602
+
603
+ .news article + article {
604
+ margin-top: -10px;
605
+ border-radius: 0 0 10px 10px;
606
+ border-top: 1px solid #555;
607
+ box-shadow: 0 -1px 0 #2f2f2f;
608
+ }
609
+
502
610
  /* Code Highlighting */
503
611
 
504
612