daiblogs 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/footer.html +69 -3
  3. data/_includes/head.html +3 -0
  4. data/_includes/header.html +9 -1
  5. data/_includes/svg-defs.html +24 -6
  6. data/_includes/webfonts.html +1 -1
  7. data/_layouts/blog.html +4 -0
  8. data/_layouts/default.html +16 -4
  9. data/_layouts/home.html +181 -0
  10. data/_layouts/post.html +31 -0
  11. data/{assets/_sass/_blog.scss → _sass/blog.scss} +1 -0
  12. data/{assets/_sass → _sass}/bourbon/_bourbon-deprecated-upcoming.scss +0 -0
  13. data/{assets/_sass → _sass}/bourbon/_bourbon.scss +0 -0
  14. data/{assets/_sass → _sass}/bourbon/addons/_button.scss +0 -0
  15. data/{assets/_sass → _sass}/bourbon/addons/_clearfix.scss +0 -0
  16. data/{assets/_sass → _sass}/bourbon/addons/_font-family.scss +0 -0
  17. data/{assets/_sass → _sass}/bourbon/addons/_hide-text.scss +0 -0
  18. data/{assets/_sass → _sass}/bourbon/addons/_html5-input-types.scss +0 -0
  19. data/{assets/_sass → _sass}/bourbon/addons/_position.scss +0 -0
  20. data/{assets/_sass → _sass}/bourbon/addons/_prefixer.scss +0 -0
  21. data/{assets/_sass → _sass}/bourbon/addons/_retina-image.scss +0 -0
  22. data/{assets/_sass → _sass}/bourbon/addons/_size.scss +0 -0
  23. data/{assets/_sass → _sass}/bourbon/addons/_timing-functions.scss +0 -0
  24. data/{assets/_sass → _sass}/bourbon/addons/_triangle.scss +0 -0
  25. data/{assets/_sass → _sass}/bourbon/css3/_animation.scss +0 -0
  26. data/{assets/_sass → _sass}/bourbon/css3/_appearance.scss +0 -0
  27. data/{assets/_sass → _sass}/bourbon/css3/_backface-visibility.scss +0 -0
  28. data/{assets/_sass → _sass}/bourbon/css3/_background-image.scss +0 -0
  29. data/{assets/_sass → _sass}/bourbon/css3/_background.scss +0 -0
  30. data/{assets/_sass → _sass}/bourbon/css3/_border-image.scss +0 -0
  31. data/{assets/_sass → _sass}/bourbon/css3/_border-radius.scss +0 -0
  32. data/{assets/_sass → _sass}/bourbon/css3/_box-sizing.scss +0 -0
  33. data/{assets/_sass → _sass}/bourbon/css3/_columns.scss +0 -0
  34. data/{assets/_sass → _sass}/bourbon/css3/_flex-box.scss +0 -0
  35. data/{assets/_sass → _sass}/bourbon/css3/_font-face.scss +0 -0
  36. data/{assets/_sass → _sass}/bourbon/css3/_hidpi-media-query.scss +0 -0
  37. data/{assets/_sass → _sass}/bourbon/css3/_image-rendering.scss +0 -0
  38. data/{assets/_sass → _sass}/bourbon/css3/_inline-block.scss +0 -0
  39. data/{assets/_sass → _sass}/bourbon/css3/_keyframes.scss +0 -0
  40. data/{assets/_sass → _sass}/bourbon/css3/_linear-gradient.scss +0 -0
  41. data/{assets/_sass → _sass}/bourbon/css3/_perspective.scss +0 -0
  42. data/{assets/_sass → _sass}/bourbon/css3/_placeholder.scss +0 -0
  43. data/{assets/_sass → _sass}/bourbon/css3/_radial-gradient.scss +0 -0
  44. data/{assets/_sass → _sass}/bourbon/css3/_transform.scss +0 -0
  45. data/{assets/_sass → _sass}/bourbon/css3/_transition.scss +0 -0
  46. data/{assets/_sass → _sass}/bourbon/css3/_user-select.scss +0 -0
  47. data/{assets/_sass → _sass}/bourbon/functions/_compact.scss +0 -0
  48. data/{assets/_sass → _sass}/bourbon/functions/_flex-grid.scss +0 -0
  49. data/{assets/_sass → _sass}/bourbon/functions/_grid-width.scss +0 -0
  50. data/{assets/_sass → _sass}/bourbon/functions/_linear-gradient.scss +0 -0
  51. data/{assets/_sass → _sass}/bourbon/functions/_modular-scale.scss +0 -0
  52. data/{assets/_sass → _sass}/bourbon/functions/_px-to-em.scss +0 -0
  53. data/{assets/_sass → _sass}/bourbon/functions/_radial-gradient.scss +0 -0
  54. data/{assets/_sass → _sass}/bourbon/functions/_tint-shade.scss +0 -0
  55. data/{assets/_sass → _sass}/bourbon/functions/_transition-property-name.scss +0 -0
  56. data/{assets/_sass → _sass}/bourbon/helpers/_deprecated-webkit-gradient.scss +0 -0
  57. data/{assets/_sass → _sass}/bourbon/helpers/_gradient-positions-parser.scss +0 -0
  58. data/{assets/_sass → _sass}/bourbon/helpers/_linear-positions-parser.scss +0 -0
  59. data/{assets/_sass → _sass}/bourbon/helpers/_radial-arg-parser.scss +0 -0
  60. data/{assets/_sass → _sass}/bourbon/helpers/_radial-positions-parser.scss +0 -0
  61. data/{assets/_sass → _sass}/bourbon/helpers/_render-gradients.scss +0 -0
  62. data/{assets/_sass → _sass}/bourbon/helpers/_shape-size-stripper.scss +0 -0
  63. data/_sass/flickity.scss +137 -0
  64. data/{assets/_sass/_grid.scss → _sass/grid.scss} +1 -8
  65. data/_sass/layout.scss +991 -0
  66. data/{assets/_sass/_legacy.scss → _sass/legacy.scss} +30 -22
  67. data/{assets/_sass/_mixins.scss → _sass/mixins.scss} +2 -1
  68. data/_sass/typesetting.scss +8 -0
  69. data/{assets/_sass/_variables.scss → _sass/variables.scss} +25 -14
  70. data/assets/css/site.scss +4 -1
  71. data/assets/images/blockquote-right.svg +9 -0
  72. data/assets/images/blockquote.svg +9 -0
  73. data/assets/images/bottom-rec.svg +9 -0
  74. data/assets/images/full-rec.svg +9 -0
  75. data/assets/images/open-rec.svg +11 -0
  76. data/assets/images/top-rec.svg +9 -0
  77. data/assets/js/progress.js +73 -0
  78. data/assets/js/site.js +12 -0
  79. metadata +73 -65
  80. data/assets/_sass/_layout.scss +0 -2
  81. data/assets/_sass/_typesetting.scss +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da94cce5fea34fa55d9b9cf88db65ab471ee1d2c1d1ae9d862a78270559ee9ff
