glance 1.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: 123abefa38a80e9ead9ddb6fc3e9175236267168de45663bad5477ed107e5626
4
+ data.tar.gz: 85a469b5a2c6f37aeb469c662634209573219013eb4e6409b85949950b73a55b
5
+ SHA512:
6
+ metadata.gz: 791c72f5d351082fc9c66bbc07c8f3a139fee1a0e957d60ff8b6bf06a47f8253b1a2ff039b83ef1f5d5d537f96200a1905bde14953f65284889d2daa9cc0bdde
7
+ data.tar.gz: 4805cf3185f56a3524d4dc9965a559099179120ddbd9bcd3170ad8dbffe7318b061ef0e353ee0f23f84f6eebea5987d760322a68536ae82272b1f5bfa685429f
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 CoinkWang
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,55 @@
1
+ # glance
2
+
3
+ A Hand-drawn style jekyll theme based on PaperCSS.
4
+ Some codes are learned from theme minima.
5
+
6
+ Online Preview: [Glance](http://coink.wang/glance/)
7
+
8
+ ![preview](screenshot.png)
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "glance"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: glance
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install glance
31
+
32
+ ## Usage
33
+
34
+ You can edit basic info and settings in `_config.yml`.
35
+
36
+ For the pages like `links` and `about`, the templates can be customized by editing `_layouts/links.html` and `_layouts/about.html`, datas in these pages are in `links.md` and `about.md`
37
+
38
+
39
+ ## Contributing
40
+
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/CoinkWang/glance. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
42
+
43
+ ## Development
44
+
45
+ To set up your environment to develop this theme, run `bundle install`.
46
+
47
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
48
+
49
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
50
+ To add a custom directory to your theme-gem, please edit the regexp in `glance.gemspec` accordingly.
51
+
52
+ ## License
53
+
54
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
55
+
@@ -0,0 +1,6 @@
1
+ {% comment %}
2
+ Placeholder to allow defining custom favicons
3
+
4
+ 1. Head over to https://realfavicongenerator.net/ to add your own favicons.
5
+ 2. Customize default _includes/favicons.html in your source directory and insert the given code snippet.
6
+ {% endcomment %}
@@ -0,0 +1,10 @@
1
+ <footer class="site-footer border border-primary">
2
+ <div class="container">
3
+ <div class="flex-middle">
4
+ {%- if site.author.name %}
5
+ <p>Copyright © {{ site.title | escape }} {{ site.copyright_time | escape }}</p>
6
+ {%- endif %}
7
+ <p>Powered by <a href="https://jekyllrb.com/">Jekyll</a> 丨 Theme <a href="https://github.com/CoinkWang/glance">GLANCE</a> by Coink</p>
8
+ </div>
9
+ </div>
10
+ </footer>
@@ -0,0 +1,9 @@
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
+ {%- include favicons.html -%}
6
+ {%- seo -%}
7
+ <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
8
+ {%- feed_meta -%}
9
+ </head>
@@ -0,0 +1,34 @@
1
+ <header class="site-header shadow shadow-hover">
2
+ {%- assign default_paths = site.pages | map: "path" -%}
3
+ {%- assign page_paths = site.header_pages | default: default_paths -%}
4
+ {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
5
+ <nav class="border split-nav"> <!-- add 'fixed' to 'nav' => fix the nav to the top of page -->
6
+ <div class="nav-brand" style="max-width: 75%;">
7
+ <h4><a href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></h4>
8
+ </div>
9
+ <div class="collapsible">
10
+ {%- if titles_size > 0 -%}
11
+ <input id="collapsible1" type="checkbox" name="collapsible1">
12
+ <!-- mobile responsive hamburger menu start -->
13
+ <button>
14
+ <label for="collapsible1">
15
+ <div class="bar1"></div>
16
+ <div class="bar2"></div>
17
+ <div class="bar3"></div>
18
+ </label>
19
+ </button>
20
+ <!-- mobile responsive hamburger menu end -->
21
+ <div class="collapsible-body">
22
+ <ul class="inline">
23
+ {%- for path in page_paths -%}
24
+ {%- assign my_page = site.pages | where: "path", path | first -%}
25
+ {%- if my_page.title -%}
26
+ <li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
27
+ {%- endif -%}
28
+ {%- endfor -%}
29
+ </ul>
30
+ </div>
31
+ {%- endif -%}
32
+ </div>
33
+ </nav>
34
+ </header>
@@ -0,0 +1,5 @@
1
+ <div>
2
+ <a class="clean-link" href="#top" >
3
+ <button class="to-top-btn">^</button>
4
+ </a>
5
+ </div>
@@ -0,0 +1,55 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article>
6
+ <header>
7
+ {%- if page.title -%}
8
+ <h2>{{ page.title | escape }}</h2>
9
+ {%- endif -%}
10
+ </header>
11
+
12
+ <div>
13
+ {{ content }}
14
+ </div>
15
+
16
+ {%- if page.works.name -%}
17
+ <h3>{{ page.works.name | escape }}</h3>
18
+ {%- endif -%}
19
+ <div class="works-card-container">
20
+ {%- if page.works -%}
21
+ {% for work in page.works.data %}
22
+ <div class="card works-card">
23
+ {%- if work[1].imgsrc -%}
24
+ <img src={{ work[1].imgsrc | escape }} alt="Card image">
25
+ {%- endif -%}
26
+ <div class="card-body">
27
+ {%- if work[1].title -%}
28
+ <h4 class="card-title">{{ work[1].title | escape }}
29
+ {%- endif -%}
30
+ {%- if work[1].tags -%}
31
+ {% for tag in work[1].tags %}
32
+ <!-- different tags -->
33
+ <!-- <span class="badge ">{{ tag | escape }} </span> -->
34
+ <!-- <span class="badge secondary">{{ tag | escape }} </span> -->
35
+ <span class="badge success">{{ tag | escape }} </span>
36
+ <!-- <span class="badge warning">{{ tag | escape }} </span> -->
37
+ <!-- <span class="badge danger">{{ tag | escape }} </span> -->
38
+ {% endfor %}
39
+ {%- endif -%}
40
+ </h4>
41
+ {%- if work[1].subtitle -%}
42
+ <h5 class="card-subtitle">{{ work[1].subtitle | escape }}</h5>
43
+ {%- endif -%}
44
+ {%- if work[1].description -%}
45
+ <p class="card-text">{{ work[1].description | escape }}</p>
46
+ {%- endif -%}
47
+ {%- if work[1].button_text -%}
48
+ <a href="{{ work[1].link | escape }}" class="clean-link"><button>{{ work[1].button_text | escape }}</button></a>
49
+ {%- endif -%}
50
+ </div>
51
+ </div>
52
+ {% endfor %}
53
+ {%- endif -%}
54
+ </div>
55
+ </article>
@@ -0,0 +1,20 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+
4
+ {%- include head.html -%}
5
+
6
+ <body>
7
+
8
+ {%- include header.html -%}
9
+
10
+ <main class="page-content" aria-label="Content">
11
+ <div class="wrapper">
12
+ {{ content }}
13
+ </div>
14
+ </main>
15
+
16
+ {%- include footer.html -%}
17
+
18
+ </body>
19
+
20
+ </html>
@@ -0,0 +1,38 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="home">
6
+ {%- if page.title -%}
7
+ <h3 class="page-heading">{{ page.title }}</h3>
8
+ {%- endif -%}
9
+
10
+ {{ content }}
11
+
12
+ {% assign posts = site.posts %}
13
+
14
+ {%- if posts.size > 0 -%}
15
+ {%- if page.list_title -%}
16
+ <h4 class="post-list-heading">{{ page.list_title }}</h4>
17
+ {%- endif -%}
18
+
19
+ {%- assign date_format = site.glance.date_format | default: "%b %-d, %Y" -%}
20
+
21
+ {%- for post in posts -%}
22
+ <span class="badge post-badge">{{ post.date | date: date_format }}</span>
23
+ <p class="post-link">
24
+ <a href="{{ post.url | relative_url }}">
25
+ {{ post.title | escape }}
26
+
27
+ {%- if site.show_subtitle -%}
28
+ <span class="post-subtitle">
29
+ {{ post.subtitle }}
30
+ </span>
31
+ {%- endif -%}
32
+
33
+ </a>
34
+ </p>
35
+ {%- endfor -%}
36
+ {%- endif -%}
37
+
38
+ </div>
@@ -0,0 +1,29 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article>
6
+ <header>
7
+ {%- if page.title -%}
8
+ <h2>{{ page.title | escape }}</h2>
9
+ {%- endif -%}
10
+ </header>
11
+
12
+ <div>
13
+ {{ content }}
14
+ </div>
15
+
16
+ <div class="friend-links-container">
17
+ {%- if page.links -%}
18
+ {% for link in page.links.data %}
19
+ <div class="friend-links">
20
+ <a class="clean-link" href={{ link[1].link }}>
21
+ <button popover-top={{ link[1].popover }}>
22
+ {{ link[1].name }}
23
+ </button>
24
+ </a>
25
+ </div>
26
+ {% endfor %}
27
+ {%- endif -%}
28
+ </div>
29
+ </article>
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article>
6
+
7
+ <header>
8
+ <h2>{{ page.title | escape }}</h2>
9
+ </header>
10
+
11
+ <div>
12
+ {{ content }}
13
+ </div>
14
+
15
+ </article>
@@ -0,0 +1,55 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="article">
5
+
6
+ <header>
7
+ {%- if page.title -%}
8
+ <h3>{{ page.title | escape }}</h3>
9
+ {%- endif -%}
10
+ {%- if page.subtitle -%}
11
+ <p>{{ page.subtitle | escape }}</p>
12
+ {%- endif -%}
13
+
14
+ <p class="article-meta">
15
+ {%- assign date_format = site.glance.date_format | default: "%b %-d, %Y" -%}
16
+ <time datetime="{{ page.date | date_to_xmlschema }}">
17
+ {{ page.date | date: date_format }}
18
+ </time>
19
+ {%- if page.author -%}
20
+ • {% for author in page.author %}
21
+ <span>{{ author }}</span>
22
+ {%- if forloop.last == false %}, {% endif -%}
23
+ {% endfor %}
24
+ {%- endif -%}
25
+ </p>
26
+ </header>
27
+
28
+ <div>
29
+ {%- if page.alert.content -%}
30
+ {%- if page.alert.type == 'primary' -%}
31
+ <div class="alert alert-primary" >{{ page.alert.content }}</div>
32
+ {%- endif -%}
33
+ {%- if page.alert.type == 'secondary' -%}
34
+ <div class="alert alert-secondary" >{{ page.alert.content }}</div>
35
+ {%- endif -%}
36
+ {%- if page.alert.type == 'success' -%}
37
+ <div class="alert alert-success" >{{ page.alert.content }}</div>
38
+ {%- endif -%}
39
+ {%- if page.alert.type == 'warning' -%}
40
+ <div class="alert alert-warning" >{{ page.alert.content }}</div>
41
+ {%- endif -%}
42
+ {%- if page.alert.type == 'danger' -%}
43
+ <div class="alert alert-danger" >{{ page.alert.content }}</div>
44
+ {%- endif -%}
45
+ {%- if page.alert.type == nil -%}
46
+ <div class="alert">{{ page.alert.content }}</div>
47
+ {%- endif -%}
48
+ {%- endif -%}
49
+ {{ content }}
50
+ </div>
51
+
52
+ {%- include toper.html -%}
53
+
54
+ <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
55
+ </article>
@@ -0,0 +1,32 @@
1
+ @charset "utf-8";
2
+
3
+ $brand-color: #828282 !default;
4
+ $brand-color-light: lighten($brand-color, 40%) !default;
5
+ $brand-color-dark: darken($brand-color, 25%) !default;
6
+
7
+ $text-color: #111 !default;
8
+ $background-color: #fdfdfd !default;
9
+ $code-background-color: #e6e7e9 !default;
10
+
11
+ $link-base-color: #111 !default;
12
+ $link-visited-color: lighten($link-base-color, 20%) !default;
13
+
14
+ $table-text-color: lighten($text-color, 18%) !default;
15
+ $table-zebra-color: lighten($brand-color, 46%) !default;
16
+ $table-header-bg-color: lighten($brand-color, 43%) !default;
17
+ $table-header-border: lighten($brand-color, 36%) !default;
18
+ $table-border-color: $brand-color-light !default;
19
+
20
+ $paper-blue: #0071de;
21
+ $paper-blue-light: #deefff;
22
+ $paper-green: #86a361;
23
+ $paper-green-light: #d0dbc2;
24
+ $paper-yellow: #ddcd45;
25
+ $paper-yellow-light:#f5f0c6;
26
+ $paper-red: #a7342d;
27
+ $paper-red-light: #f0cbc9;
28
+
29
+ @import
30
+ "glance/initialize",
31
+ "paper/paper"
32
+ ;
@@ -0,0 +1,46 @@
1
+
2
+ /**
3
+ * Basic styling
4
+ */
5
+ body {
6
+ font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
7
+ color: $text-color;
8
+ background-color: $background-color;
9
+ -webkit-text-size-adjust: 100%;
10
+ -webkit-font-feature-settings: "kern" 1;
11
+ -moz-font-feature-settings: "kern" 1;
12
+ -o-font-feature-settings: "kern" 1;
13
+ font-feature-settings: "kern" 1;
14
+ font-kerning: normal;
15
+ display: flex;
16
+ min-height: 100vh;
17
+ flex-direction: column;
18
+ overflow-wrap: break-word;
19
+ }
20
+
21
+ /**
22
+ * Wrapper
23
+ */
24
+ .wrapper {
25
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
26
+ margin-right: auto;
27
+ margin-left: auto;
28
+ padding-right: $spacing-unit / 2;
29
+ padding-left: $spacing-unit / 2;
30
+ @extend %clearfix;
31
+
32
+ @media screen and (min-width: $on-large) {
33
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
34
+ padding-right: $spacing-unit;
35
+ padding-left: $spacing-unit;
36
+ }
37
+ }
38
+
39
+ /**
40
+ * Clearfix
41
+ */
42
+ %clearfix:after {
43
+ content: "";
44
+ display: table;
45
+ clear: both;
46
+ }