jekyll-theme-petridish 3.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 (149) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +57 -0
  4. data/_config.yml +54 -0
  5. data/_data/custom-navigation.yml +13 -0
  6. data/_data/footer.yml +25 -0
  7. data/_data/navigation.yml +24 -0
  8. data/_data/team.yml +26 -0
  9. data/_includes/card.html +41 -0
  10. data/_includes/footer.html +125 -0
  11. data/_includes/head.html +69 -0
  12. data/_includes/header.html +42 -0
  13. data/_includes/navbar.html +58 -0
  14. data/_includes/toc.html +182 -0
  15. data/_layouts/archive.html +46 -0
  16. data/_layouts/base.html +26 -0
  17. data/_layouts/default.html +41 -0
  18. data/_layouts/home.html +39 -0
  19. data/_layouts/team.html +76 -0
  20. data/_sass/_base.scss +18 -0
  21. data/_sass/_card.scss +51 -0
  22. data/_sass/_content.scss +108 -0
  23. data/_sass/_custom.scss +3 -0
  24. data/_sass/_footer.scss +38 -0
  25. data/_sass/_header.scss +103 -0
  26. data/_sass/_main.scss +6 -0
  27. data/_sass/_navbar.scss +27 -0
  28. data/_sass/_team.scss +23 -0
  29. data/_sass/_toc.scss +47 -0
  30. data/_sass/_variables.scss +72 -0
  31. data/_sass/bootstrap/_accordion.scss +118 -0
  32. data/_sass/bootstrap/_alert.scss +57 -0
  33. data/_sass/bootstrap/_badge.scss +29 -0
  34. data/_sass/bootstrap/_breadcrumb.scss +28 -0
  35. data/_sass/bootstrap/_button-group.scss +139 -0
  36. data/_sass/bootstrap/_buttons.scss +111 -0
  37. data/_sass/bootstrap/_card.scss +216 -0
  38. data/_sass/bootstrap/_carousel.scss +229 -0
  39. data/_sass/bootstrap/_close.scss +40 -0
  40. data/_sass/bootstrap/_containers.scss +41 -0
  41. data/_sass/bootstrap/_dropdown.scss +240 -0
  42. data/_sass/bootstrap/_forms.scss +9 -0
  43. data/_sass/bootstrap/_functions.scss +302 -0
  44. data/_sass/bootstrap/_grid.scss +33 -0
  45. data/_sass/bootstrap/_helpers.scss +9 -0
  46. data/_sass/bootstrap/_images.scss +42 -0
  47. data/_sass/bootstrap/_list-group.scss +174 -0
  48. data/_sass/bootstrap/_mixins.scss +43 -0
  49. data/_sass/bootstrap/_modal.scss +209 -0
  50. data/_sass/bootstrap/_nav.scss +139 -0
  51. data/_sass/bootstrap/_navbar.scss +335 -0
  52. data/_sass/bootstrap/_offcanvas.scss +83 -0
  53. data/_sass/bootstrap/_pagination.scss +64 -0
  54. data/_sass/bootstrap/_placeholders.scss +51 -0
  55. data/_sass/bootstrap/_popover.scss +158 -0
  56. data/_sass/bootstrap/_progress.scss +48 -0
  57. data/_sass/bootstrap/_reboot.scss +625 -0
  58. data/_sass/bootstrap/_root.scss +54 -0
  59. data/_sass/bootstrap/_spinners.scss +69 -0
  60. data/_sass/bootstrap/_tables.scss +155 -0
  61. data/_sass/bootstrap/_toasts.scss +51 -0
  62. data/_sass/bootstrap/_tooltip.scss +115 -0
  63. data/_sass/bootstrap/_transitions.scss +27 -0
  64. data/_sass/bootstrap/_type.scss +104 -0
  65. data/_sass/bootstrap/_utilities.scss +630 -0
  66. data/_sass/bootstrap/_variables.scss +1641 -0
  67. data/_sass/bootstrap/bootstrap-grid.scss +67 -0
  68. data/_sass/bootstrap/bootstrap-reboot.scss +13 -0
  69. data/_sass/bootstrap/bootstrap-utilities.scss +18 -0
  70. data/_sass/bootstrap/bootstrap.scss +53 -0
  71. data/_sass/bootstrap/forms/_floating-labels.scss +63 -0
  72. data/_sass/bootstrap/forms/_form-check.scss +152 -0
  73. data/_sass/bootstrap/forms/_form-control.scss +219 -0
  74. data/_sass/bootstrap/forms/_form-range.scss +91 -0
  75. data/_sass/bootstrap/forms/_form-select.scss +72 -0
  76. data/_sass/bootstrap/forms/_form-text.scss +11 -0
  77. data/_sass/bootstrap/forms/_input-group.scss +121 -0
  78. data/_sass/bootstrap/forms/_labels.scss +36 -0
  79. data/_sass/bootstrap/forms/_validation.scss +12 -0
  80. data/_sass/bootstrap/helpers/_clearfix.scss +3 -0
  81. data/_sass/bootstrap/helpers/_colored-links.scss +12 -0
  82. data/_sass/bootstrap/helpers/_position.scss +30 -0
  83. data/_sass/bootstrap/helpers/_ratio.scss +26 -0
  84. data/_sass/bootstrap/helpers/_stacks.scss +15 -0
  85. data/_sass/bootstrap/helpers/_stretched-link.scss +15 -0
  86. data/_sass/bootstrap/helpers/_text-truncation.scss +7 -0
  87. data/_sass/bootstrap/helpers/_visually-hidden.scss +8 -0
  88. data/_sass/bootstrap/helpers/_vr.scss +8 -0
  89. data/_sass/bootstrap/mixins/_alert.scss +11 -0
  90. data/_sass/bootstrap/mixins/_backdrop.scss +14 -0
  91. data/_sass/bootstrap/mixins/_border-radius.scss +78 -0
  92. data/_sass/bootstrap/mixins/_box-shadow.scss +18 -0
  93. data/_sass/bootstrap/mixins/_breakpoints.scss +127 -0
  94. data/_sass/bootstrap/mixins/_buttons.scss +133 -0
  95. data/_sass/bootstrap/mixins/_caret.scss +64 -0
  96. data/_sass/bootstrap/mixins/_clearfix.scss +9 -0
  97. data/_sass/bootstrap/mixins/_color-scheme.scss +7 -0
  98. data/_sass/bootstrap/mixins/_container.scss +9 -0
  99. data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
  100. data/_sass/bootstrap/mixins/_forms.scss +144 -0
  101. data/_sass/bootstrap/mixins/_gradients.scss +47 -0
  102. data/_sass/bootstrap/mixins/_grid.scss +151 -0
  103. data/_sass/bootstrap/mixins/_image.scss +16 -0
  104. data/_sass/bootstrap/mixins/_list-group.scss +24 -0
  105. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  106. data/_sass/bootstrap/mixins/_pagination.scss +31 -0
  107. data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
  108. data/_sass/bootstrap/mixins/_resize.scss +6 -0
  109. data/_sass/bootstrap/mixins/_table-variants.scss +21 -0
  110. data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
  111. data/_sass/bootstrap/mixins/_transition.scss +26 -0
  112. data/_sass/bootstrap/mixins/_utilities.scss +89 -0
  113. data/_sass/bootstrap/mixins/_visually-hidden.scss +29 -0
  114. data/_sass/bootstrap/utilities/_api.scss +47 -0
  115. data/_sass/bootstrap/vendor/_rfs.scss +354 -0
  116. data/assets/theme/css/academicons.min.css +1 -0
  117. data/assets/theme/css/fontawesome-all.min.css +5 -0
  118. data/assets/theme/css/main.scss +59 -0
  119. data/assets/theme/css/pygments.css +77 -0
  120. data/assets/theme/fonts/academicons.eot +0 -0
  121. data/assets/theme/fonts/academicons.svg +1663 -0
  122. data/assets/theme/fonts/academicons.ttf +0 -0
  123. data/assets/theme/fonts/academicons.woff +0 -0
  124. data/assets/theme/images/chuttersnap-146799-unsplash.jpg +0 -0
  125. data/assets/theme/images/farnsworth_angelo-abear-1662775-unsplash.jpg +0 -0
  126. data/assets/theme/images/fry_ethan-hoover-311143-unsplash.jpg +0 -0
  127. data/assets/theme/images/petri-dish_1f9eb.png +0 -0
  128. data/assets/theme/js/anchor.min.js +9 -0
  129. data/assets/theme/js/bootstrap.min.js +7 -0
  130. data/assets/theme/js/bootstrap.min.js.map +1 -0
  131. data/assets/theme/js/jquery.min.js +2 -0
  132. data/assets/theme/js/popper.min.js +6 -0
  133. data/assets/theme/js/popper.min.js.map +1 -0
  134. data/assets/theme/webfonts/fa-brands-400.eot +0 -0
  135. data/assets/theme/webfonts/fa-brands-400.svg +3717 -0
  136. data/assets/theme/webfonts/fa-brands-400.ttf +0 -0
  137. data/assets/theme/webfonts/fa-brands-400.woff +0 -0
  138. data/assets/theme/webfonts/fa-brands-400.woff2 +0 -0
  139. data/assets/theme/webfonts/fa-regular-400.eot +0 -0
  140. data/assets/theme/webfonts/fa-regular-400.svg +801 -0
  141. data/assets/theme/webfonts/fa-regular-400.ttf +0 -0
  142. data/assets/theme/webfonts/fa-regular-400.woff +0 -0
  143. data/assets/theme/webfonts/fa-regular-400.woff2 +0 -0
  144. data/assets/theme/webfonts/fa-solid-900.eot +0 -0
  145. data/assets/theme/webfonts/fa-solid-900.svg +5034 -0
  146. data/assets/theme/webfonts/fa-solid-900.ttf +0 -0
  147. data/assets/theme/webfonts/fa-solid-900.woff +0 -0
  148. data/assets/theme/webfonts/fa-solid-900.woff2 +0 -0
  149. metadata +204 -0