4
- data.tar.gz: '02389d3f7ba0d6f128f3efaa564b4f643b7f082fde3d3cc8a799b578d4fe71f0'
3
+ metadata.gz: f5bae96256f45a0a171cbe903883c30de23fd75c9d895d476ce9615c6808c613
4
+ data.tar.gz: 90f33dcdee70a04914a8bab7b2d0fcae0c3751e287f6d4f11ebbd47c103167d9
5
5
  SHA512:
6
- metadata.gz: 90ddfd1902b2e95ea4417a3c6448e84301cb19dc15d53b54251a44d55a348bf32fff63b75b92fee8f265821e71d0a640891acbf3c8be0735ed6c4a49e5894fcf
7
- data.tar.gz: d4c375f80584433143e759e14c3220da55e083e5afe8bce9ef75eeefed55a79040021b4f4fc40091e2eb2bba2c6ac7ca8a71753c4fc55f434e45a27201520b1d
6
+ metadata.gz: c20a7b4dc53475c2ccc9f7fc07e11b3f0f166a6b7edf44449ec135f58f2f725d2ec5be88a519b8b77833525019c21ec8b8922514a9d93a2260cc274e9368a1fc
7
+ data.tar.gz: 825ee3d9123a0a06303abc04ac1e0a3ce530a7df5f285fa5a0177d50244fbc943a64399b10d65542766f95b94af42317cd27e5e229a4bf8efcf0c97a887694fd
@@ -1,15 +1,81 @@
1
+ {%- assign author = site.data.experts | where_exp:"expert", "expert.name == page.author" -%}
2
+ <div class="post-footer--wrap">
3
+ <div class="post-footer"> 
4
+ <div class="footer--author-image">
5
+ {%- if author.size > 0 -%}
6
+ <img src="{{author.[0].image}}" alt="">
7
+ {%- endif -%}
8
+ </div>
9
+ <div class="footer--author-details">
10
+ {%- if author.size > 0 -%}
11
+ <h3>{{author.[0].name}}</h3>
12
+ <p>{{author.[0].title}}</p>
13
+ {%- else -%}
14
+ <h3>{{post.author}}</h3>
15
+ {%- endif -%}
16
+ </div>
17
+ </div>
18
+ </div>
19
+ {%- if page.path contains '_posts' -%}
20
+ <div class="recent related">
21
+ <div class="featured--title">
22
+ <h2><span>RECENT</span> <span class="emphasize">ARTICLES</span></h2>
23
+ <hr class="bar">
24
+ </div>
25
+ <div class="shadow-wrap">
26
+ <div class="main-carousel">
27
+ {%- comment -%} This loop will have to be re-written once we can pull in more real posts, for right now we're just
28
+ looping through the same 3 {%- endcomment -%}
29
+ {%- assign recent = site.posts -%}
30
+ {%- for post in recent limit:6 -%}
31
+ <div class="carousel-cell">
32
+ <div class="recent-blog">
33
+ <span>{{post.publication}}<span />
34
+ </div>
35
+ <div class="recent-image">
36
+ <img src="{{post.featured-image}}" />
37
+ </div>
38
+ <div class="featured-other--author">
39
+ {%- assign author = site.data.experts | where_exp:"expert", "expert.name == post.author" -%}
40
+ {%- if author.size > 0 -%}
41
+ <div class="featured-other--author-pic">
42
+ <img src="{{ author[0].image }}" alt="">
43
+ <span><a href="{{ author[0].link }}">{{ author[0].name }}</a></span>
44
+ </div>
45
+ {%- else -%}
46
+ <div class="featured-other--author-pic">
47
+ <img src="/uploads/author-placeholder.jpg" alt="">
48
+ <span>{{ post.author | markdownify | remove:"<p>" | remove:"</p>"}}</span>
49
+ </div>
50
+ {%- endif -%}
51
+ <div class="featured-other--author-data">
52
+ <p>{{ post.date | date: '%m/%d' }} | {% capture time %}{{ post.content | reading_time }}{% endcapture %} {{
53
+ time }} min read</p>
54
+ </div>
55
+ </div>
56
+ <h4 class="featured-other--title">{{ post.title | truncate: 84 }}
57
+ <hr class="bar">
58
+ </h4>
59
+ <p class="featured-other--summary">{{ post.summary | markdownify | remove:'<p>' | rmeove:'</p>' | truncate: 125}}</p>
60
+ <a href="{{ post.url }}" class="button">READ MORE</a>
61
+ </div>
62
+ {%- endfor -%}
63
+ </div>
64
+ </div>
65
+ </div>
66
+ {%- endif -%}
1
67
  <footer>
