tessellate 0.1.8 → 0.1.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 418a7d909307aa3300b53445e02730e4f617e68882412d59d0a8823c4357c131
4
- data.tar.gz: 782a65160b381bba43640d1b3b221ffe5b37278dda9611d3e6a7c18cb563df21
3
+ metadata.gz: d31a4253197a1e21c9f7b25c9eaf0bb0e915f06a9e082f37c9e0e917a1810404
4
+ data.tar.gz: 814f5471df4c253443015542c2578c59806bb9134d4837560bc682d24dbae043
5
5
  SHA512:
6
- metadata.gz: f85ae7aa1efdf48772d7363ddaca0c6264fed4cc1ad2ea7c16276488925e1c88b14954718ea7b8470f16ef47d7086a982eb1a85a006fd5c73e266928afd9a324
7
- data.tar.gz: 2377c299ae46d9ac8d7023e8e691c51ad3846d1458e4ee5b1bc9a6f2be0be63654d587a4b845bebbe5063b142bdf49a35abf0443d0e2a40719e565ed7503b2bb
6
+ metadata.gz: 48ae618914fcd234b8117db1ae1657d237afbac523a181141baaa3a88930174539164ab5a3eba313e8ca4eee683da96107810717831fce35af517ce997545589
7
+ data.tar.gz: c42b0793038eeffe3cf9ba88284c4b750b989450190c141b263cfa67dc0a20ebbf27baa1b50b1840c5222b9e3e3168fa940bff7e6422753aec42c2ed8c99ed57
data/README.md CHANGED
@@ -1,7 +1,29 @@
1
1
  # tessellate
2
2
 
3
+ <p align="center">
4
+ <a href="https://github.com/PrestonHager/tessellate/actions/workflows/gem-push.yml">
5
+ <img
6
+ src="https://github.com/PrestonHager/tessellate/actions/workflows/gem-push.yml/badge.svg"
7
+ alt="Ruby Gem" />
8
+ </a>
9
+ <a href="https://rubygems.org/gems/tessellate">
10
+ <img src="http://img.shields.io/gem/v/tessellate.svg?style=flat-square"
11
+ alt="Gem Version" />
12
+ </a>
13
+ </p>
14
+
3
15
  Tessellate theme based on [HTML5 UP's Tessellate template][0].
4
16
  Aimed at sectioned content allowing for a wide range of layouts.
17
+ This theme is great for use with a one-page site or a multi-page site.
18
+
19
+ ## Preview
20
+
21
+ <details>
22
+ <summary>See screenshot (very long image).</summary>
23
+
24
+ ![Preview](_showcase/preview.png)
25
+
26
+ </details>
5
27
 
6
28
  ## Installation
7
29
 
@@ -27,9 +49,8 @@ Or install it yourself as:
27
49
 
28
50
  ## Usage
29
51
 
30
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
31
-
32
- The basic layout is `page`, it takes a `header` and `cta` parameter.
52
+ The basic layout is `page`, it takes a `header` and `cta` parameter in the
53
+ frontmatter.
33
54
 
34
55
  ```yaml
35
56
  ---
@@ -83,8 +104,15 @@ Front matter goes here...
83
104
 
84
105
  ## Customization
85
106
 
86
- TODO: Write customization instructions here. Describe any available variables,
87
- layout options, and/or custom URL options.
107
+ You may change the syntax highlighting theme by overwriting the `syntax.css`
108
+ file in the `assets/css` directory. Either find a rouge theme online, or use
109
+ `rougify` to generate the css from a sublime theme file. The default theme is
110
+ `monokai`. Two command you may find useful are:
111
+
112
+ ```sh
113
+ $ bundle exec rougify help style
114
+ $ bundle exec rougify style monokai > assets/css/syntax.css
115
+ ```
88
116
 
89
117
  ## Contributing
90
118
 
data/_config.yml CHANGED
@@ -22,3 +22,11 @@ socials:
22
22
 
23
23
  copyright: '&copy; 2025. All rights reserved.'
24
24
 
25
+
26
+ # These attributes are required for theme highlighting, only overwrite if you
27
+ # know what you're doing.
28
+ markdown: kramdown
29
+ highlighter: rouge
30
+ kramdown:
31
+ input: GFM
32
+
data/_data/navigation.yml CHANGED
@@ -2,60 +2,15 @@
2
2
  url: "/"
3
3
  side: left
4
4
 
5
- - title: About
6
- url: "/about/project/"
5
+ - title: Project
6
+ url: "/project/"
7
7
  side: left
8
8
  dropdown:
9
- - title: "Project"
10
- url: "/about/project/"
11
- - title: "Team"
12
- url: "/about/team/"
9
+ - title: "About"
10
+ url: "/project/#about"
11
+ - title: "Documentation"
12
+ url: "/project/documentation/"
13
13
 
14
- - title: Research
15
- url: "/research/"
16
- side: left
17
- dropdown:
18
- - title: "Task 1"
19
- url: "/research/task-1/"
20
- - title: "Task 2"
21
- url: "/research/task-2/"
22
- - title: "Task 3"
23
- url: "/research/task-3/"
24
- - title: "Task 4"
25
- url: "/research/task-4/"
26
- - title: "Task 5"
27
- url: "/research/task-5/"
28
- - title: "Task 6"
29
- url: "/research/task-6/"
30
-
31
- - title: "Education & Outreach"
32
- url: "/education-outreach/"
33
- side: left
34
-
35
- - title: Resources
36
- url: "/resources/"
37
- side: left
38
- dropdown:
39
- - title: "Publications"
40
- url: "/resources/publications/"
41
- - title: "Code"
42
- url: "/resources/code/"
43
- - title: "Data"
44
- url: "/resources/data/"
45
-
46
- - title: "News & Events"
47
- url: "/news-and-events/"
48
- side: left
49
- dropdown:
50
- - title: "News"
51
- url: "/news-and-events/news/"
52
- - title: "Calendar"
53
- url: "/calendar/"
54
-
55
- - title: "Search"
56
- url: "/search/"
57
- side: right
58
-
59
- - title: "Contact"
14
+ - title: Contact
60
15
  url: "/contact/"
61
16
  side: right
@@ -14,8 +14,8 @@ To use this contact form use the following:
14
14
  <section id="{{ section-id }}" class="main">
15
15
  <header>
16
16
  <div class="container">
17
- <h2>{{ include.section_title }}</h2>
18
- <p>{{ include.section_body }}</p>
17
+ <h2>{{ include.title }}</h2>
18
+ <p>{{ include.body }}</p>
19
19
  </div>
20
20
  </header>
21
21
  <div class="content style4 featured">
@@ -20,9 +20,9 @@
20
20
  {% endfor %}
21
21
  {% for item in navigation_right %}
22
22
  {% if forloop.first %}
23
- <div class="nav-item" style="margin-left: auto;">
23
+ <div class="nav-item nav-item-right" style="margin-left: auto;">
24
24
  {% else %}
25
- <div class="nav-item">
25
+ <div class="nav-item nav-item-right">
26
26
  {% endif %}
27
27
  <a href="{{ item.url }}" class="btn btn-primary btn-block">{{ item.title }}</a>
28
28
  {% if item.dropdown %}
@@ -12,11 +12,11 @@
12
12
  </div>
13
13
  </header>
14
14
  {% endif %}
15
- {% assign style = style4 %}
15
+ {% assign style = style1 %}
16
16
  {% if page.style %}
17
17
  {% assign style = page.style %}
18
18
  {% endif %}
19
- <div class="content dark {{ style }} featured">
19
+ <div class="content dark {{ style }} featured default">
20
20
  <div class="container">
21
21
  {{ content }}
22
22
  </div>
data/_layouts/page.html CHANGED
@@ -11,8 +11,13 @@
11
11
  <meta charset="utf-8" />
12
12
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
13
13
  <link rel="stylesheet" href="/assets/css/style.css" />
14
+ <link rel="stylesheet" href="/assets/css/syntax.css" />
14
15
  </head>
15
- <body class="is-preload">
16
+ <body
17
+ class="is-preload"
18
+ {% if page.section-id %} id="{{ page.section-id }}"{% endif %}
19
+ {% if page.class %} class="{{ page.class }}"{% endif %}
20
+ >
16
21
  {% if site.data.navigation %}
17
22
  {% include navigation.html %}
18
23
  {% endif %}
@@ -22,7 +22,8 @@
22
22
  {% if page.columns %}
23
23
  {% assign column_width = 12 | divided_by: page.columns %}
24
24
  {% endif %}
25
- {% assign content_split = page.content | markdown_split %}
25
+ {% assign columns = page.columns | default: 3 %}
26
+ {% assign content_split = page.content | paragraph_split: columns %}
26
27
  {% for body in content_split %}
27
28
  <div class="col-{{ column_width }} col-12-narrow">
28
29
  {{ body | markdownify }}
@@ -33,7 +33,7 @@
33
33
  {% if page.cta %}
34
34
  <div class="col-12">
35
35
  <footer>
36
- <a href="#{{ cta.link }}" class="button scrolly">{{ cta.text }}</a>
36
+ <a href="{{ page.cta.link }}" class="button scrolly">{{ page.cta.text }}</a>
37
37
  </footer>
38
38
  </div>
39
39
  {% endif %}
@@ -18,6 +18,14 @@
18
18
  <span class="image featured"><img src="{{ page.image }}" alt="" /></span>
19
19
  {% endif %}
20
20
  <div class="row">
21
+ {% assign content_paragraphs = page.content | paragraph_split: 3 %}
22
+ {% for paragraph in content_paragraphs %}
23
+ <div class="col-4 col-12-narrow">
24
+ {{ paragraph | markdownify }}
25
+ </div>
26
+ {% endfor %}
27
+
28
+ {% comment %}
21
29
  {% assign content_body = page.content | split: " " %}
22
30
  {% assign length = content_body | size %}
23
31
  {% assign part_length = length | divided_by: 3 %}
@@ -30,12 +38,13 @@
30
38
  </div>
31
39
  <div class="col-4 col-12-narrow">
32
40
  {{ content_body | slice: part_length_double, part_length | join: " " | markdownify }}
33
- {% if page.cta %}
34
- <footer>
35
- <a href="{{ page.cta.link }}" class="button scrolly">{{ page.cta.text }}</a>
36
- </footer>
37
- {% endif %}
38
41
  </div>
42
+ {% endcomment %}
43
+ {% if page.cta %}
44
+ <footer>
45
+ <a href="{{ page.cta.link }}" class="button scrolly">{{ page.cta.text }}</a>
46
+ </footer>
47
+ {% endif %}
39
48
  </div>
40
49
  </div>
41
50
  </div>
@@ -8,7 +8,7 @@
8
8
  <header>
9
9
  <div class="container">
10
10
  <h2>{{ page.header.title }}</h2>
11
- <p>{{ page.header.subtitle }}</p>
11
+ <p>{{ page.header.body }}</p>
12
12
  </div>
13
13
  </header>
14
14
  {% endif %}
@@ -33,7 +33,7 @@
33
33
  {% endif %}
34
34
  {% for image in page.images %}
35
35
  <div class="col-{{ column_width }}">
36
- <a href="{{ image.link }}" class="image fit">
36
+ <a href="{{ image.link }}" class="image fit scrolly">
37
37
  <img
38
38
  src="{{ image.url }}"
39
39
  alt="{{ image.alt }}"
@@ -47,6 +47,7 @@
47
47
  article, aside, details, figcaption, figure,
48
48
  footer, header, hgroup, menu, nav, section {
49
49
  display: block;
50
+ width: 100%;
50
51
  }
51
52
 
52
53
  body {
@@ -98,6 +99,7 @@
98
99
  margin: 0;
99
100
  }
100
101
  .navbar {
102
+ font-size: 0.75em;
101
103
  margin: 0;
102
104
  overflow: visible;
103
105
  position: fixed;
@@ -108,7 +110,7 @@
108
110
 
109
111
  .nav-item {
110
112
  display: inline-block;
111
- padding: 0.5em 1em;
113
+ padding: 0.35em 0.75em;
112
114
  text-align: center;
113
115
  text-transform: uppercase;
114
116
  background: #f9f9f9;
@@ -145,6 +147,10 @@
145
147
  visibility: visible;
146
148
  }
147
149
  }
150
+
151
+ .nav-item.nav-item-right:last-child {
152
+ margin-right: 1em;
153
+ }
148
154
  }
149
155
 
150
156
  /* Basic */
@@ -312,7 +318,7 @@
312
318
  clear: both;
313
319
  }
314
320
 
315
- .featured {
321
+ .featured:not(.default) {
316
322
  text-align: center;
317
323
 
318
324
  p {
@@ -1276,8 +1282,8 @@
1276
1282
  /* Button */
1277
1283
 
1278
1284
  .button {
1279
- padding-left: 0;
1280
- padding-right: 0;
1285
+ padding-left: 0.5em;
1286
+ padding-right: 0.5em;
1281
1287
  width: 100%;
1282
1288
  max-width: 24em;
1283
1289
  }
@@ -1332,3 +1338,14 @@
1332
1338
  }
1333
1339
 
1334
1340
  }
1341
+
1342
+ /* Code section formatting
1343
+ -------------------------------------------------- */
1344
+
1345
+ pre.highlight {
1346
+ padding: 0.25em 0.5em 0.25em 0.5em;
1347
+ overflow-x: scroll;
1348
+ margin-bottom: 1em;
1349
+ overflow: auto;
1350
+ }
1351
+
@@ -0,0 +1,203 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight .gh {
4
+ color: #999999;
5
+ }
6
+ .highlight .sr {
7
+ color: #f6aa11;
8
+ }
9
+ .highlight .go {
10
+ color: #888888;
11
+ }
12
+ .highlight .gp {
13
+ color: #555555;
14
+ }
15
+ .highlight .ge {
16
+ font-style: italic;
17
+ }
18
+ .highlight .ges {
19
+ font-weight: bold;
20
+ font-style: italic;
21
+ }
22
+ .highlight .gs {
23
+ font-weight: bold;
24
+ }
25
+ .highlight .gu {
26
+ color: #aaaaaa;
27
+ }
28
+ .highlight .nb {
29
+ color: #f6aa11;
30
+ }
31
+ .highlight .cm {
32
+ color: #75715e;
33
+ }
34
+ .highlight .cp {
35
+ color: #75715e;
36
+ }
37
+ .highlight .c1 {
38
+ color: #75715e;
39
+ }
40
+ .highlight .cs {
41
+ color: #75715e;
42
+ }
43
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
44
+ color: #75715e;
45
+ }
46
+ .highlight .err {
47
+ color: #960050;
48
+ }
49
+ .highlight .gr {
50
+ color: #960050;
51
+ }
52
+ .highlight .gt {
53
+ color: #960050;
54
+ }
55
+ .highlight .gd {
56
+ color: #49483e;
57
+ }
58
+ .highlight .gi {
59
+ color: #49483e;
60
+ }
61
+ .highlight .kc {
62
+ color: #66d9ef;
63
+ }
64
+ .highlight .kd {
65
+ color: #66d9ef;
66
+ }
67
+ .highlight .kr {
68
+ color: #66d9ef;
69
+ }
70
+ .highlight .no {
71
+ color: #66d9ef;
72
+ }
73
+ .highlight .kt {
74
+ color: #66d9ef;
75
+ }
76
+ .highlight .mf {
77
+ color: #ae81ff;
78
+ }
79
+ .highlight .mh {
80
+ color: #ae81ff;
81
+ }
82
+ .highlight .il {
83
+ color: #ae81ff;
84
+ }
85
+ .highlight .mi {
86
+ color: #ae81ff;
87
+ }
88
+ .highlight .mo {
89
+ color: #ae81ff;
90
+ }
91
+ .highlight .m, .highlight .mb, .highlight .mx {
92
+ color: #ae81ff;
93
+ }
94
+ .highlight .sc {
95
+ color: #ae81ff;
96
+ }
97
+ .highlight .se {
98
+ color: #ae81ff;
99
+ }
100
+ .highlight .ss {
101
+ color: #ae81ff;
102
+ }
103
+ .highlight .sd {
104
+ color: #e6db74;
105
+ }
106
+ .highlight .s2 {
107
+ color: #e6db74;
108
+ }
109
+ .highlight .sb {
110
+ color: #e6db74;
111
+ }
112
+ .highlight .sh {
113
+ color: #e6db74;
114
+ }
115
+ .highlight .si {
116
+ color: #e6db74;
117
+ }
118
+ .highlight .sx {
119
+ color: #e6db74;
120
+ }
121
+ .highlight .s1 {
122
+ color: #e6db74;
123
+ }
124
+ .highlight .s, .highlight .sa, .highlight .dl {
125
+ color: #e6db74;
126
+ }
127
+ .highlight .na {
128
+ color: #a6e22e;
129
+ }
130
+ .highlight .nc {
131
+ color: #a6e22e;
132
+ }
133
+ .highlight .nd {
134
+ color: #a6e22e;
135
+ }
136
+ .highlight .ne {
137
+ color: #a6e22e;
138
+ }
139
+ .highlight .nf, .highlight .fm {
140
+ color: #a6e22e;
141
+ }
142
+ .highlight .vc {
143
+ color: #ffffff;
144
+ background-color: #272822;
145
+ }
146
+ .highlight .nn {
147
+ color: #ffffff;
148
+ background-color: #272822;
149
+ }
150
+ .highlight .nl {
151
+ color: #ffffff;
152
+ background-color: #272822;
153
+ }
154
+ .highlight .ni {
155
+ color: #ffffff;
156
+ background-color: #272822;
157
+ }
158
+ .highlight .bp {
159
+ color: #ffffff;
160
+ background-color: #272822;
161
+ }
162
+ .highlight .vg {
163
+ color: #ffffff;
164
+ background-color: #272822;
165
+ }
166
+ .highlight .vi {
167
+ color: #ffffff;
168
+ background-color: #272822;
169
+ }
170
+ .highlight .nv, .highlight .vm {
171
+ color: #ffffff;
172
+ background-color: #272822;
173
+ }
174
+ .highlight .w {
175
+ color: #ffffff;
176
+ background-color: #272822;
177
+ }
178
+ .highlight {
179
+ color: #ffffff;
180
+ background-color: #272822;
181
+ }
182
+ .highlight .n, .highlight .py, .highlight .nx {
183
+ color: #ffffff;
184
+ background-color: #272822;
185
+ }
186
+ .highlight .ow {
187
+ color: #f92672;
188
+ }
189
+ .highlight .nt {
190
+ color: #f92672;
191
+ }
192
+ .highlight .k, .highlight .kv {
193
+ color: #f92672;
194
+ }
195
+ .highlight .kn {
196
+ color: #f92672;
197
+ }
198
+ .highlight .kp {
199
+ color: #f92672;
200
+ }
201
+ .highlight .o {
202
+ color: #f92672;
203
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tessellate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Preston Hager
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-07 00:00:00.000000000 Z
11
+ date: 2025-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -63,6 +63,25 @@ files:
63
63
  - assets/css/images/ie/content-style3.svg
64
64
  - assets/css/images/overlay.png
65
65
  - assets/css/style.scss
66
+ - assets/css/syntax.css
67
+ - assets/images/IMG_0001.jpg
68
+ - assets/images/IMG_0001_cropped.jpg
69
+ - assets/images/IMG_0002.jpg
70
+ - assets/images/IMG_0002_cropped.jpg
71
+ - assets/images/IMG_0003.jpg
72
+ - assets/images/IMG_0003_cropped.jpg
73
+ - assets/images/IMG_0004.jpg
74
+ - assets/images/IMG_0004_cropped.jpg
75
+ - assets/images/IMG_0005.jpg
76
+ - assets/images/IMG_0005_cropped.jpg
77
+ - assets/images/IMG_0006.jpg
78
+ - assets/images/IMG_0006_cropped.jpg
79
+ - assets/images/IMG_0007.jpg
80
+ - assets/images/IMG_0007_banner.jpg
81
+ - assets/images/IMG_0008.jpg
82
+ - assets/images/IMG_0009.jpg
83
+ - assets/images/IMG_0009_banner.jpg
84
+ - assets/images/IMG_0010.jpg
66
85
  - assets/js/breakpoints.min.js
67
86
  - assets/js/browser.min.js
68
87
  - assets/js/jquery.min.js