@@ -0,0 +1,182 @@
1
+ {% capture tocWorkspace %}
2
+ {% comment %}
3
+ Copyright (c) 2017 Vladimir "allejo" Jimenez
4
+
5
+ Permission is hereby granted, free of charge, to any person
6
+ obtaining a copy of this software and associated documentation
7
+ files (the "Software"), to deal in the Software without
8
+ restriction, including without limitation the rights to use,
9
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the
11
+ Software is furnished to do so, subject to the following
12
+ conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
+ OTHER DEALINGS IN THE SOFTWARE.
25
+ {% endcomment %}
26
+ {% comment %}
27
+ Version 1.2.0
28
+ https://github.com/allejo/jekyll-toc
29
+
30
+ "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
31
+
32
+ Usage:
33
+ {% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
34
+
35
+ Parameters:
36
+ * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
37
+
38
+ Optional Parameters:
39
+ * sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
40
+ * class (string) : '' - a CSS class assigned to the TOC
41
+ * id (string) : '' - an ID to assigned to the TOC
42
+ * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
43
+ * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
44
+ * ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
45
+ * item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level
46
+ * submenu_class (string) : '' - add custom class(es) for each child group of headings; has support for '%level%' placeholder which is the current "submenu" heading level
47
+ * base_url (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content
48
+ * anchor_class (string) : '' - add custom class(es) for each anchor element
49
+ * skip_no_ids (bool) : false - skip headers that do not have an `id` attribute
50
+
51
+ Output:
52
+ An ordered or unordered list representing the table of contents of a markdown block. This snippet will only
53
+ generate the table of contents and will NOT output the markdown given to it
54
+ {% endcomment %}
55
+
56
+ {% capture newline %}
57
+ {% endcapture %}
58
+ {% assign newline = newline | rstrip %} <!-- Remove the extra spacing but preserve the newline -->
59
+
60
+ {% capture deprecation_warnings %}{% endcapture %}
61
+
62
+ {% if include.baseurl %}
63
+ {% capture deprecation_warnings %}{{ deprecation_warnings }}<!-- jekyll-toc :: "baseurl" has been deprecated, use "base_url" instead -->{{ newline }}{% endcapture %}
64
+ {% endif %}
65
+
66
+ {% if include.skipNoIDs %}
67
+ {% capture deprecation_warnings %}{{ deprecation_warnings }}<!-- jekyll-toc :: "skipNoIDs" has been deprecated, use "skip_no_ids" instead -->{{ newline }}{% endcapture %}
68
+ {% endif %}
69
+
70
+ {% capture jekyll_toc %}{% endcapture %}
71
+ {% assign orderedList = include.ordered | default: false %}
72
+ {% assign baseURL = include.base_url | default: include.baseurl | default: '' %}
73
+ {% assign skipNoIDs = include.skip_no_ids | default: include.skipNoIDs | default: false %}
74
+ {% assign minHeader = include.h_min | default: 1 %}
75
+ {% assign maxHeader = include.h_max | default: 6 %}
76
+ {% assign nodes = include.html | strip | split: '<h' %}
77
+
78
+ {% assign firstHeader = true %}
79
+ {% assign currLevel = 0 %}
80
+ {% assign lastLevel = 0 %}
81
+
82
+ {% capture listModifier %}{% if orderedList %}ol{% else %}ul{% endif %}{% endcapture %}
83
+
84
+ {% for node in nodes %}
85
+ {% if node == "" %}
86
+ {% continue %}
87
+ {% endif %}
88
+
89
+ {% assign currLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
90
+
91
+ {% if currLevel < minHeader or currLevel > maxHeader %}
92
+ {% continue %}
93
+ {% endif %}
94
+
95
+ {% assign _workspace = node | split: '</h' %}
96
+
97
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
98
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
99
+ {% assign htmlID = _idWorkspace[0] %}
100
+
101
+ {% assign _classWorkspace = _workspace[0] | split: 'class="' %}
102
+ {% assign _classWorkspace = _classWorkspace[1] | split: '"' %}
103
+ {% assign htmlClass = _classWorkspace[0] %}
104
+
105
+ {% if htmlClass contains "no_toc" %}
106
+ {% continue %}
107
+ {% endif %}
108
+
109
+ {% if firstHeader %}
110
+ {% assign minHeader = currLevel %}
111
+ {% endif %}
112
+
113
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
114
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
115
+
116
+ {% if include.item_class and include.item_class != blank %}
117
+ {% capture listItemClass %} class="{{ include.item_class | replace: '%level%', currLevel | split: '.' | join: ' ' }}"{% endcapture %}
118
+ {% endif %}
119
+
120
+ {% if include.submenu_class and include.submenu_class != blank %}
121
+ {% assign subMenuLevel = currLevel | minus: 1 %}
122
+ {% capture subMenuClass %} class="{{ include.submenu_class | replace: '%level%', subMenuLevel | split: '.' | join: ' ' }}"{% endcapture %}
123
+ {% endif %}
124
+
125
+ {% capture anchorBody %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %}
126
+
127
+ {% if htmlID %}
128
+ {% capture anchorAttributes %} href="{% if baseURL %}{{ baseURL }}{% endif %}#{{ htmlID }}"{% endcapture %}
129
+
130
+ {% if include.anchor_class %}
131
+ {% capture anchorAttributes %}{{ anchorAttributes }} class="{{ include.anchor_class | split: '.' | join: ' ' }}"{% endcapture %}
132
+ {% endif %}
133
+
134
+ {% capture listItem %}<a{{ anchorAttributes }}>{{ anchorBody }}</a>{% endcapture %}
135
+ {% elsif skipNoIDs == true %}
136
+ {% continue %}
137
+ {% else %}
138
+ {% capture listItem %}{{ anchorBody }}{% endcapture %}
139
+ {% endif %}
140
+
141
+ {% if currLevel > lastLevel %}
142
+ {% capture jekyll_toc %}{{ jekyll_toc }}<{{ listModifier }}{{ subMenuClass }}>{% endcapture %}
143
+ {% elsif currLevel < lastLevel %}
144
+ {% assign repeatCount = lastLevel | minus: currLevel %}
145
+
146
+ {% for i in (1..repeatCount) %}
147
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
148
+ {% endfor %}
149
+
150
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li>{% endcapture %}
151
+ {% else %}
152
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li>{% endcapture %}
153
+ {% endif %}
154
+
155
+ {% capture jekyll_toc %}{{ jekyll_toc }}<li{{ listItemClass }}>{{ listItem }}{% endcapture %}
156
+
157
+ {% assign lastLevel = currLevel %}
158
+ {% assign firstHeader = false %}
159
+ {% endfor %}
160
+
161
+ {% assign repeatCount = minHeader | minus: 1 %}
162
+ {% assign repeatCount = lastLevel | minus: repeatCount %}
163
+ {% for i in (1..repeatCount) %}
164
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
165
+ {% endfor %}
166
+
167
+ {% if jekyll_toc != '' %}
168
+ {% assign rootAttributes = '' %}
169
+ {% if include.class and include.class != blank %}
170
+ {% capture rootAttributes %} class="{{ include.class | split: '.' | join: ' ' }}"{% endcapture %}
171
+ {% endif %}
172
+
173
+ {% if include.id and include.id != blank %}
174
+ {% capture rootAttributes %}{{ rootAttributes }} id="{{ include.id }}"{% endcapture %}
175
+ {% endif %}
176
+
177
+ {% if rootAttributes %}
178
+ {% assign nodes = jekyll_toc | split: '>' %}
179
+ {% capture jekyll_toc %}<{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>{% endcapture %}
180
+ {% endif %}
181
+ {% endif %}
182
+ {% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc -}}
@@ -0,0 +1,46 @@
1
+ ---
2
+ layout: base
3
+ description: Template for a list of posts as cards, with full width.
4
+ ---
5
+
6
+ <div class="row">
7
+ <div class="col">
8
+
9
+ {{ content }}
10
+
11
+ </div>
12
+ </div>
13
+
14
+ <div class="row cards">
15
+ {% for item in site.posts %}
16
+ <div class="col-md-6 col-lg-4">
17
+ {% include card.html %}
18
+ </div>
19
+ {% endfor %}
20
+ </div>
21
+
22
+ <script>
23
+ // Filter cards on ?tag=value
24
+ $(document).ready(function() {
25
+ const urlParams = new URLSearchParams(window.location.search);
26
+
27
+ if (urlParams.has("tag") && urlParams.get("tag") != "") {
28
+ const tag = urlParams.get("tag"); // Will return 1st tag value + decode URI
29
+ const cleanTag = $.trim(tag.toLowerCase()); // Create tag as written in .card data-tags
30
+
31
+ $(".card").each(function() {
32
+ const cardTags = $(this).data("tags").split("|");
33
+ // Hide card if it does not contain the selected tag
34
+ if (!cardTags.includes(cleanTag)) {
35
+ $(this).parent().addClass("d-none");
36
+ }
37
+ });
38
+
39
+ $(".header .tags").append(
40
+ '<a class="badge{% if site.rounded_corners != false %} rounded-pill{% endif %}" href="{{ site.archive_permalink | relative_url }}">' +
41
+ tag + '<span class="btn-close btn-close-white"></span>' +
42
+ '</a>'
43
+ );
44
+ }
45
+ });
46
+ </script>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+ {% include navbar.html %}
8
+
9
+ <main>
10
+ {% include header.html %}
11
+
12
+ <div class="container content">
13
+
14
+ {{ content
15
+ | replace: '<table', '<div class="table-responsive"><table'
16
+ | replace: '</table>', '</table></div>'
17
+ | replace: '<table>', '<table class="table">'
18
+ }}
19
+
20
+ </div>
21
+ </main>
22
+
23
+ {% include footer.html %}
24
+
25
+ </body>
26
+ </html>
@@ -0,0 +1,41 @@
1
+ ---
2
+ layout: base
3
+ description: Default template for pages and posts, with contained width.
4
+ ---
5
+
6
+ <div class="row">
7
+ {% if page.toc %}
8
+ <div class="col-md-10 col-lg-3 mx-auto">
9
+ <div class="toc">
10
+ <h6>On this page</h6>
11
+ {% include toc.html
12
+ html=content
13
+ sanitize=true
14
+ h_min=2
15
+ h_max=3
16
+ %}
17
+ </div>
18
+ </div>
19
+ {% endif %}
20
+ <div class="col-md-10 col-lg-8 order-lg-first mx-auto">
21
+
22
+ {{ content }}
23
+
24
+ {% if page.comments %}
25
+ <div id="disqus_thread"></div>
26
+ <script>
27
+ // Configuration variables: https://disqus.com/admin/universalcode/#configuration-variables
28
+ var disqus_config = function () {
29
+ this.page.url = "{{ page.url | absolute_url }}";
30
+ };
31
+ (function() { // Don't edit below this line
32
+ var d = document, s = d.createElement("script");
33
+ s.src = "https://{{ site.social.disqus }}.disqus.com/embed.js";
34
+ s.setAttribute("data-timestamp", +new Date());
35
+ (d.head || d.body).appendChild(s);
36
+ })();
37
+ </script>
38
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
39
+ {% endif %}
40
+ </div>
41
+ </div>
@@ -0,0 +1,39 @@
1
+ ---
2
+ layout: base
3
+ description: Template for homepage.
4
+ remark: See also page.layout == 'home' in head.html and header.html.
5
+ ---
6
+
7
+ {% if site.tweets_on_home and site.social.twitter %}
8
+ {% assign two_col = true %}
9
+ {% endif %}
10
+
11
+ <div class="row">
12
+ <div class="{% if two_col %}col{% else %}col-md-10 col-lg-8 mx-auto{% endif %}">
13
+ <div class="row">
14
+ <div class="col">
15
+
16
+ {{ content }}
17
+
18
+ </div>
19
+
20
+ {% if two_col %}
21
+ <div class="col-lg-4">
22
+ <a class="twitter-timeline" data-height="500" data-link-color="{{ site.colors.links }}" href="https://twitter.com/{{ site.social.twitter }}?ref_src=twsrc%5Etfw">
23
+ Tweets by {{ site.social.twitter }}
24
+ </a>
25
+ <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
26
+ </div>
27
+ {% endif %}
28
+ </div>
29
+
30
+ {% if site.posts_on_home > 0 %}
31
+ <div class="row cards mt-4">
32
+ {% for item in site.posts limit:site.posts_on_home %}
33
+ <div class="col-md-6{% if two_col %} col-lg-4{% endif %}">
34
+ {% include card.html %}
35
+ </div>
36
+ {% endfor %}
37
+ </div>
38
+ {% endif %}
39
+ </div>
@@ -0,0 +1,76 @@
1
+ ---
2
+ layout: default
3
+ description: Template for team page.
4
+ ---
5
+
6
+ {% if page.team and site.data[page.team] %}
7
+ {% assign team = site.data[page.team] %}
8
+ {% elsif site.data.team %}
9
+ {% assign team = site.data.team %}
10
+ {% endif %}
11
+
12
+ {{ content }}
13
+
14
+ {% for member in team %}
15
+ <div class="d-flex team-member">
16
+ <div class="flex-shrink-0 me-3">
17
+ {% if member.image %}
18
+ <img src="{{ member.image | relative_url }}" alt="{{ member.name }}">
19
+ {% endif %}
20
+ </div>
21
+ <div>
22
+ <h5 id="{{ member.name | strip | url_encode }}">
23
+ {{ member.name }}
24
+ {% if member.role %}
25
+ <small class="text-muted">| {{ member.role }}</small>
26
+ {% endif %}
27
+ </h5>
28
+
29
+ {{ member.description | markdownify }}
30
+
31
+ <ul class="list-inline">
32
+ {% if member.orcid %}
33
+ <li class="list-inline-item">
34
+ <a href="https://orcid.org/{{ member.orcid }}"><i class="ai ai-orcid"></i></a>
35
+ </li>
36
+ {% endif %}
37
+
38
+ {% if member.researchgate %}
39
+ <li class="list-inline-item">
40
+ <a href="https://researchgate.net/profile/{{ member.researchgate }}"><i class="ai ai-researchgate"></i></a>
41
+ </li>
42
+ {% endif %}
43
+
44
+ {% if member.googlescholar %}
45
+ <li class="list-inline-item">
46
+ <a href="https://scholar.google.com/citations?user={{ member.googlescholar }}"><i class="ai ai-google-scholar"></i></a>
47
+ </li>
48
+ {% endif %}
49
+
50
+ {% if member.twitter %}
51
+ <li class="list-inline-item">
52
+ <a href="https://twitter.com/{{ member.twitter }}"><i class="fab fa-twitter"></i></a>
53
+ </li>
54
+ {% endif %}
55
+
56
+ {% if member.mastodon %}
57
+ <li class="list-inline-item">
58
+ <a href="{{ member.mastodon }}"><i class="fab fa-mastodon"></i></a>
59
+ </li>
60
+ {% endif %}
61
+
62
+ {% if member.github %}
63
+ <li class="list-inline-item">
64
+ <a href="https://github.com/{{ member.github }}"><i class="fab fa-github"></i></a>
65
+ </li>
66
+ {% endif %}
67
+
68
+ {% if member.email %}
69
+ <li class="list-inline-item">
70
+ <a href="mailto:{{ member.email }}"><i class="far fa-envelope"></i></a>
71
+ </li>
72
+ {% endif %}
73
+ </ul>
74
+ </div>
75
+ </div>
76
+ {% endfor %}
data/_sass/_base.scss ADDED
@@ -0,0 +1,18 @@
1
+ // General styling
2
+ //
3
+ // For content styling, see _content.scss
4
+
5
+ body {
6
+ word-wrap: break-word; // Allow long words (e.g. URLs) to wrap, so they don't break out of container
7
+ position: relative; // Required for scrollspy
8
+ }
9
+
10
+ .btn {
11
+ white-space: normal; // Wrap button within container
12
+ }
13
+
14
+ // Add padding to code blocks
15
+ pre.highlight {
16
+ padding: 0.25rem;
17
+ margin-bottom: $grid-gutter-width / 2;
18
+ }
data/_sass/_card.scss ADDED
@@ -0,0 +1,51 @@
1
+ // Blog post card
2
+
3
+ .cards {
4
+ // Mimics Bootstrap v4 .card-deck, stretching cards to equal height, but without
5
+ // stretching width when there are fewer cards on one row (cards remain equal width)
6
+ div[class*="col"] {
7
+ display: flex;
8
+ align-items: stretch;
9
+ }
10
+ }
11
+
12
+ .card {
13
+ margin-bottom: $grid-gutter-width;
14
+ min-width: 100%; // Use allowed width even if content is smaller
15
+
16
+ .card-title {
17
+ a {
18
+ text-decoration: none;
19
+ }
20
+ }
21
+
22
+ .card-img-top {
23
+ height: 150px;
24
+ object-fit: cover;
25
+ }
26
+
27
+ .card-subtitle {
28
+ color: $gray-600;
29
+ margin-bottom: 0.5rem;
30
+ }
31
+
32
+ .card-footer {
33
+ background: inherit;
34
+ border-top: none;
35
+
36
+ // Smaller badge then the one defined in _header.scss
37
+ .badge {
38
+ border: 1px solid $link-color;
39
+ color: $link-color;
40
+ font-family: $font-family-base;
41
+ text-decoration: none;
42
+ text-transform: uppercase;
43
+
44
+ &:hover,
45
+ &:focus {
46
+ border: 1px solid $link-hover-color;
47
+ color: $link-hover-color;
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,108 @@
1
+ // Content
2
+
3
+ .content {
4
+ font-family: $custom_font, $font-family-sans-serif;
5
+
6
+ // Use base font for headings
7
+ h1,
8
+ h2,
9
+ h3,
10
+ h4,
11
+ h5,
12
+ h6 {
13
+ font-family: $font-family-base;
14
+ }
15
+
16
+ // Hide h1 headings in content, its use is reserved for header
17
+ // If the markdown file has no frontmatter (e.g. README.md), Jekyll will use the first heading
18
+ // as page title, which would then appear in header and content. This avoids that.
19
+ h1 {
20
+ display: none;
21
+ }
22
+
23
+ // Add some space before h2, which are the main headings in content
24
+ h2 {
25
+ margin-top: 2rem;
26
+
27
+ // Don't add space if h2 is first element in content
28
+ &:first-child {
29
+ margin-top: 0;
30
+ }
31
+ }
32
+
33
+ .anchorjs-link:hover {
34
+ text-decoration: none;
35
+ }
36
+
37
+ // Add extra padding between checkbox and item
38
+ .task-list-item-checkbox {
39
+ margin-right: 0.5rem;
40
+ }
41
+
42
+ // Style blockquotes
43
+ blockquote {
44
+ border-left: 0.25rem solid $gray-200;
45
+ color: $gray-600;
46
+ padding: 0 1rem;
47
+ }
48
+
49
+ // Add aliases for float-left / float-right
50
+ .float-left {
51
+ @extend .float-start;
52
+ }
53
+ .float-right {
54
+ @extend .float-end;
55
+ }
56
+
57
+ // Style images (excluding inline images not wrapped in p)
58
+ p {
59
+ img {
60
+ display: block;
61
+ height: auto;
62
+ margin-left: auto; // Mimick .mx-auto
63
+ margin-right: auto; // Mimick .mx-auto
64
+ max-width: 100%; // Mimick .img-fluid
65
+
66
+ // Add margin between floated img and text
67
+ &.float-start {
68
+ margin-right: 0.5rem;
69
+ margin-bottom: 0.5rem;
70
+ }
71
+ &.float-end {
72
+ margin-left: 0.5rem;
73
+ margin-bottom: 0.5rem;
74
+ }
75
+ }
76
+
77
+ // Style captions
78
+ img + em {
79
+ display: block;
80
+ margin-top: 0.5rem;
81
+ margin-bottom: 0.5rem;
82
+ text-align: center;
83
+ }
84
+
85
+ // Add margin between floated paragraphs (often containing img) and text
86
+ &.float-left {
87
+ margin-right: 0.5rem;
88
+ margin-bottom: 0.5rem;
89
+ }
90
+ &.float-right {
91
+ margin-left: 0.5rem;
92
+ margin-bottom: 0.5rem;
93
+ }
94
+ }
95
+
96
+ // Style embedded content (video, Twitter feed)
97
+ iframe {
98
+ margin-bottom: $headings-margin-bottom;
99
+ }
100
+
101
+ // Force Twitter timeline to remain in container
102
+ .twitter-timeline {
103
+ width: 100vw !important;
104
+ }
105
+
106
+ // Style tables
107
+ // This is done by replacing '<table' with '<table class="table"' in {{ content }}
108
+ }
@@ -0,0 +1,3 @@
1
+ // Custom styling
2
+ //
3
+ // Include the file _sass/_custom.scss to your site to add custom styling
@@ -0,0 +1,38 @@
1
+ // Footer
2
+
3
+ body > footer {
4
+ background-color: $footer;
5
+ border-top: 5px solid lighten($footer, 50);
6
+ color: lighten($footer, 50);
7
+ font-size: 0.9rem;
8
+ padding: $grid-gutter-width / 2 0;
9
+
10
+ .container {
11
+ margin-top: 1rem;
12
+ }
13
+
14
+ a,
15
+ a:hover,
16
+ a:visited {
17
+ color: $white;
18
+ }
19
+
20
+ // Font Awesome icons
21
+ .fa-inverse {
22
+ color: $footer;
23
+ }
24
+ .fa-ul {
25
+ margin-left: 1.5rem;
26
+ }
27
+
28
+ // License notice
29
+ .small.mt-2 {
30
+ p {
31
+ display: inline;
32
+
33
+ & + p:before {
34
+ content: " — ";
35
+ }
36
+ }
37
+ }
38
+ }