2
68
  <div class="footer-inner">
3
69
  <p id="last"></p>
4
70
  <p class="footer-bottom-links"><a href="/sign-up" class="footer-bottom-link">Sign Up</a>
5
71
  <a href="/contact-us" class="footer-bottom-link">Contact Us</a>
6
72
  <a href="/project-login" class="footer-bottom-link">Project Login</a>
7
- <a href="/privacy-policy" class="footer-bottom-link">Privacy Policy</a> Copyright DAI. All Rights Reserved. </p>
73
+ <a href="/privacy-policy" class="footer-bottom-link">Privacy Policy</a> <span class="copyright">Copyright DAI. All Rights Reserved.</span> </p>
8
74
  {% include footer-nav.html %}
9
75
  <div class="footer-bottom">
10
- <svg class="logo--footer" viewBox="0 0 982 245" preserveAspectRatio="xMinYMax meet"><use xlink:href="#flat-logo"></use></svg><span class="trademarked">&reg; </span>
11
- <svg class="logo--footer--afiliate" viewBox="0 0 708 426" preserveAspectRatio="xMinYMax meet"><use xlink:href="#affiliate-badge"></use></svg>
76
+ <svg class="logo--footer footer-flat--logo" viewBox="0 0 982 245" preserveAspectRatio="xMinYMax meet"><use xlink:href="#flater-logo"></use></svg><span class="trademarked">&reg; </span>
12
77
  </div>
78
+ <p></p>
13
79
  <p class="legaleeze">DAI is an equal opportunity/affirmative action employer with a commitment to diversity. All qualified applicants will receive consideration for employment without regard to race, color, religion, sex, sexual orientation, gender identity or national origin. <a href="/eeo">Related Resources</a></p>
14
80
  </div>
15
81
 
data/_includes/head.html CHANGED
@@ -26,4 +26,7 @@
26
26
  <!-- RSS -->
27
27
  <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ site.baseurl}}/atom.xml">
28
28
  {% include svg-defs.html %}
29
+ <script src="https://cdn.jsdelivr.net/algoliasearch/3/algoliasearch.min.js"></script>
30
+ <script src="https://cdn.jsdelivr.net/autocomplete.js/0/autocomplete.min.js"></script>
31
+ <!-- Lity (Lightweight, accessible and responsive lightbox) -->
29
32
  </head>
@@ -22,7 +22,7 @@
22
22
  <div class="header-site_nav">
23
23
  <div class="header-inner">
24
24
  <div class="header-inner--wrap">
25
- <a class="header-inner--logo" href="https://www.dai.com"><svg class="logo" viewBox="0 0 982 245" preserveAspectRatio="xMinYMax meet"><use xlink:href="#logo"></use></svg></a>
25
+ <a class="header-inner--logo" href="https://www.dai.com"><svg class="logo header-flat--logo" viewBox="0 0 982 245" preserveAspectRatio="xMinYMax meet"><use xlink:href="#flat-logo"></use></svg></a>
26
26
  <ul class="header-nav--main">
27
27
  <li class="has-dropdown"><a id="who-we-are-nav"href="https://www.dai.com/#who-we-are{% if page.title == "Home" %}{{"_hash"}}{% endif %}" class="{% if page.url contains "who-we-are" %}{{"active"}}{% endif %}">Who We Are</a>{% unless page.title == "Home" %}<ul class="dropdown">
28
28
  {% for item in site.data.nav-main-who %}
@@ -53,4 +53,12 @@
53
53
  </div>
54
54
  </div>
55
55
  </div>
56
+ {%- if page.layout == "post" -%}
57
+ <script src="assets/js/progress.js"></script>
58
+ <script type="text/javascript">
59
+ document.addEventListener("DOMContentLoaded", function (event) {
60
+ progressJS.start({ "css": "true" });
61
+ });
62
+ </script>
63
+ {%- endif -%}
56
64
  </header>
@@ -1,5 +1,17 @@
1
1
  <svg style="display: none;">
2
2
  <defs>
3
+ <g class="svg" id="clock" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
4
+ <g id="clock" transform="translate(5.000000, 5.000000)" stroke="#A1C7E3" stroke-width="10">
5
+ <circle id="Oval" cx="50" cy="50" r="50"></circle>
6
+ <polyline id="Line" stroke-linecap="square" points="54.5234375 25 46 49.6551837 76.640625 68.1992187"></polyline>
7
+ </g>
8
+ </g>
9
+ <g id="bottom-rec" class="svg" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
+ <rect id="Rectangle" stroke="#FFFFFF" stroke-width="9" x="5" y="-340" width="795" height="888"></rect>
11
+ </g>
12
+ <g id="border-rectangle" class="svg" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
13
+ <rect id="Rectangle" stroke="#FFFFFF" stroke-width="9" x="5" y="5" width="795" height="888"></rect>
14
+ </g>
3
15
  <g id="affiliate-badge" class="svg-badge" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
4
16
  <rect id="Rectangle-Copy" fill="#303B40" x="0" y="0" width="707.753906" height="425.5625"></rect>
