glance 1.1.0 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 123abefa38a80e9ead9ddb6fc3e9175236267168de45663bad5477ed107e5626
4
- data.tar.gz: 85a469b5a2c6f37aeb469c662634209573219013eb4e6409b85949950b73a55b
3
+ metadata.gz: 18e6f9847356babf21b77462d0be78c3f0696a05f35b842c24df7c33c7d2c92e
4
+ data.tar.gz: 2544b24761943c7aa814bead554ee3e5d9dcaa4eaa3914f9d55ca07dc8f475c0
5
5
  SHA512:
6
- metadata.gz: 791c72f5d351082fc9c66bbc07c8f3a139fee1a0e957d60ff8b6bf06a47f8253b1a2ff039b83ef1f5d5d537f96200a1905bde14953f65284889d2daa9cc0bdde
7
- data.tar.gz: 4805cf3185f56a3524d4dc9965a559099179120ddbd9bcd3170ad8dbffe7318b061ef0e353ee0f23f84f6eebea5987d760322a68536ae82272b1f5bfa685429f
6
+ metadata.gz: 4ec6cd3c09e24b80e39304845e994f9eaf44f39a979084b723ac5afb18ba311ab6ac4d847c7c0b7be1b71a9a75d2c0214d6cd5b35f61924532ccd2f90c654e11
7
+ data.tar.gz: bd7293ccf6b447e135075e8baed4f231edd2955920888002429023a7d43dccb425f74a24e7c8e4ecda2c163fb8ed15ad2442d874d2be5c4e61fc156770cd9d82
data/README.md CHANGED
@@ -49,6 +49,13 @@ Your theme is setup just like a normal Jekyll site! To test your theme, run `bun
49
49
  When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
50
50
  To add a custom directory to your theme-gem, please edit the regexp in `glance.gemspec` accordingly.
51
51
 
52
+ ## TODO
53
+
54
+ - [x] float the date bandge
55
+ - [ ] Fix gem
56
+ - [ ] tags
57
+ - [ ] Archive page
58
+
52
59
  ## License
53
60
 
54
61
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,55 +1,71 @@
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> -->
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-about">
12
+ <article>
13
+ <header>
14
+ {%- if page.title -%}
15
+ <h2>{{ page.title | escape }}</h2>
16
+ {%- endif -%}
17
+ </header>
18
+
19
+ <div>
20
+ {{ content }}
21
+ </div>
22
+
23
+ {%- if page.works.name -%}
24
+ <h3>{{ page.works.name | escape }}</h3>
25
+ {%- endif -%}
26
+ <div class="works-card-container">
27
+ {%- if page.works -%}
28
+ {% for work in page.works.data %}
29
+ <div class="card works-card">
30
+ {%- if work[1].imgsrc -%}
31
+ <img src={{ work[1].imgsrc | escape }} alt="Card image">
32
+ {%- endif -%}
33
+ <div class="card-body">
34
+ {%- if work[1].title -%}
35
+ <h4 class="card-title">{{ work[1].title | escape }}
36
+ {%- endif -%}
37
+ {%- if work[1].tags -%}
38
+ {% for tag in work[1].tags %}
39
+ <!-- different tags -->
40
+ <!-- <span class="badge ">{{ tag | escape }} </span> -->
41
+ <!-- <span class="badge secondary">{{ tag | escape }} </span> -->
42
+ <span class="badge success">{{ tag | escape }} </span>
43
+ <!-- <span class="badge warning">{{ tag | escape }} </span> -->
44
+ <!-- <span class="badge danger">{{ tag | escape }} </span> -->
45
+ {% endfor %}
46
+ {%- endif -%}
47
+ </h4>
48
+ {%- if work[1].subtitle -%}
49
+ <h5 class="card-subtitle">{{ work[1].subtitle | escape }}</h5>
50
+ {%- endif -%}
51
+ {%- if work[1].description -%}
52
+ <p class="card-text">{{ work[1].description | escape }}</p>
53
+ {%- endif -%}
54
+ {%- if work[1].button_text -%}
55
+ <a href="{{ work[1].link | escape }}" class="clean-link"><button>{{ work[1].button_text | escape }}</button></a>
56
+ {%- endif -%}
57
+ </div>
58
+ </div>
38
59
  {% endfor %}
39
60
  {%- 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 -%}
61
+ </div>
62
+ </article>
50
63
  </div>
51
- </div>
52
- {% endfor %}
53
- {%- endif -%}
54
- </div>
55
- </article>
64
+ </main>
65
+
66
+ {%- include footer.html -%}
67
+
68
+ </body>
69
+
70
+ </html>
71
+
@@ -19,9 +19,8 @@ layout: default
19
19
  {%- assign date_format = site.glance.date_format | default: "%b %-d, %Y" -%}
20
20
 
21
21
  {%- for post in posts -%}
22
- <span class="badge post-badge">{{ post.date | date: date_format }}</span>
23
22
  <p class="post-link">
24
- <a href="{{ post.url | relative_url }}">
23
+ <a href="{{ post.url | relative_url }}" class="clean-link" target="_blank">
25
24
  {{ post.title | escape }}
26
25
 
27
26
  {%- if site.show_subtitle -%}
@@ -31,6 +30,7 @@ layout: default
31
30
  {%- endif -%}
32
31
 
33
32
  </a>
33
+ <span class="badge post-badge">{{ post.date | date: date_format }}</span>
34
34
  </p>
35
35
  {%- endfor -%}
36
36
  {%- endif -%}
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Basic styling
4
3
  */
@@ -35,7 +34,25 @@
35
34
  padding-left: $spacing-unit;
36
35
  }
37
36
  }
38
-
37
+
38
+ /**
39
+ * Wrapper for about page
40
+ */
41
+ .wrapper-about {
42
+ max-width: calc(#{$about-width} - (#{$spacing-unit}));
43
+ margin-right: auto;
44
+ margin-left: auto;
45
+ padding-right: $spacing-unit / 2;
46
+ padding-left: $spacing-unit / 2;
47
+ @extend %clearfix;
48
+
49
+ @media screen and (min-width: $on-large) {
50
+ max-width: calc(#{$about-width} - (#{$spacing-unit} * 2));
51
+ padding-right: $spacing-unit;
52
+ padding-left: $spacing-unit;
53
+ }
54
+ }
55
+
39
56
  /**
40
57
  * Clearfix
41
58
  */
@@ -50,12 +50,17 @@
50
50
  .post-link {
51
51
  display: block;
52
52
  @include relative-font-size(1.5);
53
- a {
54
- // Clean the underline from paperCSS
55
- background-image: none;
56
- }
57
53
  }
58
54
 
55
+ /**
56
+ * Post badge
57
+ */
58
+ .post-badge {
59
+ float: right;
60
+ font-size: 50% !important;
61
+ }
62
+
63
+
59
64
  /**
60
65
  * Clean links
61
66
  */
@@ -101,7 +106,6 @@
101
106
  margin: 1rem 0;
102
107
  }
103
108
 
104
-
105
109
  /**
106
110
  * links container
107
111
  */
@@ -116,6 +120,7 @@
116
120
  }
117
121
 
118
122
  .friend-links{
123
+ transform: rotate(-5deg);
119
124
  min-width: 10rem;
120
125
  margin: 1rem 0;
121
126
  display: -webkit-flex; /* Safari */
@@ -15,6 +15,8 @@ $table-text-align: left !default;
15
15
 
16
16
  // Width of the content area
17
17
  $content-width: 1000px + (2 * $spacing-unit) !default;
18
+ // Width of the about page
19
+ $about-width: 1400px + (2 * $spacing-unit) !default;
18
20
 
19
21
  $on-palm: 600px !default;
20
22
  $on-laptop: 800px !default;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - CoinkWang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-05 00:00:00.000000000 Z
11
+ date: 2020-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll