jekyll-theme-louis 0.1.1 → 0.1.2

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: 7dd14f3a1c26ff8deb26358e12c77ea59994f6ef3cc10bb9af3cb5b95515b3b1
4
- data.tar.gz: 77978b0d27bf8ab2ce87b6b3d0fbbeb917b26dc10dbf2976427f16cb046aba5c
3
+ metadata.gz: 54ca6df6a89fb5fe4285c6d57313b8dfce2d6204080b63658205743d022c8f67
4
+ data.tar.gz: 261c1a25bd987c738110a5f6cc46727555eb22742935ca39e1a86ed706b85a36
5
5
  SHA512:
6
- metadata.gz: 9f53687920e6590e8a2e624849420a9335783560968fa90da3fc44a71c7fffc75a58c6eed612b7a49f130ae24a52f55bd774b3dc10860dc10c0c247906a366d3
7
- data.tar.gz: 515707e0535937ba60f368f220b182bfad5bd869ecc3e3a0ea5934993709c9a36e524b07edd0a97e8582d5f7502bae27dff77a2831650b5b0efef4269be682f6
6
+ metadata.gz: a21165eecbefe45c436be04b5779dee832f71b08bfbed1b56290fd722adb5f673e01c7719a41f620a1c0df1daf869ff88817383a6cfb53baeb11fe62d81d1cae
7
+ data.tar.gz: c67ab8cd85bee2fff7d48f29307a431e58f71c8ff3325402aa8a551c4ff2c2ee26fc2e04655186d1292422c4eb89001e88f3100a6dbbbb4fe6cd4b5a12079d8e
data/README.md CHANGED
@@ -6,7 +6,6 @@
6
6
 
7
7
  Louis is a [Jekyll](https://github.com/jekyll/jekyll/) theme for Blog. It provides very simple blog theme for Jekyll sites that includes a profile, post and other pages.
8
8
 
9
-
10
9
  ![Louisイメージ](https://github.com/wawawatataru/louis/blob/master/assets/images/usage_image.png?raw=true,"Louisイメージ")
11
10
 
12
11
  ## Usage
@@ -50,6 +49,12 @@ author:
50
49
  facebook: [Author facebook account (optinal)]
51
50
  ```
52
51
 
52
+ If you want to analyze with Google Analytics, add Google Analytics ID to config.yml.
53
+
54
+ ```yml
55
+ google_analytics_id: [google analytics id (optinal)]
56
+ ```
57
+
53
58
  ## License
54
59
 
55
60
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ <div class="amazon-associate">
2
+ <a class="amazon-associate__link" href="{{ include.url }}">
3
+ <img class="amazon-associate__image" src="{{ include.image-url }}" >
4
+ <p class="amazon-associate__title">{{ include.title }}</p>
5
+ </a>
6
+ </div>
@@ -1,7 +1,6 @@
1
1
  <link rel="apple-touch-icon" sizes="180x180" href="{{ "assets/images/favicon/apple-touch-icon.png" | absolute_url }}">
2
2
  <link rel="icon" type="image/png" sizes="32x32" href="{{ "assets/images/favicon/favicon-32x32.png" | absolute_url }}">
3
3
  <link rel="icon" type="image/png" sizes="16x16" href="{{ "assets/images/favicon/favicon-16x16.png" | absolute_url }}">
4
- <link rel="manifest" href="{{ "assets/images/favicon/site.webmanifest" | absolute_url }}">
5
4
  <link rel="mask-icon" href="{{ "assets/images/favicon/safari-pinned-tab.svg" | absolute_url }}" color="#707070">
6
5
  <meta name="msapplication-TileColor" content="#707070">
7
6
  <meta name="theme-color" content="#ffffff">
@@ -0,0 +1,11 @@
1
+ {% if site.google_analytics_id %}
2
+ <!-- Global site tag (gtag.js) - Google Analytics -->
3
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics_id }}"></script>
4
+ <script>
5
+ window.dataLayer = window.dataLayer || [];
6
+ function gtag(){dataLayer.push(arguments);}
7
+ gtag('js', new Date());
8
+
9
+ gtag('config', '{{ site.google_analytics_id }}');
10
+ </script>
11
+ {% endif %}
@@ -12,6 +12,7 @@
12
12
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
13
13
  {% include head/twitter-ogp.html %}
14
14
  {% include head/favicon.html %}
15
+ {% include head/google_analytics.html %}
15
16
  </head>
16
17
 
17
18
  <body>
@@ -0,0 +1,22 @@
1
+ .amazon-associate {
2
+ margin-bottom: 1.5rem;
3
+ padding: 1rem;
4
+ width: 100%;
5
+ border: 1px solid $color-border;
6
+
7
+ &__link {
8
+ display: flex;
9
+ align-items: center;
10
+ flex-direction: row;
11
+ }
12
+
13
+ &__image {
14
+ margin-right: 1rem;
15
+ margin-bottom: 0 !important;
16
+ width: 9rem;
17
+ }
18
+
19
+ &__title {
20
+ font-size: 1rem;
21
+ }
22
+ }
@@ -64,7 +64,9 @@
64
64
  >ol,
65
65
  img,
66
66
  pre,
67
- p {
67
+ p,
68
+ table,
69
+ blockquote {
68
70
  margin-bottom: 1.5rem;
69
71
  }
70
72
 
@@ -106,6 +108,15 @@
106
108
  background-color: #eee;
107
109
  }
108
110
 
111
+ blockquote {
112
+ padding: 0.25rem 0 0.25rem 0.5rem;
113
+ border-left: 0.25rem solid $color-border;
114
+
115
+ >p {
116
+ margin-bottom: 0;
117
+ }
118
+ }
119
+
109
120
  .highlighter-rouge {
110
121
  padding: 0 0.25rem;
111
122
  border: 1px solid $color-border;
data/_sass/import.scss CHANGED
@@ -4,12 +4,13 @@
4
4
  @import "mixin/container";
5
5
  @import "mixin/shadow";
6
6
  @import "base";
7
- @import "block/header";
7
+ @import "block/amazon-associate";
8
8
  @import "block/footer";
9
+ @import "block/header";
9
10
  @import "block/post";
10
- @import "block/posts";
11
- @import "block/prettier";
12
- @import "block/social-link";
13
11
  @import "block/post-pager";
12
+ @import "block/posts";
14
13
  @import "block/posts-pager";
15
- @import "block/profile-page";
14
+ @import "block/prettier";
15
+ @import "block/profile-page";
16
+ @import "block/social-link";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-louis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShimeWataru
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2020-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -61,8 +61,10 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - LICENSE.txt
63
63
  - README.md
64
+ - _includes/amazon-associate.html
64
65
  - _includes/footer.html
65
66
  - _includes/head/favicon.html
67
+ - _includes/head/google_analytics.html
66
68
  - _includes/head/twitter-ogp.html
67
69
  - _includes/header.html
68
70
  - _includes/post-pager.html
@@ -74,6 +76,7 @@ files:
74
76
  - _layouts/post.html
75
77
  - _layouts/profile.html
76
78
  - _sass/base.scss
79
+ - _sass/block/amazon-associate.scss
77
80
  - _sass/block/footer.scss
78
81
  - _sass/block/header.scss
79
82
  - _sass/block/post-pager.scss