5
17
  <g id="Group-Copy" transform="translate(84.000000, 141.000000)" fill="#F2F0ED">
@@ -175,8 +187,8 @@
175
187
  <path d="M2.56640625,0.93359375 C2.1796875,0.51171875 1.51171875,0.40625 0.9140625,0.58203125 C0.31640625,0.828125 0,1.42578125 0,1.98828125 L0,21.5 C0,21.5 12,33.9101575 12,35.0000012 C12,36.089845 0,48.5 0,48.5 L0,68.0117188 C0,68.5742188 0.31640625,69.171875 0.9140625,69.4179688 C1.51171875,69.59375 2.1796875,69.4882813 2.56640625,69.0664063 L35.578125,36.0898438 C35.8242188,35.7382813 36,35.421875 36,35 C36,34.578125 35.8242188,34.2617188 35.578125,33.9101563 L2.56640625,0.93359375 Z" id="right" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
176
188
  </g>
177
189
  <g id="search" sketch:type="MSLayerGroup">
178
- <path d="M440.841,375.939 L438.15,373.25 L438.156,373.248 L330.642,265.726 C345.58,239.992 354.258,210.161 354.462,178.275 C355.088,80.66 276.472,1.032 178.864,0.418 C178.47,0.416 178.088,0.416 177.696,0.416 C80.635,0.42 1.628,78.807 1.003,176.014 C0.385,273.623 79.002,353.25 176.6,353.873 C176.989,353.875 177.366,353.877 177.755,353.877 C210.198,353.877 240.601,345.087 266.753,329.802 L374.172,437.233 L374.182,437.224 L376.868,439.909 C384.993,448.033 398.161,448.026 406.282,439.909 L440.841,405.355 C448.958,397.238 448.963,384.062 440.841,375.939 L440.841,375.939 Z" id="search-path" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
179
- <path d="M176.885,308.804 C104.296,308.338 45.615,248.896 46.073,176.302 C46.538,104.173 105.587,45.49 177.698,45.486 L178.578,45.488 C213.745,45.708 246.721,59.612 271.428,84.637 C296.133,109.662 309.617,142.814 309.39,177.988 C309.168,213.003 295.363,245.881 270.523,270.553 C245.689,295.223 212.743,308.805 177.755,308.805 L176.885,308.804 L176.885,308.804 Z" id="circle-fill" fill="#000000" sketch:type="MSShapeGroup"></path>
190
+ <path d="M440.841,375.939 L438.15,373.25 L438.156,373.248 L330.642,265.726 C345.58,239.992 354.258,210.161 354.462,178.275 C355.088,80.66 276.472,1.032 178.864,0.418 C178.47,0.416 178.088,0.416 177.696,0.416 C80.635,0.42 1.628,78.807 1.003,176.014 C0.385,273.623 79.002,353.25 176.6,353.873 C176.989,353.875 177.366,353.877 177.755,353.877 C210.198,353.877 240.601,345.087 266.753,329.802 L374.172,437.233 L374.182,437.224 L376.868,439.909 C384.993,448.033 398.161,448.026 406.282,439.909 L440.841,405.355 C448.958,397.238 448.963,384.062 440.841,375.939 L440.841,375.939 Z" id="search-path" sketch:type="MSShapeGroup"></path>
191
+ <path d="M176.885,308.804 C104.296,308.338 45.615,248.896 46.073,176.302 C46.538,104.173 105.587,45.49 177.698,45.486 L178.578,45.488 C213.745,45.708 246.721,59.612 271.428,84.637 C296.133,109.662 309.617,142.814 309.39,177.988 C309.168,213.003 295.363,245.881 270.523,270.553 C245.689,295.223 212.743,308.805 177.755,308.805 L176.885,308.804 L176.885,308.804 Z" id="circle-fill" fill="#f2f0ed"sketch:type="MSShapeGroup"></path>
180
192
  </g>
181
193
  <g id="logo" sketch:type="MSLayerGroup">
182
194
  <path d="M0,0 L0,74 L371,74 L371,0 L0,0 L0,0 Z" id="logo-blue" fill="#8DBCDA" sketch:type="MSShapeGroup"></path>
@@ -185,10 +197,16 @@
185
197
  <path d="M500,54 L500,188 L540.503145,188 C547.060829,188 553.425546,186.908159 559.597484,184.724444 C565.769423,182.54073 571.266223,178.917803 576.08805,173.855556 C580.909877,168.793308 584.767281,162.192633 587.660377,154.053333 C590.553474,145.914033 592,135.988207 592,124.275556 C592,113.555502 590.987432,103.877821 588.962264,95.2422222 C586.937097,86.6066235 583.610086,79.2118826 578.981132,73.0577778 C574.352178,66.9036729 568.22855,62.1889053 560.610063,58.9133333 C552.991576,55.6377614 543.589154,54 532.402516,54 L500,54 Z M436,244 L436,2 L543.21519,2 C559.227928,2 574.138117,4.48550269 587.946203,9.45658263 C601.754288,14.4276626 613.705646,21.8841706 623.800633,31.8263305 C633.89562,41.7684904 641.785837,54.1960039 647.471519,69.1092437 C653.157201,84.0224835 656,101.53398 656,121.644258 C656,139.268996 653.679348,155.537741 649.037975,170.45098 C644.396601,185.36422 637.376629,198.243643 627.977848,209.089636 C618.579067,219.935628 606.859775,228.465422 592.81962,234.679272 C578.779466,240.893122 562.244821,244 543.21519,244 L436,244 Z M743,153 L806,153 L775.351351,64 L774.67027,64 L743,153 Z M714.598454,73.3251553 L741.5942,2 L807.534815,2 C807.534815,2 821.307186,39.2537568 835.079561,76.5075124 L897,244 L831.276814,243.999999 L815.543096,200.013933 L729.043532,200.013933 L714.301878,243.999999 L650,244 L714.598454,73.3251553 Z M919,244 L919,2 L982,2 L982,244 L919,244 Z" id="logo-dai" fill="#6A4C17" sketch:type="MSShapeGroup"></path>
