jekyll-theme-polar 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +21 -0
  3. data/README.md +6 -0
  4. data/_config.yml +101 -0
  5. data/_includes/article/comment.html +5 -0
  6. data/_includes/article/info.html +8 -0
  7. data/_includes/article/origin.html +13 -0
  8. data/_includes/article/paginate.html +3 -0
  9. data/_includes/article/people.html +13 -0
  10. data/_includes/article/person_card.html +27 -0
  11. data/_includes/article/read_more.html +11 -0
  12. data/_includes/article/revise.html +8 -0
  13. data/_includes/article/title.html +9 -0
  14. data/_includes/article.html +19 -0
  15. data/_includes/config/date/long.html +12 -0
  16. data/_includes/config/date/short.html +17 -0
  17. data/_includes/config/empty/about.md +7 -0
  18. data/_includes/config/empty/common_listing.md +7 -0
  19. data/_includes/config/empty/homepage.md +7 -0
  20. data/_includes/config/empty/unconfig.md +7 -0
  21. data/_includes/display/date.html +19 -0
  22. data/_includes/display/year_range.html +11 -0
  23. data/_includes/footer.html +9 -0
  24. data/_includes/header.html +20 -0
  25. data/_includes/listing/archive.html +20 -0
  26. data/_includes/listing/docs.html +13 -0
  27. data/_includes/listing/posts.html +18 -0
  28. data/_includes/listing/projects.html +17 -0
  29. data/_includes/listing/tags.html +47 -0
  30. data/_includes/listing.html +9 -0
  31. data/_includes/menu/archive_tags.html +8 -0
  32. data/_includes/menu/demo_source.html +14 -0
  33. data/_includes/meta/base.html +7 -0
  34. data/_includes/meta/color.html +2 -0
  35. data/_includes/meta/facebook_og.html +16 -0
  36. data/_includes/meta/icon.html +2 -0
  37. data/_includes/meta/twitter_card.html +8 -0
  38. data/_includes/meta/verification.html +3 -0
  39. data/_includes/paginate/base.html +19 -0
  40. data/_includes/paginate/multiple.html +13 -0
  41. data/_includes/paginate/single.html +13 -0
  42. data/_includes/postload.html +2 -0
  43. data/_includes/preload.html +11 -0
  44. data/_includes/script/analytics.html +10 -0
  45. data/_includes/script/disqus.html +15 -0
  46. data/_includes/script/force_https.html +5 -0
  47. data/_includes/script/mathjax.html +6 -0
  48. data/_includes/script/onload.html +19 -0
  49. data/_includes/style/fonts.html +31 -0
  50. data/_includes/style/load_first.html +1 -0
  51. data/_includes/variables/article.liquid +19 -0
  52. data/_includes/variables/color.liquid +12 -0
  53. data/_includes/variables/fonts.liquid +21 -0
  54. data/_includes/variables/header.liquid +10 -0
  55. data/_includes/variables/homepage.liquid +13 -0
  56. data/_includes/variables/meta.liquid +71 -0
  57. data/_includes/variables/unconfig.liquid +5 -0
  58. data/_layouts/compress.html +10 -0
  59. data/_layouts/default.html +21 -0
  60. data/_layouts/doc.html +8 -0
  61. data/_layouts/empty/about.html +16 -0
  62. data/_layouts/empty/archive.html +17 -0
  63. data/_layouts/empty/docs.html +16 -0
  64. data/_layouts/empty/homepage.html +26 -0
  65. data/_layouts/empty/posts.html +18 -0
  66. data/_layouts/empty/projects.html +16 -0
  67. data/_layouts/empty/tags.html +17 -0
  68. data/_layouts/page.html +5 -0
  69. data/_layouts/post.html +10 -0
  70. data/_layouts/project.html +9 -0
  71. data/_sass/_article.scss +83 -0
  72. data/_sass/_base.scss +123 -0
  73. data/_sass/_classes.scss +249 -0
  74. data/_sass/_footer.scss +4 -0
  75. data/_sass/_header.scss +41 -0
  76. data/_sass/_mixins.scss +15 -0
  77. data/_sass/_variables.scss +35 -0
  78. data/_sass/highlight/custom.scss +4 -0
  79. data/_sass/highlight/github.scss +209 -0
  80. data/_sass/highlight/monokai.scss +210 -0
  81. data/_sass/normalize.scss +424 -0
  82. data/assets/AUTO_INSTALL/archive.html +6 -0
  83. data/assets/AUTO_INSTALL/docs.html +6 -0
  84. data/assets/AUTO_INSTALL/feed.xml +31 -0
  85. data/assets/AUTO_INSTALL/index.md +5 -0
  86. data/assets/AUTO_INSTALL/posts.html +8 -0
  87. data/assets/AUTO_INSTALL/projects.html +6 -0
  88. data/assets/AUTO_INSTALL/tags.html +6 -0
  89. data/assets/img/404.png +0 -0
  90. data/assets/img/north-pole.png +0 -0
  91. data/assets/img/polar-bear.png +0 -0
  92. data/assets/img/tired-bear.png +0 -0
  93. data/assets/style.scss +25 -0
  94. metadata +177 -0
