jekyll-yamt 1.0.0 → 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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +23 -21
  3. data/README.md +20 -9
  4. data/_includes/analytics.html +9 -9
  5. data/_includes/categories.html +10 -13
  6. data/_includes/comments.html +10 -0
  7. data/_includes/footer.html +3 -3
  8. data/_includes/gif.html +4 -0
  9. data/_includes/head.html +37 -37
  10. data/_includes/header.html +24 -24
  11. data/_includes/pages.html +2 -2
  12. data/_includes/reading_time.html +20 -20
  13. data/_includes/related-posts.html +35 -35
  14. data/_includes/social.html +7 -7
  15. data/_layouts/archive.html +15 -15
  16. data/_layouts/categories.html +21 -0
  17. data/_layouts/contact.html +16 -16
  18. data/_layouts/default.html +18 -18
  19. data/_layouts/home.html +52 -45
  20. data/_layouts/page.html +5 -5
  21. data/_layouts/post.html +45 -45
  22. data/_sass/base.scss +112 -127
  23. data/_sass/contact.scss +38 -49
  24. data/_sass/footer.scss +23 -23
  25. data/_sass/header.scss +102 -103
  26. data/_sass/home.scss +35 -36
  27. data/_sass/mobile.scss +51 -51
  28. data/_sass/paginator.scss +35 -35
  29. data/_sass/post.scss +78 -78
  30. data/_sass/related-posts.scss +22 -22
  31. data/_sass/scrollbar.scss +16 -16
  32. data/_sass/typography-old.scss +47 -0
  33. data/_sass/typography.scss +38 -41
  34. data/assets/css/main.scss +4 -4
  35. data/assets/css/syntax.scss +262 -258
  36. data/assets/img/logo.jpg +0 -0
  37. data/assets/img/screenshots/Screenshot.png +0 -0
  38. data/assets/img/screenshots/Screenshot_code_highlight.png +0 -0
  39. data/assets/img/screenshots/Screenshot_minimal.png +0 -0
  40. data/assets/img/screenshots/Screenshot_mobile.png +0 -0
  41. metadata +13 -13
  42. data/_includes/disqus.html +0 -19
  43. data/_sass/archive.scss +0 -10
  44. data/assets/css/main.css +0 -1
  45. data/assets/css/syntax.css +0 -1
@@ -1,8 +1,8 @@
1
- {% for item in site.data.social.social %}
2
- {% if item.type == "brand"%}
3
- <a href="{{ item.link }}" target="_blank" id="{{item.icon}}"><i class="fab fa-{{item.icon}}" aria-hidden="true"></i></a>
4
- {% endif %}
5
- {% if item.type == "solid"%}
6
- <a href="{{ item.link }}" target="_blank" id="{{item.icon}}"><i class="fas fa-{{item.icon}}" aria-hidden="true"></i></a>
7
- {% endif %}
1
+ {% for item in site.data.social.social %}
2
+ {% if item.type == "brand"%}
3
+ <a href="{{ item.link }}" target="_blank" id="{{item.icon}}"><i class="fab fa-{{item.icon}}" aria-hidden="true"></i></a>
4
+ {% endif %}
5
+ {% if item.type == "solid"%}
6
+ <a href="{{ item.link }}" target="_blank" id="{{item.icon}}"><i class="fas fa-{{item.icon}}" aria-hidden="true"></i></a>
7
+ {% endif %}
8
8
  {% endfor %}