186
198
  </g>
187
199
  <g id="flat-logo" sketch:type="MSLayerGroup">
188
- <path d="M0,0 L0,74 L371,74 L371,0 L0,0 L0,0 Z" id="logo-blue" fill="#f2f0ed" sketch:type="MSShapeGroup"></path>
189
- <path d="M0,85 L0,159 L371,159 L371,85 L0,85 L0,85 Z" id="logo-green" fill="#f2f0ed" sketch:type="MSShapeGroup"></path>
190
- <path d="M0,171 L0,245 L371,245 L371,171 L0,171 L0,171 Z" id="logo-brown" fill="#f2f0ed" sketch:type="MSShapeGroup"></path>
191
- <path d="M500,54 L500,188 L540.503145,188 C547.060829,188 553.425546,186.908159 559.597484,184.724444 C565.769423,182.54073 571.266223,178.917803 576.08805,173.855556 C580.909877,168.793308 584.767281,162.192633 587.660377,154.053333 C590.553474,145.914033 592,135.988207 592,124.275556 C592,113.555502 590.987432,103.877821 588.962264,95.2422222 C586.937097,86.6066235 583.610086,79.2118826 578.981132,73.0577778 C574.352178,66.9036729 568.22855,62.1889053 560.610063,58.9133333 C552.991576,55.6377614 543.589154,54 532.402516,54 L500,54 Z M436,244 L436,2 L543.21519,2 C559.227928,2 574.138117,4.48550269 587.946203,9.45658263 C601.754288,14.4276626 613.705646,21.8841706 623.800633,31.8263305 C633.89562,41.7684904 641.785837,54.1960039 647.471519,69.1092437 C653.157201,84.0224835 656,101.53398 656,121.644258 C656,139.268996 653.679348,155.537741 649.037975,170.45098 C644.396601,185.36422 637.376629,198.243643 627.977848,209.089636 C618.579067,219.935628 606.859775,228.465422 592.81962,234.679272 C578.779466,240.893122 562.244821,244 543.21519,244 L436,244 Z M743,153 L806,153 L775.351351,64 L774.67027,64 L743,153 Z M714.598454,73.3251553 L741.5942,2 L807.534815,2 C807.534815,2 821.307186,39.2537568 835.079561,76.5075124 L897,244 L831.276814,243.999999 L815.543096,200.013933 L729.043532,200.013933 L714.301878,243.999999 L650,244 L714.598454,73.3251553 Z M919,244 L919,2 L982,2 L982,244 L919,244 Z" id="logo-dai" fill="#f2f0ed" sketch:type="MSShapeGroup"></path>
200
+ <path d="M0,0 L0,74 L371,74 L371,0 L0,0 L0,0 Z" id="logo-blue" sketch:type="MSShapeGroup" fill="#a1c7e3"></path>
201
+ <path d="M0,85 L0,159 L371,159 L371,85 L0,85 L0,85 Z" id="logo-green" sketch:type="MSShapeGroup" fill="#8fc73e"></path>
202
+ <path d="M0,171 L0,245 L371,245 L371,171 L0,171 L0,171 Z" id="logo-brown" sketch:type="MSShapeGroup"></path>
203
+ <path d="M500,54 L500,188 L540.503145,188 C547.060829,188 553.425546,186.908159 559.597484,184.724444 C565.769423,182.54073 571.266223,178.917803 576.08805,173.855556 C580.909877,168.793308 584.767281,162.192633 587.660377,154.053333 C590.553474,145.914033 592,135.988207 592,124.275556 C592,113.555502 590.987432,103.877821 588.962264,95.2422222 C586.937097,86.6066235 583.610086,79.2118826 578.981132,73.0577778 C574.352178,66.9036729 568.22855,62.1889053 560.610063,58.9133333 C552.991576,55.6377614 543.589154,54 532.402516,54 L500,54 Z M436,244 L436,2 L543.21519,2 C559.227928,2 574.138117,4.48550269 587.946203,9.45658263 C601.754288,14.4276626 613.705646,21.8841706 623.800633,31.8263305 C633.89562,41.7684904 641.785837,54.1960039 647.471519,69.1092437 C653.157201,84.0224835 656,101.53398 656,121.644258 C656,139.268996 653.679348,155.537741 649.037975,170.45098 C644.396601,185.36422 637.376629,198.243643 627.977848,209.089636 C618.579067,219.935628 606.859775,228.465422 592.81962,234.679272 C578.779466,240.893122 562.244821,244 543.21519,244 L436,244 Z M743,153 L806,153 L775.351351,64 L774.67027,64 L743,153 Z M714.598454,73.3251553 L741.5942,2 L807.534815,2 C807.534815,2 821.307186,39.2537568 835.079561,76.5075124 L897,244 L831.276814,243.999999 L815.543096,200.013933 L729.043532,200.013933 L714.301878,243.999999 L650,244 L714.598454,73.3251553 Z M919,244 L919,2 L982,2 L982,244 L919,244 Z" id="logo-dai" sketch:type="MSShapeGroup"></path>
204
+ </g>
205
+ <g id="flater-logo" sketch:type="MSLayerGroup">
206
+ <path d="M0,0 L0,74 L371,74 L371,0 L0,0 L0,0 Z" id="logo-blue" sketch:type="MSShapeGroup" fill="#c8c6c2"></path>
207
+ <path d="M0,85 L0,159 L371,159 L371,85 L0,85 L0,85 Z" id="logo-green" sketch:type="MSShapeGroup" fill="#c8c6c2"></path>
208
+ <path d="M0,171 L0,245 L371,245 L371,171 L0,171 L0,171 Z" id="logo-brown" sketch:type="MSShapeGroup"></path>
209
+ <path d="M500,54 L500,188 L540.503145,188 C547.060829,188 553.425546,186.908159 559.597484,184.724444 C565.769423,182.54073 571.266223,178.917803 576.08805,173.855556 C580.909877,168.793308 584.767281,162.192633 587.660377,154.053333 C590.553474,145.914033 592,135.988207 592,124.275556 C592,113.555502 590.987432,103.877821 588.962264,95.2422222 C586.937097,86.6066235 583.610086,79.2118826 578.981132,73.0577778 C574.352178,66.9036729 568.22855,62.1889053 560.610063,58.9133333 C552.991576,55.6377614 543.589154,54 532.402516,54 L500,54 Z M436,244 L436,2 L543.21519,2 C559.227928,2 574.138117,4.48550269 587.946203,9.45658263 C601.754288,14.4276626 613.705646,21.8841706 623.800633,31.8263305 C633.89562,41.7684904 641.785837,54.1960039 647.471519,69.1092437 C653.157201,84.0224835 656,101.53398 656,121.644258 C656,139.268996 653.679348,155.537741 649.037975,170.45098 C644.396601,185.36422 637.376629,198.243643 627.977848,209.089636 C618.579067,219.935628 606.859775,228.465422 592.81962,234.679272 C578.779466,240.893122 562.244821,244 543.21519,244 L436,244 Z M743,153 L806,153 L775.351351,64 L774.67027,64 L743,153 Z M714.598454,73.3251553 L741.5942,2 L807.534815,2 C807.534815,2 821.307186,39.2537568 835.079561,76.5075124 L897,244 L831.276814,243.999999 L815.543096,200.013933 L729.043532,200.013933 L714.301878,243.999999 L650,244 L714.598454,73.3251553 Z M919,244 L919,2 L982,2 L982,244 L919,244 Z" id="logo-dai" sketch:type="MSShapeGroup"></path>
192
210
  </g>
