jekyll-theme-newtype 0.1.3 → 0.1.4

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/disqus.html +27 -0
  3. data/_includes/footer.html +2 -4
  4. data/_includes/head.html +2 -2
  5. data/_includes/header.html +0 -31
  6. data/_includes/navigation.html +5 -0
  7. data/_includes/post_preview.html +2 -2
  8. data/_layouts/category_index.html +5 -6
  9. data/_layouts/default.html +45 -21
  10. data/_layouts/home.html +2 -0
  11. data/_layouts/page.html +6 -0
  12. data/_layouts/post.html +26 -0
  13. data/_sass/layout.scss +203 -0
  14. data/_sass/newtype.scss +2 -36
  15. data/_sass/typography.scss +67 -0
  16. data/_sass/vars.scss +32 -0
  17. data/assets/fonts/cmunbxo.otf +0 -0
  18. data/assets/fonts/cmunsi.otf +0 -0
  19. data/assets/fonts/cmunss.otf +0 -0
  20. data/assets/fonts/cmunsx.otf +0 -0
  21. data/assets/site_icon.png +0 -0
  22. data/assets/site_logo.png +0 -0
  23. data/assets/style.scss +1 -0
  24. metadata +13 -19
  25. data/_includes/navbar.html +0 -9
  26. data/_sass/skeleton/base/_base-styles.scss +0 -37
  27. data/_sass/skeleton/base/_functions.scss +0 -17
  28. data/_sass/skeleton/base/_normalize.scss +0 -428
  29. data/_sass/skeleton/base/_typography.scss +0 -29
  30. data/_sass/skeleton/base/_utils.scss +0 -20
  31. data/_sass/skeleton/base/_variables.scss +0 -32
  32. data/_sass/skeleton/modules/_buttons.scss +0 -147
  33. data/_sass/skeleton/modules/_code.scss +0 -18
  34. data/_sass/skeleton/modules/_forms.scss +0 -88
  35. data/_sass/skeleton/modules/_grid.scss +0 -116
  36. data/_sass/skeleton/modules/_lists.scss +0 -32
  37. data/_sass/skeleton/modules/_media-queries.scss +0 -22
  38. data/_sass/skeleton/modules/_spacing.scss +0 -26
  39. data/_sass/skeleton/modules/_tables.scss +0 -19
  40. data/_sass/skeleton/normalize.scss +0 -427
  41. data/_sass/skeleton/skeleton.scss +0 -418
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c523f512e91640e75298aa0ba3bc056dbf6ce99cf24ac427b8bc5f1cae24f1a
4
- data.tar.gz: b5251cc73011848665eb7172fca6a5af7f1bdb54efc2368c314d121b73d0f8b2
3
+ metadata.gz: 46e24761c2a1003abf067a9ecef6df083e6e1f4610fac1702c47900e8fc0c53f
4
+ data.tar.gz: 29e71cfae231af1d43453a58bb20d8cb207d091526486817341c07865f2d6dea
5
5
  SHA512:
