minimal-days-theme 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ee46b2264bb7605f05f7ec74f786503f6a708f423205d42b39feabf69341661a
4
+ data.tar.gz: 81445c714c2c21b80055c538c6dad98b555ceeea0744c70534f61de1afab2df2
5
+ SHA512:
6
+ metadata.gz: 293c8a445397e9e785d657ad1ab05fd651822c8ab05db1493325bdb68f66c4b6b75b469b35cc3e4ca78e3abcc6ed25cc712377edee9618803afe817344e7961d
7
+ data.tar.gz: 1a6fb3941d7408d59c9ac12478d03dde3d03284dfbdf2aaf26c4a4a1d6aed18bd72cd64258cc233fdba427e1ed560cbfb573c15c3d2b352c4497f9355f2a3f25
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Jessica Zeng
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,61 @@
1
+ # minimal-days-theme
2
+
3
+ A minimalistic static [Jekyll](http://jekyllrb.com) blog theme! Displays full posts in single-column list.
4
+
5
+ Includes:
6
+ * pagination
7
+ * tags
8
+
9
+ ![Preview](/minimal-theme-screenshot.png)
10
+
11
+ ## Installation
12
+
13
+ Add this line to your Jekyll site's `Gemfile`:
14
+
15
+ ```ruby
16
+ gem "minimal-days-theme"
17
+ ```
18
+
19
+ And add this line to your Jekyll site's `_config.yml`:
20
+
21
+ ```yaml
22
+ theme: minimal-days-theme
23
+ ```
24
+
25
+ And then execute:
26
+
27
+ $ bundle
28
+
29
+ Or install it yourself as:
30
+
31
+ $ gem install minimal-days-theme
32
+
33
+ ## Usage
34
+ ### _config.yml options
35
+ General settings:
36
+ ```
37
+ title: here & there # update title
38
+ title_img: assets/images/theme/cloud.gif # update header image
39
+ ```
40
+
41
+ Pagination:
42
+ ```
43
+ paginate: 3 # change posts per page
44
+ ```
45
+
46
+ ### Images in posts
47
+ To insert a responsive image in a post:
48
+ ```
49
+ {% responsive_image path:"assets/image/image.png" alt:"nice image bro" %}
50
+ ```
51
+ When Jekyll builds the site, [jekyll-responsive-image](https://github.com/wildlyinaccurate/jekyll-responsive-image) will resize your images and load / display them in a responsive manner.
52
+
53
+ To insert an image / gif that should NOT be resized:
54
+ ```
55
+ {% include image.html img="image.gif" description="check this out" %}
56
+ ```
57
+
58
+ ## License
59
+
60
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
61
+
@@ -0,0 +1,80 @@
1
+ # General settings
2
+ title: here & there
3
+ title_img: "assets/images/theme/cloud.gif"
4
+ title_img_link: "/about"
5
+
6
+ plugins:
7
+ - jekyll-paginate
8
+ - jekyll-responsive-image
9
+ - jekyll/tagging
10
+
11
+ # Other settings
12
+ code_css: "default" # replace with highlight.js css style
13
+ paginate: 3
14
+ paginate_path: "/page/:num/"
15
+
16
+ # Tag settings
17
+ tag_page_dir: tag
18
+ tag_page_layout: tag_page
19
+
20
+ # Sass settings
21
+ sass:
22
+ sass_dir: _sass
23
+
24
+ # Responsive image settings
25
+ responsive_image:
26
+ # [Required]
27
+ # Path to the image template.
28
+ template: _includes/responsive-image.html
29
+
30
+ # [Optional, Default: 85]
31
+ # Quality to use when resizing images.
32
+ default_quality: 90
33
+
34
+ # [Optional, Default: []]
35
+ # An array of resize configuration objects. Each object must contain at least
36
+ # a `width` value.
37
+ sizes:
38
+ - width: 480 # [Required] How wide the resized image will be.
39
+ quality: 80 # [Optional] Overrides default_quality for this size.
40
+ - width: 800
41
+ - width: 1400
42
+ quality: 90
43
+
44
+ # [Optional, Default: false]
45
+ # Rotate resized images depending on their EXIF rotation attribute. Useful for
46
+ # working with JPGs directly from digital cameras and smartphones
47
+ auto_rotate: false
48
+
49
+ # [Optional, Default: false]
50
+ # Strip EXIF and other JPEG profiles. Helps to minimize JPEG size and win friends
51
+ # at Google PageSpeed.
52
+ strip: false
53
+
54
+ # [Optional, Default: assets]
55
+ # The base directory where assets are stored. This is used to determine the
56
+ # `dirname` value in `output_path_format` below.
57
+ base_path: assets
58
+
59
+ # [Optional, Default: assets/resized/%{filename}-%{width}x%{height}.%{extension}]
60
+ # The template used when generating filenames for resized images. Must be a
61
+ # relative path.
62
+ #
63
+ # Parameters available are:
64
+ # %{dirname} Directory of the file relative to `base_path` (assets/sub/dir/some-file.jpg => sub/dir)
65
+ # %{basename} Basename of the file (assets/some-file.jpg => some-file.jpg)
66
+ # %{filename} Basename without the extension (assets/some-file.jpg => some-file)
67
+ # %{extension} Extension of the file (assets/some-file.jpg => jpg)
68
+ # %{width} Width of the resized image
69
+ # %{height} Height of the resized image
70
+ #
71
+ output_path_format: assets/images/resized/%{width}/%{basename}
72
+
73
+ # [Optional, Default: true]
74
+ # Whether or not to save the generated assets into the source folder.
75
+ save_to_source: false
76
+
77
+ # [Optional, Default: false]
78
+ # Cache the result of {% responsive_image %} and {% responsive_image_block %}
79
+ # tags. See the "Caching" section of the README for more information.
80
+ cache: false
@@ -0,0 +1,18 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+
6
+ <link rel="shortcut icon" type="image/png" href="/favicon.png">
7
+
8
+ <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,700;1,500&family=Roboto+Slab:wght@500&display=swap" rel="stylesheet">
9
+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | absolute_url }}?{{ site.time | date: '%s%N' }}">
10
+ <link rel="stylesheet"
11
+ href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.0/styles/{{ site.code_css }}.min.css">
12
+ <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.0/highlight.min.js"></script>
13
+ <script>hljs.initHighlightingOnLoad();</script>
14
+
15
+ {% if title %}
16
+ <title>{{ title }}</title>
17
+ {% endif %}
18
+ </head>
@@ -0,0 +1,4 @@
1
+ <figure class="image">
2
+ <img src="/assets/images/{{ include.img }}" alt="{{ include.description }}">
3
+ <figcaption>{{ include.description }}</figcaption>
4
+ </figure>
@@ -0,0 +1,16 @@
1
+ <div class="post">
2
+ <div class="post--date">{{ post.date | date: "%A %m.%d.%y" | downcase }}</div>
3
+ <h1 class="post--title">
4
+ <a href="{{ post.url | absolute_url }}">
5
+ {{ post.title }}
6
+ </a>
7
+ </h1>
8
+
9
+ {{ post.content }}
10
+
11
+ <div class="post--tags">
12
+ {% for tag in post.tags %}
13
+ <span class="post--tag"><a href="tag/{{ tag }}.html">[{{ tag }}]</a></span>&nbsp;
14
+ {% endfor %}
15
+ </div>
16
+ </div>
@@ -0,0 +1,14 @@
1
+ <figure class="image">
2
+ {% assign largest = resized | sort: 'width' | last %}
3
+ {% capture srcset %}
4
+ {% for i in resized %}
5
+ /{{ i.path }} {{ i.width }}w,
6
+ {% endfor %}
7
+ {% endcapture %}
8
+
9
+ <img src="/{{ largest.path }}"
10
+ alt="{{ alt }}"
11
+ srcset="{{ srcset | strip_newlines }} /{{ path }} {{ original.width }}w"
12
+ sizes="50vw">
13
+ <figcaption>{{ alt }}</figcaption>
14
+ </figure>
@@ -0,0 +1,24 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ {% if page.title %}
4
+ {% assign title = page.title %}
5
+ {% else %}
6
+ {% assign title = site.title %}
7
+ {% endif %}
8
+
9
+ {% include head.html title=title %}
10
+
11
+ <body>
12
+ <header class="header">
13
+ <h1 class="header--title"><a href="/">{{ site.title }}</a></h1>
14
+ <div class="header--img">
15
+ {% if site.title_img_link %}
16
+ <a href="{{ site.title_img_link }}"><img src="{{ site.title_img | absolute_url }}"></a>
17
+ {% else %}
18
+ <img src="{{ site.title_img | absolute_url }}">
19
+ {% endif %}
20
+ </div>
21
+ </header>
22
+ {{ content }}
23
+ </body>
24
+ </html>
@@ -0,0 +1,35 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="posts">
6
+ {% for post in paginator.posts %}
7
+ {% include post-block.html %}
8
+ {% endfor %}
9
+ </div>
10
+
11
+ {% if paginator.total_pages > 1 %}
12
+ <div class="pagination">
13
+ {% if paginator.previous_page %}
14
+ <a href="{{ paginator.previous_page_path | relative_url }}">&laquo;</a>
15
+ {% else %}
16
+ <span>&laquo;</span>
17
+ {% endif %}
18
+
19
+ {% for page in (1..paginator.total_pages) %}
20
+ {% if page == paginator.page %}
21
+ <em>{{ page }}</em>
22
+ {% elsif page == 1 %}
23
+ <a href="/">{{ page }}</a>
24
+ {% else %}
25
+ <a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">{{ page }}</a>
26
+ {% endif %}
27
+ {% endfor %}
28
+
29
+ {% if paginator.next_page %}
30
+ <a href="{{ paginator.next_page_path | relative_url }}">&raquo;</a>
31
+ {% else %}
32
+ <span>&raquo;</span>
33
+ {% endif %}
34
+ </div>
35
+ {% endif %}
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1 class="page--title">
6
+ {{ page.title }}
7
+ </h1>
8
+
9
+ {{ content }}
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% assign is_post=true %}
5
+ {% assign post=page %}
6
+ {% include post-block.html %}
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <h1 class="page--title">{{ page.tag }}</h1>
5
+ <ul>
6
+ {% for post in page.posts %}
7
+ <li><a href="{{ post.url }}">{{ post.title }}</a> ({{ post.date | date: "%m.%d.%y" }} | tags: {{ post | tags }})</li>
8
+ {% endfor %}
9
+ </ul>
10
+
11
+ <div id="tag-cloud">
12
+ {{ site | tag_cloud }}
13
+ </div>
@@ -0,0 +1,68 @@
1
+ html {
2
+ font-size: $fs-base;
3
+ line-height: $flh-base;
4
+ color: $clr-base;
5
+ font-family: $ff-base;
6
+ }
7
+
8
+ body {
9
+ max-width: 35em;
10
+ margin: 0 auto;
11
+ padding: 3em 1em;
12
+ }
13
+
14
+ .header {
15
+ text-align: center;
16
+ margin-bottom: 10vh;
17
+
18
+ &--title {
19
+ font-size: $fs-title;
20
+ margin-bottom: 0;
21
+
22
+ a {
23
+ letter-spacing: $fls-md;
24
+ text-decoration: none;
25
+ }
26
+ }
27
+
28
+ &--img {
29
+ width: 25%;
30
+ margin: 0 auto;
31
+ }
32
+ }
33
+
34
+ hr {
35
+ border-top: 1px dashed $clr-base;
36
+ border-left: 0;
37
+ border-right: 0;
38
+ border-bottom: 0;
39
+ width: 25%;
40
+ margin-bottom: 2em;
41
+ }
42
+
43
+ a {
44
+ color: $clr-accent;
45
+ letter-spacing: $fls-sm;
46
+ }
47
+
48
+ a[x-apple-data-detectors] {
49
+ color: inherit !important;
50
+ text-decoration: none !important;
51
+ font-size: inherit !important;
52
+ font-family: inherit !important;
53
+ font-weight: inherit !important;
54
+ line-height: inherit !important;
55
+ }
56
+
57
+ figure.highlight {
58
+ margin: 0;
59
+ }
60
+
61
+ table {
62
+ width: 100%;
63
+ margin: 2em 0;
64
+ }
65
+
66
+ tr {
67
+ text-align: left;
68
+ }
@@ -0,0 +1,7 @@
1
+ .pagination {
2
+ text-align: center;
3
+
4
+ a {
5
+ text-decoration: none;
6
+ }
7
+ }
@@ -0,0 +1,13 @@
1
+ figure.image {
2
+ text-align: center;
3
+ margin: 0;
4
+ }
5
+
6
+ img {
7
+ max-width: 100%;
8
+ }
9
+
10
+ figcaption {
11
+ font-style: oblique;
12
+ font-size: $fs-small2;
13
+ }
@@ -0,0 +1,6 @@
1
+ .page--title {
2
+ font-size: $fs-header;
3
+ font-family: $ff-header;
4
+ color: $clr-accent;
5
+ text-align: center;
6
+ }
@@ -0,0 +1,29 @@
1
+ .post {
2
+ margin-bottom: 25vh;
3
+
4
+ h1.post--title {
5
+ font-size: $fs-header;
6
+ font-family: $ff-header;
7
+ text-align: center;
8
+ margin-top: 0;
9
+
10
+ a {
11
+ color: $clr-accent;
12
+ text-decoration: none;
13
+ }
14
+ }
15
+
16
+ &--date {
17
+ font-size: $fs-small1;
18
+ text-align: center;
19
+ }
20
+
21
+ &--tags {
22
+ font-size: $fs-small2;
23
+ text-align: center;
24
+ }
25
+
26
+ &--tag a {
27
+ text-decoration: none;
28
+ }
29
+ }
@@ -0,0 +1,4 @@
1
+ #tag-cloud {
2
+ text-align: center;
3
+ margin-top: 2em;
4
+ }
@@ -0,0 +1,15 @@
1
+ /* fonts */
2
+ $ff-base: 'Roboto Mono', monospace;
3
+ $ff-header: 'Roboto Slab', serif;
4
+ $fs-base: 16px;
5
+ $fs-header: 2rem;
6
+ $fs-title: 1.5rem;
7
+ $fs-small1: 0.9rem;
8
+ $fs-small2: 0.8rem;
9
+ $flh-base: 1.5;
10
+ $fls-sm: 2px;
11
+ $fls-md: 4px;
12
+
13
+ /* colors */
14
+ $clr-base: #6B6D80;
15
+ $clr-accent: #3E3F4A;
@@ -0,0 +1,13 @@
1
+ ---
2
+ # Ensures Jekyll reads the file to be transformed into CSS later
3
+ ---
4
+
5
+ @charset "utf-8";
6
+ @import "variables";
7
+
8
+ @import "base";
9
+ @import "footer";
10
+ @import "image";
11
+ @import "page";
12
+ @import "post";
13
+ @import "tags";
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: minimal-days-theme
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jessica Zeng
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-07-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.1'
27
+ description:
28
+ email:
29
+ - jessicaczeng@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - LICENSE.txt
35
+ - README.md
36
+ - _config.yml
37
+ - _includes/head.html
38
+ - _includes/image.html
39
+ - _includes/post-block.html
40
+ - _includes/responsive-image.html
41
+ - _layouts/default.html
42
+ - _layouts/home.html
43
+ - _layouts/page.html
44
+ - _layouts/post.html
45
+ - _layouts/tag_page.html
46
+ - _sass/_base.scss
47
+ - _sass/_footer.scss
48
+ - _sass/_image.scss
49
+ - _sass/_page.scss
50
+ - _sass/_post.scss
51
+ - _sass/_tags.scss
52
+ - _sass/_variables.scss
53
+ - assets/css/main.scss
54
+ - assets/images/2020-07-05-dalat1.JPG
55
+ - assets/images/2020-07-05-hello-world.gif
56
+ - assets/images/theme/cloud.gif
57
+ homepage: https://github.com/zenje/minimal-days-theme
58
+ licenses:
59
+ - MIT
60
+ metadata: {}
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 2.7.6
78
+ signing_key:
79
+ specification_version: 4
80
+ summary: A minimalistic Jekyll blog theme.
81
+ test_files: []