193
211
  </defs>
194
212
  </svg>
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  (function(d) {
3
3
  var config = {
4
- kitId: 'yjb4iuu',
4
+ kitId: 'epl6fzl',
5
5
  scriptTimeout: 3000
6
6
  },
7
7
  h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='//use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
data/_layouts/blog.html CHANGED
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
@@ -2,13 +2,25 @@
2
2
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
3
3
  {% include iehacks.html %}
4
4
  {% include head.html %}
5
- <body class="{% if page.promos %}{% if page.promos[0].title.size > 1 %}promos {% endif %}{% endif %}{% if page.country-page %}country {% endif %}" >
5
+ <body class="" >
6
6
  <div class="wrapper">
7
7
  {% include header.html %}
8
-
9
- {{ content }}
10
- </div>
8
+ <div class="inner-wrap blogs-block">
9
+ {{ content }}
10
+ </div>
11
11
  {% include footer.html %}
12
12
  </div>
13
13
  </body>
14
+ {%- if page.layout == "home" or page.layout == "post"-%}
15
+ <script>
16
+ var elem = document.querySelector('.main-carousel');
17
+ var flkty = new Flickity( elem, {
18
+ // options
19
+ autoPlay: true,
20
+ wrapAround: true,
21
+ cellAlign: 'left',
22
+ contain: true
23
+ });
24
+ </script>
25
+ {%- endif -%}
14
26
  </html>
data/_layouts/home.html CHANGED
@@ -0,0 +1,181 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="blog-masthead">
5
+ <div class="blog-masthead--logo">
6
+ <h1 class="blog-masthead--title">{{site.title}}</h1>
7
+ <hr class="bar">
8
+ <h3 class="blog-masthead--tagline">{{site.description}}</h3>
9
+ </div>
10
+ <div class="blog-masthead--search">
11
+ <div class="aa-input-container" id="aa-input-container">
12
+ <input autofocus type="search" id="aa-search-input" class="aa-input-search" placeholder="Search" name="search"
13
+ autocomplete="off" />
14
+ <svg class="aa-input-icon search-icon" viewBox="654 -372 1664 1664">
15
+ <path
16
+ d="M1806,332c0-123.3-43.8-228.8-131.5-316.5C1586.8-72.2,1481.3-116,1358-116s-228.8,43.8-316.5,131.5 C953.8,103.2,910,208.7,910,332s43.8,228.8,131.5,316.5C1129.2,736.2,1234.7,780,1358,780s228.8-43.8,316.5-131.5 C1762.2,560.8,1806,455.3,1806,332z M2318,1164c0,34.7-12.7,64.7-38,90s-55.3,38-90,38c-36,0-66-12.7-90-38l-343-342 c-119.3,82.7-252.3,124-399,124c-95.3,0-186.5-18.5-273.5-55.5s-162-87-225-150s-113-138-150-225S654,427.3,654,332 s18.5-186.5,55.5-273.5s87-162,150-225s138-113,225-150S1262.7-372,1358-372s186.5,18.5,273.5,55.5s162,87,225,150s113,138,150,225 S2062,236.7,2062,332c0,146.7-41.3,279.7-124,399l343,343C2305.7,1098.7,2318,1128.7,2318,1164z" />
17
+ </svg>
18
+ </div>
19
+ <script>
20
+ var client = algoliasearch("R7MRY12BR6", "{{site.alg_key}}");
21
+ var index = client.initIndex('{{site.alg_index}}');
22
+ //initialize autocomplete on search input (ID selector must match)
23
+ autocomplete('#aa-search-input',
24
+ { hint: false, debug: true, autoselect: true, keyboardShortcuts: ['s', '/'] }, {
25
+ source: autocomplete.sources.hits(index, { hitsPerPage: 12 }),
26
+ //value to be displayed in input control after user's suggestion selection
27
+ displayKey: 'my_attribute',
28
+ //hash of templates used when rendering dataset
29
+ templates: {
30
+ //'suggestion' templating function used to render a single suggestion
31
+ suggestion: function (suggestion) {
32
+ return '<span>' +
33
+ suggestion._highlightResult.title.value + '</span><span>';
34
+ }
35
+ }
36
+ }).on('autocomplete:selected', function (event, suggestion, dataset) {
37
+ location.href = suggestion.url;
38
+ });
39
+ var nav = responsiveNav(".nav-collapse", {
40
+ animate: true,
41
+ transition: 284,
42
+ label: "MENU",
43
+ });
44
+ </script>
45
+ </div>
46
+ <div class="blog-masthead--subscribe">
47
+ <form action="https://formkeep.com/f/5c4082f5681c" accept-charset="UTF-8" enctype="multipart/form-data" method="POST" target="_blank"><h3>Subscribe <input type="email" id="email-address" name="email" placeholder="Email Address"></h3></form>
48
+ </div>
49
+ </div>
50
+ <div class="featured">
51
+ <div class="featured--title">
52
+ <h2><span>FEATURE</span> <span class="emphasize">ARTICLES</span></h2>
53
+ <hr class="bar">
54
+ </div>
55
+ </div>
56
+ {%- assign toppost = site.posts | where_exp:"post","post.weight > 8" -%}
57
+ {%- for post in toppost limit:1 -%}
58
+ <div class="featured-zero">
59
+ <div class="featured-zero--blog">{{ site.title }}</div>
60
+ <div class="featured-zero--image" style="background-image: url({{ post.featured-image }});"></div>
61
+ <div class="featured-zero--post">
62
+ <div class="featured-zero--author">
63
+ {%- assign author = site.data.experts | where_exp:"expert", "expert.name == post.author" -%}
64
+ {%- if author.size > 0 -%}
65
+ <div class="featured-zero--author-pic">
66
+ <img src="{{ author[0].image }}" alt="">
67
+ <span><a href="{{ author[0].link }}">{{ author[0].name }}</a></span>
68
+ </div>
69
+ {%- else -%}
70
+ <div class="featured-zero--author-pic">
71
+ <img src="/uploads/author-placeholder.jpg" alt="">
72
+ <span>{{ post.author | markdownify | remove:"<p>" | remove:"</p>"}}</span>
73
+ </div>
74
+ {%- endif -%}
75
+ <div class="featured-zero--author-data">
76
+ <p>Tags: {% for tag in post.tags %}<a href=" ">{{ tag }}</a> {% unless forloop.last %}<span class="seperator">/</span> {% endunless %} {% endfor %}</p>
77
+ <p>{{ post.date | date: '%m/%d' }} | {% capture time %}{{ post.content | reading_time }}{% endcapture %} {{ time }} min read</p>
78
+ </div>
79
+ </div>
80
+ <div class="featured-zero--post-wrap">
81
+ <h4>{{ post.title }}<hr class="bar"></h4>
82
+ <p>{{ post.summary}}</p>
83
+ <a href="{{ post.url }}" class="button">READ MORE</a>
84
+ </div>
85
+ </div>
86
+
87
+ {% endfor %}
88
+ </div>
89
+ <div class="featured-other">
90
+ {%- for post in toppost offset:1 limit:2-%}
91
+ <div class="featured-other--wrap {% cycle "odd", "even" %}">
92
+ <div class="featured-other--blog">{{ site.title }}</div>
93
+ <div class="featured-other--image" style="background-image: url({{post.featured-image}}); background-position: center; background-size: cover; "></div>
94
+ <div class="featured-other--post">
95
+ <div class="featured-other--author">
96
+ {%- assign author = site.data.experts | where_exp:"expert", "expert.name == post.author" -%}
97
+ {%- if author.size > 0 -%}
98
+ <div class="featured-other--author-pic">
99
+ <img src="{{ author[0].image }}" alt="">
100
+ <span><a href="{{ author[0].link }}">{{ author[0].name }}</a></span>
101
+ </div>
102
+ {%- else -%}
103
+ <div class="featured-other--author-pic">
104
+ <img src="/uploads/author-placeholder.jpg" alt="">
105
+ <span>{{ post.author | markdownify | remove:"<p>" | remove:"</p>"}}</span>
106
+ </div>
107
+ {%- endif -%}
108
+ <div class="featured-other--author-data">
109
+ <p>{{ post.date | date: '%m/%d' }} | {% capture time %}{{ post.content | reading_time }}{% endcapture %} {{ time }} min read</p>
110
+ </div>
111
+ </div>
112
+ <div class="featured-other--post-wrap">
113
+ <h4 class="featured-other--title">{{ post.title | truncate: 84 }}<hr class="bar"></h4>
114
+ <p class="featured-other--summary">{{ post.summary | markdownify | remove:'<p>' | rmeove:'</p>' | truncate: 125}}</p>
115
+ <a href="{{ post.url }}" class="button">READ MORE</a>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ {%- endfor -%}
120
+ </div>
121
+ <div class="recent">
122
+ <div class="featured--title">
123
+ <h2><span>RECENT</span> <span class="emphasize">ARTICLES</span></h2>
124
+ <hr class="bar">
125
+ </div>
126
+ <div class="shadow-wrap">
127
+ <div class="main-carousel">
128
+ {%- comment -%} This loop will have to be re-written once we can pull in more real posts, for right now we're just looping through the same 3 {%- endcomment -%}
129
+ {%- assign recent = site.posts -%}
130
+ {%- for post in recent limit:6 -%}
131
+ <div class="carousel-cell">
132
+ <div class="recent-blog">
133
+ <span>{{post.publication}}<span/>
134
+ </div>
135
+ <div class="recent-image">
136
+ <img src="{{post.featured-image}}"/>
137
+ </div>
138
+ <div class="featured-other--author">
139
+ {%- assign author = site.data.experts | where_exp:"expert", "expert.name == post.author" -%}
140
+ {%- if author.size > 0 -%}
141
+ <div class="featured-other--author-pic">
142
+ <img src="{{ author[0].image }}" alt="">
143
+ <span><a href="{{ author[0].link }}">{{ author[0].name }}</a></span>
144
+ </div>
145
+ {%- else -%}
146
+ <div class="featured-other--author-pic">
147
+ <img src="/uploads/author-placeholder.jpg" alt="">
148
+ <span>{{ post.author | markdownify | remove:"<p>" | remove:"</p>"}}</span>
149
+ </div>
150
+ {%- endif -%}
151
+ <div class="featured-other--author-data">
152
+ <p>{{ post.date | date: '%m/%d' }} | {% capture time %}{{ post.content | reading_time }}{% endcapture %} {{ time }} min read</p>
153
+ </div>
154
+ </div>
155
+ <h4 class="featured-other--title">{{ post.title | truncate: 84 }}<hr class="bar"></h4>
156
+ <p class="featured-other--summary">{{ post.summary | markdownify | remove:'<p>' | rmeove:'</p>' | truncate: 125}}</p>
157
+ <a href="{{ post.url }}" class="button">READ MORE</a>
158
+ </div>
159
+ {%- endfor -%}
160
+ </div>
161
+ </div>
162
+ </div>
163
+ <div class="more">
164
+ <div class="featured--title">
165
+ <h2><span>MORE</span> <span class="emphasize">NEWS</span></h2>
166
+ <hr class="bar">
167
+ </div>
168
+ <div class="more-block-wrap">
169
+ {%- comment -%} @FIXME We'll need to activate this logic when we've got more posts to work with in the site{%- assign morepost = site.posts | were_exp:"pos","post.weight < 8" -%} {%- endcomment -%}
170
+ {%- assign more = site.posts | where_exp:"post", "post.weight < 8" -%}
171
+ {%- for post in more limit:9 -%}
172
+ <div class="more-block">
173
+ <hr class="bar">
174
+ <h3 class="more-title">{{ post.title | truncate:85 }}</h3>
175
+ <div class="more-details"><span class="more-blog">{{ post.publication }}</span><span class="more-time"><svg class="clock-icon" viewBox="0 0 110 110" preserveAspectRatio="xMinYMax meet"><use xlink:href="#clock"></use></svg> {% capture time %}{{ post.content | reading_time }}{% endcapture %} {{ time }} min read
176
+ </span> </div>
177
+ </div>
178
+ {%- endfor -%}
179
+ </div>
180
+ </div>
181
+
data/_layouts/post.html CHANGED
@@ -0,0 +1,31 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="post-wrapper">
5
+ <div class="lead-wrap">
6
+ <div class="post-summary">
7
+ <h3 class="summary-publication without-style"><a href="{%- for link in site.data.global-nav -%}{%- if page.publication == link.text -%}{{ link.link }}{%- endif -%}{%- endfor -%}">{{ page.publication }}</a></h3>
8
+ <h1 class ="summary-title">{{ page.title }}
9
+ <hr class="bar">
10
+ </h1>
11
+ <div class="summary-details">
12
+ <p class="details-time">{% capture time %}{{ page.content | reading_time }}{% endcapture %} {{ time }} min read</p>
13
+ {%- assign author = site.data.experts | where_exp:"expert", "expert.name == page.author" -%}
14
+ {%- if author.size > 0 -%}
15
+ <p class="details-author">By <a href="{{author[0].link}}">{{author[0].name}}</a></p>
16
+ {%- else -%}
17
+ <p class="details-author">By {{ page.author | markdownify | remove:"<p>" | remove:"</p>"}}</p>
18
+ {%- endif -%}
19
+ <p>Tags: {% for tag in page.tags %}<a href=" ">{{ tag }}</a> {% unless forloop.last %}<span class="seperator">/</span> {% endunless %} {% endfor %}</p>
20
+ </div>
21
+ <div class="summary-summary">
22
+ {{ page.summary }}
23
+ </div>
24
+ </div>
25
+ <div class="post-image" style="background-image: url({{ page.featured-image }})"></div>
26
+ </div>
27
+
28
+ <div class="post-body">
29
+ {{content}}
30
+ </div>
31
+ </div>
@@ -1 +1,2 @@
1
+ @charset "utf-8";
1
2
  /*This will be overwritten by individually themed blog settings in each of the blogs: aka silence is golden*/