@@ -1,15 +1,15 @@
1
- ---
2
- layout: default
3
- title: Archive
4
- ---
5
-
6
- {% assign postsByDate =
7
- site.posts | group_by_exp:"post", "post.date | date: '%B %Y'" %}
8
- {% for year in postsByDate %}
9
- <h2 class = "archive-date" id = "date-{{post.date | date: "%B %Y"}}">{{ year.name }}</h1>
10
- <ul>
11
- {% for post in year.items %}
12
- <li><a class = "archive-link" href="{{ post.url }}">{{ post.title }}</a></li>
13
- {% endfor %}
14
- </ul>
15
- {% endfor %}
1
+ ---
2
+ layout: default
3
+ title: Archive
4
+ ---
5
+
6
+ {% assign postsByDate =
7
+ site.posts | group_by_exp:"post", "post.date | date: '%B %Y'" %}
8
+ {% for year in postsByDate %}
9
+ <h2 class = "archive-date" id = "date-{{post.date | date: "%B %Y"}}">{{ year.name }}</h2>
10
+ <ul>
11
+ {% for post in year.items %}
12
+ <li><a class = "archive-link" href="{{ post.url | relative_url}}">{{ post.title }}</a></li>
13
+ {% endfor %}
14
+ </ul>
15
+ {% endfor %}
@@ -0,0 +1,21 @@
1
+ ---
2
+ layout: default
3
+ permalink: /categories/
4
+ title: Categories
5
+ ---
6
+
7
+ {% for category in site.categories %}
8
+ <div class="archive-group">
9
+ {% capture category_name %}{{ category | first }}{% endcapture %}
10
+ <div id="#{{ category_name | slugize }}"></div>
11
+ <p></p>
12
+
13
+ <h2 class="archive-cat">{{ category_name }}</h2>
14
+ <a name="{{ category_name | slugize }}"></a>
15
+ <ul>
16
+ {% for post in site.categories[category_name] %}
17
+ <li><a class="archive-link" href="{{ post.url | relative_url}}">{{post.title}}</a></li>
18
+ {% endfor %}
19
+ </ul>
20
+ </div>
21
+ {% endfor %}
@@ -1,17 +1,17 @@
1
- ---
2
- layout: default
3
- title: Contact
4
- ---
5
-
6
- <h2>Contact Form</h2>
7
- <div class = "form">
8
- <form name = "contact-form" action="/contact-successful.html" method = "POST" data-netlify="true">
9
- <input class = "form-input" type="text" name="name" id="name" placeholder="Name" required><br>
10
-
11
- <input class = "form-input"type="mail" name="mail" id="mail" placeholder="Email" required><br>
12
-
13
- <textarea class = "form-input" name="message" id="message" cols="30" rows="10" placeholder="Message" required></textarea><br>
14
-
15
- <input class = "form-button" type="submit" value="Submit"><br>
16
- </form>
1
+ ---
2
+ layout: default
3
+ title: Contact
4
+ ---
5
+
6
+ <h2>Contact Form</h2>
7
+ <div class = "form">
8
+ <form name = "contact-form" action="{{"/contact-successful.html" | relative_url}}" method = "POST" data-netlify="true">
9
+ <input class = "form-input" type="text" name="name" id="name" placeholder="Name" required><br>
10
+
11
+ <input class = "form-input"type="mail" name="mail" id="mail" placeholder="Email" required><br>
12
+
13
+ <textarea class = "form-input" name="message" id="message" cols="30" rows="10" placeholder="Message" required></textarea><br>
14
+
15
+ <input class = "form-button" type="submit" value="Submit"><br>
16
+ </form>
17
17
  </div>
