jekyll-yamt 1.0.5 → 1.0.6

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: 5c45f59ca7aff77cc4e46e40d633c984527dee3a2e9ce10718ac29284ecf614b
4
- data.tar.gz: 8811005a69eca20d35451e89bb46251cf0a4642e2e8a15a264fdc994970eb1ca
3
+ metadata.gz: a4bfab715804649224b1a0bb91d4e646e6b0039bbaefdd76e30519d4ca3270d7
4
+ data.tar.gz: eac939f819d4463249643ffaaca57398b4974398ae5e01e29249958c7ed201c4
5
5
  SHA512:
6
- metadata.gz: de0d64ad922fd3066933bc0beb34bcf6c22c6cf4487ad5bd945b7658bbde098442bb2f9da67db4bc132cde6c42c1251f48d78ee0d898d4741f4bdacd096be147
7
- data.tar.gz: 8f9bcea9aaa1f85dd6cb44eb78148c8854ab9bf628bcce181d51b4ccd2499f56236fecbceffc483d6be64e6eec01aedaf5d7c094b694150a5a5ae25fb353c2f4
6
+ metadata.gz: f398be5a49c0deb3babce761cfe05d29c950f50b79a72a942e73180d4036ec09c8bfee6eb687902e0ccb9d660beeab07f41f19f33ef081842fbb7e786e454618
7
+ data.tar.gz: 8beb0498d9da2d6b7a6fd84aa96e0a787ce4948c6af9b4e95d0a12d1c0ae3a58ab4227ef5cb64f5fd32d615f87dd9f7a0794aa6a664b29e726ddb7bf88b40e5b
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # [YAMT - Yet Another Minimal Theme](https://yamt.netlify.app/)
2
2
  [![Netlify Status](https://api.netlify.com/api/v1/badges/249c3da6-7b23-4b57-915d-71934329e306/deploy-status)](https://yamt.netlify.app/)
3
- ![supports mathjax](https://img.shields.io/badge/Supports-MathJAX-blue)
3
+ ![](https://badgen.net/rubygems/dt/jekyll-yamt)
4
4
  [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/PandaSekh/Jekyll-YAMT/issues)
5
5
  ![GitHub forks](https://img.shields.io/github/forks/PandaSekh/Jekyll-YAMT?label=Fork%20it%21&style=social)
6
6
  ## [Live Demo](https://yamt.netlify.app/)
@@ -16,6 +16,7 @@ YAMT is a minimal [Jekyll](http://jekyllrb.com) theme focused on simplicity and
16
16
  - [Installation](#installation)
17
17
  - [Customize](#options)
18
18
  - [Basics](#Basics)
19
+ - [Typography](#Typography)
19
20
  - [Header](#header)
20
21
  - [Home](#home)
21
22
  - [Post](#post)
@@ -117,6 +118,9 @@ Out of the box this theme has support colors for a bunch of social. If your soci
117
118
 
118
119
  In `_data/settings.yml` you can activate or deactivate various functions of the theme, like analytics, disqus comments, related posts and so on.
119
120
 
121
+ ### Typography
122
+ By default YAMT uses the System Font STack, which greatly reduces load times. If you want to use the old Font Stack, in `assets/main.scss` change `typography` to `typography-old`.
123
+
120
124
  ### Header
121
125
  In `_data/settings.yml` you can choose to hide or show the subtitle, the page navigation or the social icons.
122
126
 
@@ -0,0 +1,10 @@
1
+ <section class="comments">
2
+ <script src="https://utteranc.es/client.js"
3
+ repo="#"
4
+ issue-term="pathname"
5
+ label="Comment 💬"
6
+ theme="github-light"
7
+ crossorigin="anonymous"
8
+ async>
9
+ </script>
10
+ </section>
@@ -1,3 +1,3 @@
1
1
  <footer class= "footer">
2
- <p>Copyright© {{site.author.name}} 2020. All right reserved. Theme designed by <a href="https://alessiofranceschi.me/">Alessio Franceschi</a>.</p>
3
- </footer>
2
+ <p>Copyright © {{ 'now' | date: "%Y" }} {{site.author.name}}. All rights reserved. Theme designed by <a href="https://alessiofranceschi.me/">Alessio Franceschi</a>.</p>
3
+ </footer>
@@ -1,4 +1,3 @@
1
- <html lang="en-US">
2
1
  <meta charset="UTF-8">
3
2
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
3
 
@@ -14,6 +13,10 @@
14
13
  {% else %}{{ site.description }}
15
14
  {% endif %}">
16
15
 
16
+ <!-- LINK TO ATOM FEED FOR SEO -->
17
+ <link rel="alternate" type="application/atom+xml" href="{{ site.url }}/feed.xml" />
18
+
19
+ <!-- FAVICON -->
17
20
  <link rel="icon" href="{{"assets/favicon.ico" | relative_url }}" type="image/x-icon">
18
21
  <link rel="shortcut icon" href="{{"assets/favicon.ico" | relative_url }}" type="image/x-icon">
19
22
 
@@ -24,9 +27,6 @@
24
27
  <!-- Icons -->
25
28
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
26
29
 
27
- <!-- Fonts -->
28
- <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=PT+Serif&display=swap">
29
-
30
30
  <!-- SEO Plugin -->
31
31
  {% seo %}
32
32
 
@@ -34,4 +34,4 @@
34
34
  {% if site.data.settings.analytics-id%}
35
35
  {%- include analytics.html -%}
36
36
  {% endif %}
37
- <!-- End Google Analytics -->
37
+ <!-- End Google Analytics -->
@@ -31,8 +31,8 @@
31
31
  {% include related-posts.html %}
32
32
  {% endif %}
33
33
 
34
- {% if site.data.settings.disqus.disqus_shortname %}
35
- {% include disqus.html %}
34
+ {% if site.data.settings.comments %}
35
+ {% include comments.html %}
36
36
  {% endif %}
37
37
  </div>
38
38
 
@@ -20,31 +20,6 @@ html{
20
20
  list-style: none;
21
21
  }
22
22
 
23
- //Disqus
24
- #load-comments{
25
- border: 1px solid #e0e0e0;
26
- border-radius: 3px;
27
- padding: 15px 35px;
28
- margin-left: auto;
29
- margin-right: auto;
30
- overflow: hidden;
31
- text-align: center;
32
- max-width: fit-content;
33
- //Make text not selectable
34
- -webkit-user-select: none;
35
- -moz-user-select: none;
36
- -ms-user-select: none;
37
- user-select: none;
38
- color: $base;
39
- }
40
-
41
- #load-comments:hover{
42
- cursor: pointer;
43
- color: black;
44
- background-color: $light-grey;
45
- }
46
- //End Disqus
47
-
48
23
  //Alerts
49
24
  .alert{
50
25
  padding: 20px;
@@ -52,7 +27,6 @@ html{
52
27
  color: #fff;
53
28
  display: block;
54
29
  font-size: larger;
55
- font-family: 'Montserrat', sans-serif;
56
30
  }
57
31
 
58
32
  .y{
@@ -99,7 +73,6 @@ blockquote {
99
73
  #markdown-toc::before {
100
74
  content: "Contents";
101
75
  font-size: 1.1rem;
102
- font-family: 'Montserrat', sans-serif;
103
76
  font-weight: bold;
104
77
  }
105
78
 
@@ -113,7 +86,6 @@ blockquote {
113
86
  line-height: 25px;
114
87
  li{
115
88
  a{
116
- font-family: 'PT Serif', serif;
117
89
  text-decoration: none;
118
90
  }
119
91
  a:hover{
@@ -124,4 +96,17 @@ blockquote {
124
96
  list-style: disc;
125
97
  }
126
98
  }
127
- //End ToC
99
+ //End ToC
100
+
101
+ //Archive
102
+ .archive-link{
103
+ text-decoration: none;
104
+ color: black;
105
+ font-style: italic;
106
+ font-size: 1.5rem;
107
+ }
108
+
109
+ .archive-link:hover{
110
+ text-decoration: underline;
111
+ }
112
+ //End Archive
@@ -1,6 +1,5 @@
1
1
  .form{
2
2
  .form-input{
3
- font-family: 'PT Serif', serif;
4
3
  font-size: 1rem;
5
4
  width: 100%;
6
5
  padding: 10px 0;
@@ -23,7 +22,6 @@
23
22
  border: black 1px solid;
24
23
  padding: 10px;
25
24
  border-radius: 10px;
26
- font-family: 'PT Serif', serif;
27
25
  }
28
26
  .form-button:hover{
29
27
  background-color: $light-grey;
@@ -44,7 +44,6 @@ header{
44
44
  a{
45
45
  text-decoration: none;
46
46
  color: $base;
47
- font-family: 'PT Serif', serif;
48
47
  margin-right: 3px;
49
48
  font-size: 1.05rem;
50
49
  }
@@ -33,5 +33,4 @@
33
33
  .post-info{
34
34
  font-size: 1rem;
35
35
  color: $base;
36
- font-family: 'PT Serif', serif;
37
36
  }
@@ -3,7 +3,7 @@
3
3
  overflow-y: auto;
4
4
  }
5
5
  .container {
6
- width: 80vw;
6
+ width: 88vw;
7
7
  }
8
8
  #header{
9
9
  width: 80vw;
@@ -48,4 +48,4 @@
48
48
  padding-left: 8px;
49
49
  padding-right: 0px;
50
50
  }
51
- }
51
+ }
@@ -0,0 +1,47 @@
1
+ h1, h2, h3, h4, h5, h6{
2
+ font-family: 'Montserrat', sans-serif;
3
+ margin-bottom: 10px;
4
+ text-decoration: none;
5
+ color: black;
6
+ a{
7
+ text-decoration: none;
8
+ color: black;
9
+ font-family: 'Montserrat', sans-serif;
10
+ }
11
+ }
12
+
13
+ p, ul, ol{
14
+ font-family: 'PT Serif', serif;
15
+ li{
16
+ font-family: 'PT Serif', serif;
17
+ font-size: 1.15rem;
18
+ }
19
+ }
20
+
21
+ h2{
22
+ margin-bottom: 0px;
23
+ }
24
+
25
+ h3{
26
+ font-size: 1.4rem;
27
+ }
28
+ h4{
29
+ font-size: 1.3rem;
30
+ }
31
+ h5{
32
+ font-size: 1.2rem;
33
+ }
34
+
35
+ p{
36
+ font-size: 1.15rem;
37
+ }
38
+
39
+ a .post-info .form{
40
+ font-family: 'PT Serif', serif;
41
+ .form-input .form-button{
42
+ font-family: 'PT Serif', serif;
43
+ }
44
+ }
45
+ #markdown-toc::before .alerts{
46
+ font-family: 'Montserrat', sans-serif;
47
+ }
@@ -1,19 +1,15 @@
1
1
  h1, h2, h3, h4, h5, h6{
2
- font-family: 'Montserrat', sans-serif;
3
2
  margin-bottom: 10px;
4
3
  text-decoration: none;
5
4
  color: black;
6
5
  a{
7
6
  text-decoration: none;
8
7
  color: black;
9
- font-family: 'Montserrat', sans-serif;
10
8
  }
11
9
  }
12
10
 
13
11
  p, ul, ol{
14
- font-family: 'PT Serif', serif;
15
12
  li{
16
- font-family: 'PT Serif', serif;
17
13
  font-size: 1.15rem;
18
14
  }
19
15
  }
@@ -36,6 +32,7 @@ p{
36
32
  font-size: 1.15rem;
37
33
  }
38
34
 
39
- a{
40
- font-family: 'PT Serif', serif;
41
- }
35
+ //System stack for everything
36
+ body {
37
+ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
38
+ }
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  ---
3
3
 
4
- @import "base", "typography", "header", "post", "home", "footer", "paginator", "archive", "scrollbar", "contact", "related-posts", "mobile";
4
+ @import "base", "typography", "header", "post", "home", "footer", "paginator", "scrollbar", "contact", "related-posts", "mobile";
@@ -1,12 +1,7 @@
1
1
  ---
2
2
  ---
3
3
 
4
- /* These two lines of CSS can't be used together, as they will break some elements. Uncomment the one you want to use and comment or delete the other one.
5
- white-space: pre-wrap - returns on a new line every word outside of the code block. No horizontal scrollbar. This breaks the lines of code, if you show them. https://developer.mozilla.org/en-US/docs/Web/CSS/white-space
6
- overflow-x: auto - The lines of code remain exactly the same as you typed. In case of overflow, it adds an horizontal scrollbar. This works with lines of code. https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-x
7
- */
8
4
  pre{
9
- /* white-space: pre-wrap; */
10
5
  overflow-x: auto;
11
6
  }
12
7
 
@@ -17,6 +12,15 @@ pre{
17
12
  padding-right: 10px;
18
13
  padding-top: 1px;
19
14
  padding-bottom: 1px;
15
+ overflow-x: auto;
16
+ // System font stack for code
17
+ font-family:
18
+ "SFMono-Regular",
19
+ Consolas,
20
+ "Liberation Mono",
21
+ Menlo,
22
+ Courier,
23
+ monospace;
20
24
  }
21
25
 
22
26
  pre.lineo{
@@ -255,4 +259,4 @@ figure.highlight pre code[data-lang]::before, div.highlight pre code[data-lang]:
255
259
  min-width: 40px;
256
260
  text-align: center;
257
261
  background-color: #49483e;
258
- }
262
+ }
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-yamt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - PandaSekh
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-24 00:00:00.000000000 Z
11
+ date: 2020-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 2.1.4
89
+ version: 2.2.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 2.1.4
96
+ version: 2.2.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '12.0'
111
- description:
111
+ description:
112
112
  email:
113
113
  - alessiofranceschi2@gmail.com
114
114
  executables: []
@@ -119,7 +119,7 @@ files:
119
119
  - README.md
120
120
  - _includes/analytics.html
121
121
  - _includes/categories.html
122
- - _includes/disqus.html
122
+ - _includes/comments.html
123
123
  - _includes/footer.html
124
124
  - _includes/gif.html
125
125
  - _includes/head.html
@@ -135,7 +135,6 @@ files:
135
135
  - _layouts/home.html
136
136
  - _layouts/page.html
137
137
  - _layouts/post.html
138
- - _sass/archive.scss
139
138
  - _sass/base.scss
140
139
  - _sass/contact.scss
141
140
  - _sass/footer.scss
@@ -146,6 +145,7 @@ files:
146
145
  - _sass/post.scss
147
146
  - _sass/related-posts.scss
148
147
  - _sass/scrollbar.scss
148
+ - _sass/typography-old.scss
149
149
  - _sass/typography.scss
150
150
  - assets/css/main.scss
151
151
  - assets/css/syntax.scss
@@ -164,7 +164,7 @@ homepage: https://github.com/PandaSekh/Jekyll-YAMT
164
164
  licenses:
165
165
  - MIT
166
166
  metadata: {}
167
- post_install_message:
167
+ post_install_message:
168
168
  rdoc_options: []
169
169
  require_paths:
170
170
  - lib
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubygems_version: 3.0.3
183
- signing_key:
183
+ signing_key:
184
184
  specification_version: 4
185
185
  summary: Yet Another Minimal Theme for Jekyll
186
186
  test_files: []
@@ -1,19 +0,0 @@
1
- <section class="disqus">
2
- <p id="load-comments" onclick="loadDisqus()">Load Comments</p>
3
- <div id="disqus_thread"></div>
4
-
5
- <script id="loadDisqus" type="text/javascript">
6
- var disqus_loaded = false;
7
- var disqus_shortname = "{{ site.data.settings.disqus.disqus_shortname }}";
8
- var disqus_identifier = "{{ page.url }}";
9
- function loadDisqus() {
10
- var e = document.createElement('script');
11
- e.type = 'text/javascript';
12
- e.async = true;
13
- e.src = '//' + disqus_shortname + '.disqus.com/embed.js';
14
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(e);
15
- document.getElementById("load-comments").style.display = "none";
16
- };
17
- </script>
18
- <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments.</a></noscript>
19
- </section>
@@ -1,10 +0,0 @@
1
- .archive-link{
2
- text-decoration: none;
3
- color: black;
4
- font-style: italic;
5
- font-size: 1.5rem;
6
- }
7
-
8
- .archive-link:hover{
9
- text-decoration: underline;
10
- }