@@ -0,0 +1,13 @@
1
+ {% if site.data.theme.navigation.paginate.older == 'left' %}
2
+ {% assign left_path = page.previous.url %}
3
+ {% assign left_text = page.previous.title %}
4
+ {% assign right_path = page.next.url %}
5
+ {% assign right_text = page.next.title %}
6
+ {% else %}
7
+ {% assign left_path = page.next.url %}
8
+ {% assign left_text = page.next.title %}
9
+ {% assign right_path = page.previous.url %}
10
+ {% assign right_text = page.previous.title %}
11
+ {% endif %}
12
+ {% assign center_text = "" %}
13
+ {% include paginate/base.html %}
@@ -0,0 +1,2 @@
1
+ {% include script/analytics.html %}
2
+ {% include style/fonts.html %}
@@ -0,0 +1,11 @@
1
+ {% include script/force_https.html %}
2
+ {% include variables/meta.liquid %}
3
+ {% include meta/base.html %}
4
+ {% include meta/icon.html %}
5
+ {% include meta/color.html %}
6
+ {% include meta/verification.html %}
7
+ {% include meta/facebook_og.html %}
8
+ {% include meta/twitter_card.html %}
9
+ {% include style/load_first.html %}
10
+ {% include script/onload.html %}
11
+ {% include script/mathjax.html %}
@@ -0,0 +1,10 @@
1
+ {% if jekyll.environment != "development" and site.google.analytics %}
2
+ <script>
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
7
+ ga('create', '{{ site.google.analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+ </script>
10
+ {% endif %}
@@ -0,0 +1,15 @@
1
+ {% if jekyll.environment != "development" and site.disqus.username %}
2
+ <div id="disqus_thread"></div>
3
+ <script>
4
+ var disqus_config = function () {
5
+ this.page.url = '{{ page.url | prepend: site.baseurl | prepend: site.url }}';
6
+ this.page.identifier = '{{ page.id | prepend: site.baseurl }}';
7
+ };
8
+ (function() {
9
+ var d = document, s = d.createElement('script');
10
+ s.src = '//{{ site.disqus.username }}.disqus.com/embed.js';
11
+ s.setAttribute('data-timestamp', +new Date());
12
+ (d.head || d.body).appendChild(s);
13
+ })();
14
+ </script>
15
+ {% endif %}
@@ -0,0 +1,5 @@
1
+ {% if site.url contains 'https://' %}
2
+ <script>
3
+ if ("{{ site.url | split: '://' | last }}" == window.location.host && window.location.protocol != "https:") window.location.protocol = "https";
4
+ </script>
5
+ {% endif %}
@@ -0,0 +1,6 @@
1
+ {% if site.mathjax %}
2
+ <script>
3
+ MathJax = {{ site.data.mathjax | jsonify }};
4
+ </script>
5
+ <script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
6
+ {% endif %}
@@ -0,0 +1,19 @@
1
+ <script>
2
+ window.onload = function() {
3
+ var ln = document.getElementsByClassName('linenos');
4
+ for (var i=0; i<ln.length; i++) {
5
+ ln[i].className += " flex";
6
+ var p1 = ln[i].getElementsByTagName('pre')[0];
7
+ p1.className += " flexitem fill";
8
+ var c1 = p1.getElementsByTagName('code')[0];
9
+ var ta = new Array((c1.innerHTML.match(/\n/g)||[]).length);
10
+ for (var j=0; j<ta.length; j++) { ta[j] = j+1; }
11
+ var p0 = document.createElement('pre');
12
+ p0.className = "highlight text-right sep-right";
13
+ var c0 = document.createElement('code');
14
+ c0.innerHTML = ta.join('\n');
15
+ p0.appendChild(c0)
16
+ ln[i].insertBefore(p0, p1);
17
+ }
18
+ }
19
+ </script>
@@ -0,0 +1,31 @@
1
+ {% capture NOOUT %}
2
+ {% assign specs = site.empty_array %}
3
+ {% assign faces = site.empty_array %}
4
+ {% assign types = "head,body,mono" | split: "," %}
5
+ {% for type in types %}
6
+ {% for family in site.data.theme.font[type].families %}
7
+ {% capture spec %}
8
+ {{ family.name | replace: " ", "+" }}
9
+ {% if family.weight %}
10
+ : {{ family.weight }}
11
+ {% endif %}
12
+ {% endcapture %}
13
+ {% assign faces = faces | push: spec %}
14
+ {% endfor %}
15
+ {% endfor %}
16
+ {% assign faces = faces | join: "|" | prepend: "family=" %}
17
+ {% assign specs = specs | push: faces %}
18
+ {% assign langs = site.empty_array %}
19
+ {% for lang in site.data.theme.font.languages %}
20
+ {% assign langs = langs | push: lang %}
21
+ {% endfor %}
22
+ {% if langs %}
23
+ {% assign langs = langs | join: "," | prepend: "subset=" %}
24
+ {% assign specs = specs | push: langs %}
25
+ {% endif %}
26
+ {% assign specs = specs | join: "&" | normalize_whitespace | remove: " " %}
27
+ {% endcapture %}
28
+
29
+ <style>
30
+ @import url("//fonts.googleapis.com/css?{{ specs }}");
31
+ </style>
@@ -0,0 +1 @@
1
+ <link rel="stylesheet" href="{{ "/assets/style.css" | prepend: site.baseurl }}" />
@@ -0,0 +1,19 @@
1
+ {% capture NOOUT %}
2
+ {% assign article-date = include.display_date | default: include.date %}
3
+ {% if include.display_date %}
4
+ {% assign article-format = 'plain' %}
5
+ {% else %}
6
+ {% case site.data.theme.date.allow_long %}
7
+ {% when 'never' %}
8
+ {% assign article-format = 'short' %}
9
+ {% when 'always' %}
10
+ {% assign article-format = 'long' %}
11
+ {% else %}
12
+ {% if include.url %}
13
+ {% assign article-format = 'short' %}
14
+ {% else %}
15
+ {% assign article-format = 'long' %}
16
+ {% endif %}
17
+ {% endcase %}
18
+ {% endif %}
19
+ {% endcapture %}
@@ -0,0 +1,12 @@
1
+ {% capture NOOUT %}
2
+ {% capture make_color %}
3
+ $palette: "{{ site.data.theme.color.palette }}";
4
+ @import "variables";
5
+ * {
6
+ color: $major-color;
7
+ }
8
+ {% endcapture %}
9
+ {% assign make_color = make_color | scssify | strip %}
10
+ {% assign make_size = make_color | size | minus: 9 %}
11
+ {% assign color-main = make_color | slice: 8, make_size %}
12
+ {% endcapture %}
@@ -0,0 +1,21 @@
1
+ {% capture NOOUT %}
2
+ {% assign types = "head body mono" | split: " " %}
3
+ {% for type in types %}
4
+ {% assign specs = site.empty_array %}
5
+ {% for font in site.data.theme.font[type].families %}
6
+ {% assign name = font.name | prepend: '"' | append: '"' %}
7
+ {% assign specs = specs | push: name %}
8
+ {% endfor %}
9
+ {% assign specs = specs | push: site.data.theme.font.head.default | join: ", " %}
10
+ {% case type %}
11
+ {% when "head" %}
12
+ {% assign font_head = specs %}
13
+ {% when "body" %}
14
+ {% assign font_body = specs %}
15
+ {% when "mono" %}
16
+ {% assign font_mono = specs %}
17
+ {% endcase %}
18
+ {% endfor %}
19
+ {% assign font_mono_size = site.data.theme.font.mono.size %}
20
+ {% assign font_mono_line_height = site.data.theme.font.mono.line-height %}
21
+ {% endcapture %}
@@ -0,0 +1,10 @@
1
+ {% capture NOOUT %}
2
+ {% include variables/unconfig.liquid %}
3
+ {% if unconfig-empty %}
4
+ {% assign header-title = site.data.theme.text.unconfig.title %}
5
+ {% assign header-description = site.data.theme.text.unconfig.description %}
6
+ {% else %}
7
+ {% assign header-title = site.title %}
8
+ {% assign header-description = site.description %}
9
+ {% endif %}
10
+ {% endcapture %}
@@ -0,0 +1,13 @@
1
+ {% capture NOOUT %}
2
+ {% assign homepage-empty = true %}
3
+ {% for collection in site.collections %}
4
+ {% if collection.docs.size != 0 %}
5
+ {% assign homepage-empty = false %}
6
+ {% break %}
7
+ {% endif %}
8
+ {% endfor %}
9
+ {% assign striped_content = content | normalize_whitespace %}
10
+ {% if striped_content.size != 0 %}
11
+ {% assign homepage-announcement = true %}
12
+ {% endif %}
13
+ {% endcapture %}
@@ -0,0 +1,71 @@
1
+ {% capture NOOUT %}
2
+ {% include variables/unconfig.liquid %}
3
+
4
+ {% assign meta-html_title = site.empty_array %}
5
+ {% if page.title %}
6
+ {% assign meta-html_title = meta-html_title | push: page.title %}
7
+ {% assign meta-html_title = meta-html_title | push: site.data.theme.text.meta.title_sep %}
8
+ {% endif %}
9
+ {% if unconfig-empty %}
10
+ {% assign meta-html_title = meta-html_title | push: site.data.theme.text.unconfig.title %}
11
+ {% else %}
12
+ {% assign meta-html_title = meta-html_title | push: site.title %}
13
+ {% endif %}
14
+ {% assign meta-html_title = meta-html_title | join: ' ' %}
15
+
16
+ {% if page.title %}
17
+ {% assign meta-title = page.title %}
18
+ {% else %}
19
+ {% assign meta-title = site.title | default: site.data.theme.text.unconfig.title %}
20
+ {% endif %}
21
+
22
+ {% if page.excerpt %}
23
+ {% assign meta-description = page.excerpt | strip_html | strip_newlines | truncate: 160 %}
24
+ {% else %}
25
+ {% assign meta-description = site.description %}
26
+ {% endif %}
27
+
28
+ {% assign meta-url = page.url | replace: 'index.html','' | prepend: site.baseurl | prepend: site.url %}
29
+
30
+ {% if page.url == '/about.html' %}
31
+ {% assign meta-type = 'profile' %}
32
+ {% elsif page.layout == 'post' %}
33
+ {% assign meta-type = 'article' %}
34
+ {% elsif page.layout == 'project' or page.layout == 'doc' %}
35
+ {% assign meta-type = 'product' %}
36
+ {% else %}
37
+ {% assign meta-type = 'website' %}
38
+ {% endif %}
39
+
40
+ {% assign meta-img = page.thumbnail %}
41
+
42
+ {% unless meta-img %}
43
+ {% assign meta-img = content | split: 'person-card' | first | split: '<img ' %}
44
+ {% assign meta-img = meta-img[1] | split: 'src="' %}
45
+ {% assign meta-img = meta-img[1] | split: '"' | first %}
46
+ {% endunless %}
47
+
48
+ {% unless meta-img %}
49
+ {% assign meta-vid = content | split: '<iframe ' %}
50
+ {% assign meta-vid = meta-vid[1] | split: 'src="' %}
51
+ {% assign meta-vid = meta-vid[1] | split: '"' %}
52
+ {% assign meta-vid = meta-vid[0] | split: '/' | last %}
53
+ {% endunless %}
54
+
55
+ {% case site.twitter.large_img %}
56
+ {% when 'always' %}
57
+ {% assign meta-twitter_large_img = true %}
58
+ {% when 'never' %}
59
+ {% assign meta-twitter_large_img = false %}
60
+ {% else %}
61
+ {% if meta-img or meta-vid %}
62
+ {% assign meta-twitter_large_img = true %}
63
+ {% else %}
64
+ {% assign meta-twitter_large_img = false %}
65
+ {% endif %}
66
+ {% endcase %}
67
+
68
+ {% unless meta-img %}
69
+ {% assign meta-img = site.cover | prepend: site.baseurl %}
70
+ {% endunless %}
71
+ {% endcapture %}
@@ -0,0 +1,5 @@
1
+ {% capture NOOUT %}
2
+ {% unless site.title %}
3
+ {% assign unconfig-empty = true %}
4
+ {% endunless %}
5
+ {% endcapture %}
@@ -0,0 +1,10 @@
1
+ ---
2
+ # Jekyll layout that compresses HTML
3
+ # v3.1.0
4
+ # http://jch.penibelst.de/
5
+ # © 2014–2015 Anatol Broder
6
+ # MIT License
7
+ ---
8
+
9
+ {% capture _LINE_FEED %}
10
+ {% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
@@ -0,0 +1,21 @@
1
+ ---
2
+ layout: compress
3
+ ---
4
+ <!DOCTYPE html>
5
+ <html>
6
+ <head>
7
+ {% include preload.html %}
8
+ </head>
9
+ <body class="flex column">
10
+ <div class="mainmatter flexitem fill">
11
+ <div class="container">
12
+ {% include header.html %}
13
+ {{ content }}
14
+ </div>
15
+ </div>
16
+ <div class="container">
17
+ {% include footer.html %}
18
+ </div>
19
+ {% include postload.html %}
20
+ </body>
21
+ </html>
data/_layouts/doc.html ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include article.html class="page" title=page.title content=content %}
6
+ <div class="posts">
7
+ {% include listing/docs.html %}
8
+ </div>
@@ -0,0 +1,16 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% capture NOOUT %}
6
+ {% assign content_size = content | normalize_whitespace | size %}
7
+ {% if content_size == 0 %}
8
+ {% include config/empty/about.md %}
9
+ {% assign the_title = empty-title %}
10
+ {% assign the_content = empty-content | markdownify %}
11
+ {% else %}
12
+ {% assign the_title = page.title %}
13
+ {% assign the_content = content %}
14
+ {% endif %}
15
+ {% endcapture %}
16
+ {% include article.html class='page' title=the_title content=the_content %}
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% capture NOOUT %}
6
+ {% if site.posts.size == 0 %}
7
+ {% include config/empty/common_listing.md list='posts' %}
8
+ {% assign article_class = 'page' %}
9
+ {% assign the_title = empty-title %}
10
+ {% assign the_content = empty-content | markdownify %}
11
+ {% else %}
12
+ {% assign selection = site.empty_array | push: 'archive' %}
13
+ {% endif %}
14
+ {% endcapture %}
15
+ {% include menu/archive_tags.html %}
16
+ {% include article.html class=article_class title=the_title content=the_content %}
17
+ {% include listing.html selection=selection %}
@@ -0,0 +1,16 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% capture NOOUT %}
6
+ {% if site.docs.size == 0 %}
7
+ {% include config/empty/common_listing.md list='docs' %}
8
+ {% assign article_class = 'page' %}
9
+ {% assign the_title = empty-title %}
10
+ {% assign the_content = empty-content | markdownify %}
11
+ {% else %}
12
+ {% assign selection = site.empty_array | push: 'docs' %}
13
+ {% endif %}
14
+ {% endcapture %}
15
+ {% include article.html class=article_class title=the_title content=the_content %}
16
+ {% include listing.html selection=selection %}
@@ -0,0 +1,26 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% capture NOOUT %}
6
+ {% include variables/unconfig.liquid %}
7
+ {% include variables/homepage.liquid %}
8
+ {% if unconfig-empty %}
9
+ {% include config/empty/unconfig.md %}
10
+ {% elsif homepage-empty %}
11
+ {% include config/empty/homepage.md %}
12
+ {% else %}
13
+ {% assign selection = site.data.homepage %}
14
+ {% endif %}
15
+ {% if unconfig-empty or homepage-empty %}
16
+ {% assign article_class = 'page' %}
17
+ {% assign the_title = empty-title %}
18
+ {% assign the_content = empty-content | markdownify %}
19
+ {% elsif homepage-announcement %}
20
+ {% assign article_class = 'page infobox' %}
21
+ {% assign the_title = page.title | default: site.data.theme.text.empty.announcement %}
22
+ {% assign the_content = content %}
23
+ {% endif %}
24
+ {% endcapture %}
25
+ {% include article.html class=article_class title=the_title content=the_content %}
26
+ {% include listing.html selection=selection %}
@@ -0,0 +1,18 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% capture NOOUT %}
6
+ {% if site.posts.size == 0 %}
7
+ {% include config/empty/common_listing.md list='posts' %}
8
+ {% assign article_class = 'page' %}
9
+ {% assign the_title = empty-title %}
10
+ {% assign the_content = empty-content | markdownify %}
11
+ {% else %}
12
+ {% assign selection = site.empty_array | push: 'posts' %}
13
+ {% endif %}
14
+ {% endcapture %}
15
+ {% include menu/archive_tags.html %}
16
+ {% include article.html class=article_class title=the_title content=the_content %}
17
+ {% include listing.html selection=selection %}
18
+ {% include paginate/multiple.html %}
@@ -0,0 +1,16 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% capture NOOUT %}
6
+ {% if site.projects.size == 0 %}
7
+ {% include config/empty/common_listing.md list='projects' %}
8
+ {% assign article_class = 'page' %}
9
+ {% assign the_title = empty-title %}
10
+ {% assign the_content = empty-content | markdownify %}
11
+ {% else %}
12
+ {% assign selection = site.empty_array | push: 'projects' %}
13
+ {% endif %}
14
+ {% endcapture %}
15
+ {% include article.html class=article_class title=the_title content=the_content %}
16
+ {% include listing.html selection=selection %}
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% capture NOOUT %}
6
+ {% if site.tags.size == 0 %}
7
+ {% include config/empty/common_listing.md list='tags' %}
8
+ {% assign article_class = 'page' %}
9
+ {% assign the_title = empty-title %}
10
+ {% assign the_content = empty-content | markdownify %}
11
+ {% else %}
12
+ {% assign selection = site.empty_array | push: 'tags' %}
13
+ {% endif %}
14
+ {% endcapture %}
15
+ {% include menu/archive_tags.html %}
16
+ {% include article.html class=article_class title=the_title content=the_content %}
17
+ {% include listing.html selection=selection %}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include article.html class="page" title=page.title content=content %}
@@ -0,0 +1,10 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include article.html class='post'
6
+ title=page.title content=content
7
+ date=page.date tags=page.tags
8
+ people=page.people show_people=true
9
+ origin=page.origin revise=page.revise
10
+ paginate='single' comment=true %}
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include article.html class='project'
6
+ title=page.title content=content
7
+ demo=page.demo source=page.source
8
+ display_date=page.display_date
9
+ paginate='single' comment=true %}
@@ -0,0 +1,83 @@
1
+ .posts > .excerpt.post {
2
+ @extend .sep-bottom;
3
+ padding-bottom: 2em;
4
+ }
5
+ .posts > .excerpt.post:last-child {
6
+ padding-bottom: 1em;
7
+ border-bottom: none;
8
+ }
9
+
10
+
11
+ .pagination {
12
+ @extend .sep-top;
13
+ margin-top: 1em;
14
+ padding-top: 1em;
15
+ text-align: center;
16
+ }
17
+
18
+
19
+ .submenu.info {
20
+ font-family: $font-head;
21
+
22
+ div {
23
+ padding: 0.33em;
24
+ text-align: center;
25
+ }
26
+
27
+ .primary {
28
+ background: $major-color;
29
+ }
30
+
31
+ .secondary {
32
+ background: $minor-color;
33
+ }
34
+ }
35
+
36
+
37
+ .date {
38
+ font-family: $font-head;
39
+ font-style: italic;
40
+ flex: 0 0 auto;
41
+ align-self: stretch;
42
+ }
43
+
44
+
45
+ .archive .date {
46
+ font-family: $font-head;
47
+ font-style: italic;
48
+ flex: 0 0 auto;
49
+ width: 120px;
50
+ }
51
+
52
+
53
+ .mini-title, .tags {
54
+ margin: 0 1em;
55
+ font-family: $font-head;
56
+ align-self: stretch;
57
+ }
58
+
59
+
60
+ .tag-item {
61
+ border: 1px dashed $border-color;
62
+ border-radius: 5px;
63
+ padding: 0 0.333em;
64
+ margin: 0.125em;
65
+ }
66
+
67
+
68
+ .person-card {
69
+ width: 50%;
70
+ padding: 0 1em;
71
+ @include mobile {
72
+ width: 100%;
73
+ margin: 0.25em 1em;
74
+ }
75
+ }
76
+ .person-card p {
77
+ margin: 0.5em 1em;
78
+ }
79
+
80
+
81
+ .footnotes {
82
+ border-top: 1px dashed $border-color;
83
+ }