@@ -1,18 +1,18 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- {% include head.html %}
5
- </head>
6
- <body>
7
-
8
- <div class="container">
9
- {% include header.html %}
10
-
11
- <div class="post-container">
12
- {{ content }}
13
- </div>
14
- </div>
15
-
16
- {%- include footer.html -%}
17
- </body>
18
- </html>
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ {% include head.html %}
5
+ </head>
6
+ <body>
7
+
8
+ <div class="container">
9
+ {% include header.html %}
10
+
11
+ <div class="post-container">
12
+ {{ content }}
13
+ </div>
14
+ </div>
15
+
16
+ {%- include footer.html -%}
17
+ </body>
18
+ </html>
@@ -1,45 +1,52 @@
1
- ---
2
- layout: default
3
- title: Home
4
- ---
5
- {% for post in paginator.posts %}
6
-
7
- <div class="post">
8
- <h2 id = "post-title"><a href="{% if site.baseurl == "/" %}{{ post.url }}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}">{{ post.title }}</a></h2>
9
-
10
- {% if site.data.settings.date-under-post.active %}
11
- <div class = "post-info">
12
- <span>
13
- <i class="far fa-calendar" aria-hidden="true"></i> <time datetime="{{ post.date | date_to_xmlschema }}" class="by-line">{{ post.date | date_to_string }}</time> - <i class="far fa-clock"></i> {% include reading_time.html %}
14
- </span>
15
- </div>
16
- {% endif %}
17
-
18
- {% if post.image and site.data.settings.featured-img.active%}
19
- <div class = "featured-img-container">
20
- <a href="{% if site.baseurl == "/" %}{{ post.url }}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}"><img src="{{ post.image }}"/></a>
21
- </div>
22
- {% endif %}
23
-
24
- <p>
25
- {% if post.customexcerpt %}
26
- {{post.customexcerpt | strip_html | truncatewords:50}}
27
- {% else %}
28
- {{ post.content | strip_html | truncatewords:50 }}
29
- {% endif %}
30
- <span class = "continue-reading"><a href="{% if site.baseurl == "/" %}{{ post.url }}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}">Continue reading...</a></span>
31
- </p>
32
- </div>
33
- {% endfor %}
34
-
35
- <!-- Pagination links -->
36
- <div class = "paginator">
37
- {% if paginator.total_pages > 1 %}
38
- {% if paginator.next_page %}
39
- <a class = "older paginate-button" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older Posts</a>
40
- {% endif %}
41
- {% if paginator.previous_page %}
42
- <a class = "newer paginate-button" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer Posts</a>
43
- {% endif %}
44
- {% endif %}
45
- </div>
1
+ ---
2
+ layout: default
3
+ title: Home
4
+ ---
5
+ {% for post in paginator.posts %}
6
+
7
+ <div class="post">
8
+ <h2 id = "post-title"><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
9
+
10
+ {% if site.data.settings.date-under-post.active %}
11
+ <div class = "post-info">
12
+ <span>
13
+ <i class="far fa-calendar" aria-hidden="true"></i>
14
+ <time datetime="{{ post.date | date_to_xmlschema }}" class="by-line">{{ post.date | date_to_string }}</time> - <i class="far fa-clock"></i>
15
+ {% include reading_time.html %}
16
+ </span>
17
+ </div>
18
+ {% endif %}
19
+
20
+ {% if site.data.settings.featured-img.active %}
21
+ <div class = "featured-img-container">
22
+ {% if post.image %}
23
+ <a href="{{ post.url | relative_url }}"><img src="{{ post.image | relative_url }}"/></a>
24
+ {% endif %}
25
+ {% if post.gif %}
26
+ <a href="{{ post.url | relative_url }}">{% include gif.html file = post.gif %}</a>
27
+ {% endif %}
28
+ </div>
29
+ {% endif %}
30
+
31
+ <p>
32
+ {% if post.customexcerpt %}
33
+ {{post.customexcerpt | strip_html | truncatewords:50}}
34
+ {% else %}
35
+ {{ post.content | strip_html | truncatewords:50 }}
36
+ {% endif %}
37
+ <span class = "continue-reading"><a href="{{ post.url | relative_url }}">Continue reading...</a></span>
38
+ </p>
39
+ </div>
40
+ {% endfor %}
41
+
42
+ <!-- Pagination links -->
43
+ <div class = "paginator">
44
+ {% if paginator.total_pages > 1 %}
45
+ {% if paginator.next_page %}
46
+ <a class = "older paginate-button" href="{{ paginator.next_page_path | relative_url }}">Older Posts</a>
47
+ {% endif %}
48
+ {% if paginator.previous_page %}
49
+ <a class = "newer paginate-button" href="{{ paginator.previous_page_path | relative_url }}">Newer Posts</a>
50
+ {% endif %}
51
+ {% endif %}
52
+ </div>
@@ -1,5 +1,5 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- {{ content }}
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -1,45 +1,45 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- {% include head.html %}
5
- </head>
6
-
7
- <body>
8
-
9
- <div class="container">
10
- {% include header.html %}
11
-
12
- <div class="post-container">
13
- <article id = "post">
14
- <h2 id = "post-title">{{ page.title }}</h2>
15
-
16
- {% if site.data.settings.date-under-post.active %}
17
- <div class = "post-info">
18
- <span>
19
- <i class="far fa-calendar" aria-hidden="true"></i> <span>{{ page.date | date_to_string }}</span> - <i class="far fa-clock"></i> {% include reading_time.html %}
20
- </span>
21
- </div>
22
- {% endif %}
23
- {{ content }}
24
- </article>
25
- </div>
26
- {% if site.data.settings.categories.active %}
27
- {% include categories.html %}
28
- {% endif %}
29
-
30
- {% if site.data.settings.related-posts.active %}
31
- {% include related-posts.html %}
32
- {% endif %}
33
-
34
- {% if site.data.settings.disqus.disqus_shortname %}
35
- {% include disqus.html %}
36
- {% endif %}
37
- </div>
38
-
39
- {%- include footer.html -%}
40
-
41
- {% if site.data.settings.mathjax.active %}
42
- <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
43
- {% endif %}
44
- </body>
45
- </html>
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ {% include head.html %}
5
+ </head>
6
+
7
+ <body>
8
+
9
+ <div class="container">
10
+ {% include header.html %}
11
+
12
+ <div class="post-container">
13
+ <article id = "post">
14
+ <h2 id = "post-title">{{ page.title }}</h2>
15
+
16
+ {% if site.data.settings.date-under-post.active %}
17
+ <div class = "post-info">
18
+ <span>
19
+ <i class="far fa-calendar" aria-hidden="true"></i> <span>{{ page.date | date_to_string }}</span> - <i class="far fa-clock"></i> {% include reading_time.html %}
20
+ </span>
21
+ </div>
22
+ {% endif %}
23
+ {{ content }}
24
+ </article>
25
+ </div>
26
+ {% if site.data.settings.categories.active %}
27
+ {% include categories.html %}
28
+ {% endif %}
29
+
30
+ {% if site.data.settings.related-posts.active %}
31
+ {% include related-posts.html %}
32
+ {% endif %}
33
+
34
+ {% if site.data.settings.comments %}
35
+ {% include comments.html %}
36
+ {% endif %}
37
+ </div>
38
+
39
+ {%- include footer.html -%}
40
+
41
+ {% if site.data.settings.mathjax.active %}
42
+ <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
43
+ {% endif %}
44
+ </body>
45
+ </html>
@@ -1,127 +1,112 @@
1
- //Colors
2
- $base: #a2a2a2;
3
- $light-grey: #ebebeb;
4
-
5
- * {
6
- -webkit-box-sizing: border-box;
7
- -moz-box-sizing: border-box;
8
- box-sizing: border-box;
9
- }
10
- html{
11
- scroll-behavior: smooth;
12
- }
13
- .container {
14
- margin-left: auto;
15
- margin-right: auto;
16
- width: 700px;
17
- }
18
-
19
- .task-list{
20
- list-style: none;
21
- }
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
- //Alerts
49
- .alert{
50
- padding: 20px;
51
- border-radius: 0 4px 4px 0;
52
- color: #fff;
53
- display: block;
54
- font-size: larger;
55
- font-family: 'Montserrat', sans-serif;
56
- }
57
-
58
- .y{
59
- background-color: #f3b244;
60
- border-left: 7px solid #dc900e;
61
- }
62
-
63
- .g{
64
- background-color: #60c17d;
65
- border-left: 7px solid #55ab6f;
66
- }
67
-
68
- .r{
69
- background-color: #e45454;
70
- border-left: 7px solid #cb2020;
71
- }
72
- //End Alerts
73
-
74
- //Blockquote
75
- blockquote {
76
- border-left: .25em solid #dfe2e5;
77
- color: #6a737d;
78
- padding: 0 1em;
79
- cite{
80
- display: inline-block;
81
- margin-top: 50px;
82
- cite::before{
83
- content: "- ";
84
- margin-left: 10px;
85
- }
86
- }
87
- }
88
- //End Blockquote
89
-
90
- //MathJAX
91
- .MathJax_Display{
92
- .MathJax {
93
- font-size: 1.2rem;
94
- }
95
- }
96
- //End MathJAX
97
-
98
- //ToC
99
- #markdown-toc::before {
100
- content: "Contents";
101
- font-size: 1.1rem;
102
- font-family: 'Montserrat', sans-serif;
103
- font-weight: bold;
104
- }
105
-
106
- #markdown-toc {
107
- border: 1px solid #aaa;
108
- border-radius: 10px;
109
- padding: 1.5em;
110
- list-style: disc;
111
- display: inline-block;
112
- background-color: $light-grey;
113
- line-height: 25px;
114
- li{
115
- a{
116
- font-family: 'PT Serif', serif;
117
- text-decoration: none;
118
- }
119
- a:hover{
120
- font-style: italic;
121
- }
122
- }
123
- ul{
124
- list-style: disc;
125
- }
126
- }
127
- //End ToC
1
+ //Colors
2
+ $base: #a2a2a2;
3
+ $light-grey: #ebebeb;
4
+
5
+ * {
6
+ -webkit-box-sizing: border-box;
7
+ -moz-box-sizing: border-box;
8
+ box-sizing: border-box;
9
+ }
10
+ html{
11
+ scroll-behavior: smooth;
12
+ }
13
+ .container {
14
+ margin-left: auto;
15
+ margin-right: auto;
16
+ width: 700px;
17
+ }
18
+
19
+ .task-list{
20
+ list-style: none;
21
+ }
22
+
23
+ //Alerts
24
+ .alert{
25
+ padding: 20px;
26
+ border-radius: 0 4px 4px 0;
27
+ color: #fff;
28
+ display: block;
29
+ font-size: larger;
30
+ }
31
+
32
+ .y{
33
+ background-color: #f3b244;
34
+ border-left: 7px solid #dc900e;
35
+ }
36
+
37
+ .g{
38
+ background-color: #60c17d;
39
+ border-left: 7px solid #55ab6f;
40
+ }
41
+
42
+ .r{
43
+ background-color: #e45454;
44
+ border-left: 7px solid #cb2020;
45
+ }
46
+ //End Alerts
47
+
48
+ //Blockquote
49
+ blockquote {
50
+ border-left: .25em solid #dfe2e5;
51
+ color: #6a737d;
52
+ padding: 0 1em;
53
+ cite{
54
+ display: inline-block;
55
+ margin-top: 50px;
56
+ cite::before{
57
+ content: "- ";
58
+ margin-left: 10px;
59
+ }
60
+ }
61
+ }
62
+ //End Blockquote
63
+
64
+ //MathJAX
65
+ .MathJax_Display{
66
+ .MathJax {
67
+ font-size: 1.2rem;
68
+ }
69
+ }
70
+ //End MathJAX
71
+
72
+ //ToC
73
+ #markdown-toc::before {
74
+ content: "Contents";
75
+ font-size: 1.1rem;
76
+ font-weight: bold;
77
+ }
78
+
79
+ #markdown-toc {
80
+ border: 1px solid #aaa;
81
+ border-radius: 10px;
82
+ padding: 1.5em;
83
+ list-style: disc;
84
+ display: inline-block;
85
+ background-color: $light-grey;
86
+ line-height: 25px;
87
+ li{
88
+ a{
89
+ text-decoration: none;
90
+ }
91
+ a:hover{
92
+ font-style: italic;
93
+ }
94
+ }
95
+ ul{
96
+ list-style: disc;
97
+ }
98
+ }
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