6
- metadata.gz: cb1782e15f9c6662df430297372be516d1741fe3862311591055b12afac8c6be33ed8a4d5cb99af4a1eb3141acc9093258256d4c95515232244f334a2c34f80f
7
- data.tar.gz: 0bc50665e4b48b488ac7a7f13baf2b5d29ac6fd90c9a23599dda33cdbed7a6a0f478f1bc982b0956aa81c1812c6c0477165bedb8a8ec0c0666b298306372ab04
6
+ metadata.gz: a8d7029b05715145372986c6e8a2eab0d9718bbd0c5d33f50d06f5a58b01689f1b00ebd81381ae234e5b5420ba32793002990e0a9eb7479026e456e40ed68595
7
+ data.tar.gz: dacc171749d2b3b367c9ee1c2452d8b6f0540e951e4428103f3d91756f7d69008362339ce0f42b223f7f46aaa4f5d82d743d2da86a492bf305068db835a6faa4
@@ -0,0 +1,27 @@
1
+ {% if site.disqus and layout.commentable %}
2
+ <script>
3
+
4
+ /**
5
+ * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
6
+ * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
7
+
8
+ var disqus_config = function () {
9
+ this.page.url = "{{ page.url | absolute_url }}"; // Replace PAGE_URL with your page's canonical URL variable
10
+ this.page.identifier = "{{ page.url }}"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
11
+ this.page.title = "{{ page.title }}";
12
+
13
+ };
14
+
15
+ (function() { // DON'T EDIT BELOW THIS LINE
16
+ var d = document, s = d.createElement('script');
17
+ s.src = 'https://{{ site.disqus }}.disqus.com/embed.js';
18
+ s.setAttribute('data-timestamp', +new Date());
19
+ (d.head || d.body).appendChild(s);
20
+ })();
21
+ </script>
22
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
23
+
24
+ <script id="dsq-count-scr"
25
+ src="//{{ site.disqus }}.disqus.com/count.js"
26
+ async></script>
27
+ {% endif %}
@@ -1,4 +1,2 @@
1
- <div class="container" >
2
- <h4>{{ site.title}}</h4>
3
- <p>{{ site.description }}</p>
4
- </div>
1
+ <h4>{{ site.title}}</h4>
2
+ <p>{{ site.description }}</p>
@@ -6,14 +6,14 @@
6
6
  {{ site.title + page.title }}
7
7
  </title>
8
8
  <meta name="viewport"
9
- content="width=device-width">
9
+ content="width=device-width, initial-scale=1;">
10
10
 
11
11
  <!-- CSS -->
12
12
  <link rel="stylesheet"
13
13
  href="{{ "/assets/style.css" | relative_url }}" />
14
14
  <link rel="icon"
15
15
  type="image/x-icon"
16
- href="{{ "/favicon.ico" | relative_url }}" />
16
+ href="{{ site.site_icon | relative_url }}" />
17
17
 
18
18
  <!-- Extensions -->
19
19
  <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
@@ -1,31 +0,0 @@
1
- <div class="container header">
2
- <div class="row">
3
- <header>
4
- <div class="four columns">
5
- <a href="{{ site.url }}">
6
- <img class="header-icon" src="{{ "/icon.png" | absolute_url }}" />
7
- </a>
8
- </div>
9
- <div class="eight columns">
10
- <a href="{{ site.url }}">
11
- <h1 class="header-title">{{ site.title}}</h1>
12
- </a>
13
- <h4>{{ site.description }}</h4>
14
- </div>
15
- </header>
16
- </div>
17
- <div class="row" >
18
- <div class="four columns" ><p></p></div>
19
- {% for link in site.social_links %}
20
- <div class="one column" >
21
- <a href="{{ link.url }}">
22
- {% if link.ico %}
23
- <img style="width: 2em;" src="{{ link.ico | absolute_url }}" />
24
- {% else %}
25
- <img style="width: 2em;" src="{%link /assets/bullet.svg %}" />
26
- {% endif %}
27
- </a>
28
- </div>
29
- {% endfor %}
30
- </div>
31
- </div>
@@ -0,0 +1,5 @@
1
+ {% for page in site.pages %}
2
+ {% if page.navbar %}
3
+ <a href="{{ page.url }}">{{ page.title }}</a>
4
+ {% endif %}
5
+ {% endfor %}
@@ -1,7 +1,7 @@
1
1
  <div class="row">
2
- <h3><a class=""
2
+ <h3><a class="link-to-post"
3
3
  href="{{ post.url | absolute_url }}">
4
- {{ post.title }}
4
+ {{ post.title | markdownify | remove_first: "<p>" | remove_last: "</p>" }}
5
5
  </a></h3>
6
6
  <span class="meta">{{ post.date | date_to_string }}</span>
7
7
  <p>
@@ -2,12 +2,11 @@
2
2
  layout: page
3
3
  ---
4
4
 
5
- {% if page.category_name %}
6
- {% assign category_name = page.category_name %}
7
- {% endif %}
8
-
9
5
  {{ content }}
10
6
 
11
- {% for post in site.categories[category_name] %}
12
- {% include post_preview.html %}
7
+ {% for category_name in page.category_list %}
8
+ <h1>{{ category_name | capitalize }}</h1>
9
+ {% for post in site.categories[category_name] %}
10
+ {% include post_preview.html %}
11
+ {% endfor %}
13
12
  {% endfor %}
@@ -2,27 +2,51 @@
2
2
 
3
3
  <html>
4
4
  {% include head.html %}
5
+ <body class="site-container">
6
+ <a class="site-title"
7
+ href="{{ site.url }}">
8
+ {{ site.title }}
9
+ </a>
10
+
11
+ <header class="site-description" >
12
+ {{ site.description }}
13
+ </header>
14
+
15
+ <a href="{{ site.url }}"
16
+ class="site-logo">
17
+ <img src="{{ site.site_logo | relative_url }}" />
18
+ </a>
19
+
20
+ <section class="site-contacts">
21
+ {% for link in site.social_links %}
22
+ <a href="{{ link.url }}">
23
+ {% if link.ico %}
24
+ <img style="width: 2em;"
25
+ src="{{ link.ico | absolute_url }}" />
26
+ {% else %}
27
+ <img style="width: 2em;"
28
+ src="{%link /assets/bullet.svg %}" />
29
+ {% endif %}
30
+ </a>
31
+ {% endfor %}
32
+ </section>
33
+
34
+ <nav class="site-navigation">
35
+ {% include navigation.html %}
36
+ </nav>
37
+
38
+ <section class="site-content">
39
+ {{ content }}
40
+ </section>
41
+
42
+ <section class="site-comments">
43
+ <div id="disqus_thread" ></div>
44
+ {% include disqus.html %}
45
+ </section>
46
+
47
+ <footer class="site-footer">
48
+ {% include footer.html %}
49
+ </footer>
5
50
 
6
- <body>
7
- {% include header.html %}
8
- <hr/>
9
-
10
- <div class="container">
11
- <div class="row" >
12
- <div class="two columns">
13
- {% include sidebar.html %}
14
- </div>
15
- <div class="eight columns">
16
- {{ content }}
17
- </div>
18
- <div class="two columns">
19
- <p></p>
20
- </div>
21
- </div>
22
- </div>
23
-
24
- <hr/>
25
-
26
- {% include footer.html %}
27
51
  </body>
28
52
  </html>
@@ -5,5 +5,7 @@ layout: default
5
5
  {{ content }}
6
6
 
7
7
  {% for post in site.posts %}
8
+ {% unless post.tags contains "draft" %}
8
9
  {% include post_preview.html %}
10
+ {% endunless %}
9
11
  {% endfor %}
@@ -2,4 +2,10 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
+ <article>
6
+ <header class="article-header">
7
+ <h2>{{ page.title }}</h2>
8
+ <p><strong>{{ page.date | date: '%B %d, %Y' }}</strong></p>
9
+ </header>
5
10
  {{ content }}
11
+ </article>
@@ -1,5 +1,31 @@
1
1
  ---
2
2
  layout: default
3
+ commentable: true
3
4
  ---
4
5
 
6
+ <article>
7
+ <header class="article-header">
8
+ <h1 class="article-title">
9
+ {{ page.title | markdownify | remove_first: "<p>" | remove_last: "</p>" }}
10
+ </h1>
11
+ <section class="article-email">
12
+ <strong>{{ site.email }}</strong>
13
+ </section>
14
+ <section class="article-date">
15
+ {{ page.date | date: "%B %d, %Y" }}
16
+ </section>
17
+ {% if page.categories.size > 0 %}
18
+ <section class="article-category">
19
+ Category:
20
+ {{ page.categories | join: "/" }}
21
+ </section>
22
+ {% endif %}
23
+ {% if page.tags.size > 0 %}
24
+ <section class="article-tags">Tags:
25
+ {{ page.tags | join: ", " }}
26
+ </section>
27
+ {% endif %}
28
+ </header>
29
+
5
30
  {{ content }}
31
+ </article>
@@ -0,0 +1,203 @@
1
+ @function mobile-columns($left-margin, $right-margin) {
2
+ $s1: $left-margin;
3
+ $s3: $right-margin;
4
+ // IDK if it'll work when $s1, $s3
5
+ // are specified in units other than vw
6
+ $s2: 100vw - $s1 - $s3;
7
+ @return $s1 $s2 $s3;
8
+ }
9
+
10
+ @function full-columns($page-width, $logo-width, $left-margin, $right-margin) {
11
+ $s1: $left-margin;
12
+ $s2: $logo-width - $left-margin;
13
+ $s3: $page-width - $s1 - $s2 - $right-margin;
14
+ $s4: $right-margin;
15
+ @return $s1 $s2 $s3 $s4;
16
+ }
17
+
18
+ .site-logo {
19
+ grid-area: site-logo;
20
+ }
21
+
22
+ .site-title {
23
+ grid-area: site-title;
24
+ }
25
+
26
+ .site-description {
27
+ grid-area: site-description;
28
+ }
29
+
30
+ .site-contacts {
31
+ grid-area: contacts;
32
+ }
33
+
34
+ .site-navigation {
35
+ grid-area: navigation;
36
+ }
37
+
38
+ .site-footer {
39
+ grid-area: footer;
40
+ }
41
+
42
+ .site-content {
43
+ grid-area: content;
44
+ display: flex;
45
+ flex-direction: column;
46
+ max-width: 100%;
47
+ }
48
+
49
+ .site-comments {
50
+ grid-area: comments;
51
+ }
52
+
53
+ @media(max-width: $tablet-width) {
54
+ $left-margin: 2vw;
55
+ $right-margin: 2vw;
56
+
57
+ .site-container {
58
+ margin: 0;
59
+ display: grid;
60
+ justify-content: center;
61
+ justify-items: center;
62
+ grid-template-columns: mobile-columns($left-margin, $right-margin);
63
+ grid-template-rows: minmax(2rem, min-content)
64
+ minmax(2rem, min-content)
65
+ minmax(2rem, min-content)
66
+ minmax(2rem, min-content)
67
+ minmax(2rem, min-content)
68
+ minmax(2rem, auto)
69
+ minmax(8rem, min-content)
70
+ minmax(2rem, auto);
71
+ grid-template-areas:
72
+ " site-logo site-logo site-logo"
73
+ " site-title site-title site-title"
74
+ " site-description site-description site-description"
75
+ " contacts contacts contacts"
76
+ " navigation navigation navigation"
77
+ " left-margin content right-margin "
78
+ " left-margin footer right-margin "
79
+ " left-margin comments right-margin ";
80
+ }
81
+
82
+ .site-logo {
83
+ display: flex;
84
+ flex-direction: row;
85
+ justify-content: center;
86
+ width: 100%;
87
+ }
88
+
89
+ .site-logo > img {
90
+ width: 100%;
91
+ flex-shrink: 0;
92
+ }
93
+
94
+ .site-description {
95
+ text-align: center;
96
+ }
97
+
98
+ .site-content {
99
+ margin-left: 2vw;
100
+ margin-right: 2vw;
101
+ }
102
+
103
+ .site-contacts {
104
+ justify-content: center;
105
+ }
106
+ }
107
+
108
+ @media(min-width: $tablet-width) {
109
+ .site-container {
110
+ margin-top: 0;
111
+ margin-bottom: 0;
112
+ overflow-y: scroll;
113
+ display: grid;
114
+ justify-content: center;
115
+ grid-template-columns: full-columns($page-width, $logo-width, $left-margin, $right-margin);
116
+ grid-template-rows: min-content
117
+ min-content
118
+ min-content
119
+ minmax(2rem, min-content)
120
+ minmax(2rem, auto)
121
+ minmax(8rem, min-content)
122
+ minmax(2rem, auto);
123
+ grid-template-areas:
124
+ " site-logo site-logo site-title site-title "
125
+ " site-logo site-logo site-description site-description "
126
+ " site-logo site-logo contacts contacts "
127
+ " navigation navigation navigation navigation "
128
+ " left-margin content content right-margin "
129
+ " left-margin footer footer right-margin "
130
+ " left-margin comments comments right-margin ";
131
+ }
132
+
133
+ .site-logo {
134
+ display: flex;
135
+ flex-direction: column;
136
+ justify-content: center;
137
+ }
138
+
139
+ .site-title {
140
+ padding-left: $logo-title-margin;
141
+ }
142
+
143
+ .site-logo > img {
144
+ width: $logo-width;
145
+ flex-shrink: 0;
146
+ }
147
+
148
+ .site-contacts {
149
+ justify-content: flex-start;
150
+ padding-left: $logo-title-margin;
151
+ }
152
+
153
+ .site-description {
154
+ padding-left: $logo-title-margin;
155
+ }
156
+ }
157
+
158
+ .site-title {
159
+ display: flex;
160
+ justify-content: flex-start;
161
+ }
162
+
163
+ .site-description {
164
+ margin-bottom: 1rem;
165
+ width: 100%;
166
+ }
167
+
168
+ .site-navigation {
169
+ display: flex;
170
+ flex-flow: row wrap;
171
+ justify-content: space-evenly;
172
+ align-content: center;
173
+ width: 100%;
174
+ max-width: 100vw;
175
+ }
176
+
177
+ .site-navigation > * {
178
+ text-decoration: none;
179
+ margin-right: 1rem;
180
+ }
181
+
182
+ .site-contacts {
183
+ display: flex;
184
+ flex-flow: row wrap;
185
+ align-items: space-between;
186
+ align-content: center;
187
+ width: 100%;
188
+ }
189
+
190
+ .site-contacts > * {
191
+ text-decoration: none;
192
+ margin-right: 1rem;
193
+ }
194
+
195
+ .article-header {
196
+ text-align: center;
197
+ margin-bottom: 4rem;
198
+ }
199
+
200
+ .site-comments {
201
+ width: 100%;
202
+ display: block;
203
+ }