jekyll-theme-louis 0.1.1 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/_includes/amazon-associate.html +6 -0
- data/_includes/footer.html +1 -0
- data/_includes/head/favicon.html +0 -1
- data/_includes/head/google_analytics.html +11 -0
- data/_includes/head/twitter-ogp.html +6 -2
- data/_includes/posts.html +15 -4
- data/_includes/recent-articles.html +16 -0
- data/_includes/sns-share.html +38 -0
- data/_includes/social-link.html +3 -3
- data/_includes/tag-cloud.html +15 -0
- data/_layouts/archive.html +25 -0
- data/_layouts/default.html +3 -1
- data/_layouts/index.html +5 -0
- data/_layouts/page.html +2 -2
- data/_layouts/post.html +23 -4
- data/_layouts/profile.html +2 -0
- data/_sass/base.scss +15 -1
- data/_sass/block/amazon-associate.scss +22 -0
- data/_sass/block/footer.scss +8 -2
- data/_sass/block/header.scss +31 -3
- data/_sass/block/not-found.scss +24 -0
- data/_sass/block/post-pager.scss +3 -3
- data/_sass/block/post.scss +153 -7
- data/_sass/block/posts-pager.scss +2 -2
- data/_sass/block/posts.scss +4 -0
- data/_sass/block/profile-page.scss +17 -2
- data/_sass/block/recent-articles.scss +34 -0
- data/_sass/block/sns-container.scss +31 -0
- data/_sass/block/social-link.scss +50 -4
- data/_sass/block/tag-cloud.scss +58 -0
- data/_sass/color.scss +3 -1
- data/_sass/import.scss +9 -4
- data/_sass/mixin/container.scss +5 -1
- data/_sass/mixin/shadow.scss +1 -1
- data/_sass/reset.scss +6 -0
- data/_sass/variable.scss +8 -2
- data/assets/ogp/ogp.png +0 -0
- metadata +43 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c4595288142c5c07a0e76a1e6d242d7ba5742d3646c2816caf400facd87913b
|
4
|
+
data.tar.gz: d20bd2236591ab4c9009bd93ded67c6daf6c6d4dc1ca288281f18dcbe9e0615e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b6dc012957368f7c4be556a8335c40c7db7fe8ad544946bbfe0898c9af747a5b66d6e6f4082691f9d205459f82d3d814861a3bcbaa079ee2d5ad613ade3ff3d
|
7
|
+
data.tar.gz: 5cb501be0d428c06b9330d1852d7e662b84d366436e5be6df19c094e28008437eaafa75d712177dbf01d1cf08a1686960c4bab4c2a51dfae51626a07d792d661
|
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).
|
data/_includes/footer.html
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
<footer class="footer">
|
2
|
+
{% include tag-cloud.html %}
|
2
3
|
<div class="footer-container">
|
3
4
|
<a href="{{ "/profile.html" | relative_url }}" class="footer-container__link">
|
4
5
|
<img src="{{ '/assets/images/profile_icon.png' | relative_url }}" class="footer-profile__icon" alt="">
|
data/_includes/head/favicon.html
CHANGED
@@ -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,5 +12,9 @@
|
|
12
12
|
<meta name="twitter:description" content="{{ site.description }}">
|
13
13
|
{% endif %}
|
14
14
|
|
15
|
-
|
16
|
-
<meta name="twitter:
|
15
|
+
{% if page.ogp %}
|
16
|
+
<meta name="twitter:image" content="{{ "assets/ogp/" | absolute_url }}{{page.ogp}}">
|
17
|
+
{% else %}
|
18
|
+
<meta name="twitter:image" content="{{ "assets/images/default_ogp.png" | absolute_url }}">
|
19
|
+
{% endif %}
|
20
|
+
<meta name="twitter:url" content="{{ page.url | replace:'index.html','' | absolute_url }}">
|
data/_includes/posts.html
CHANGED
@@ -1,11 +1,22 @@
|
|
1
|
+
|
1
2
|
<div class="posts">
|
2
3
|
{% for post in paginator.posts %}
|
3
|
-
<div class="
|
4
|
+
<div class="posts-content">
|
4
5
|
<a href="{{ post.url | relative_url }}">
|
5
|
-
<
|
6
|
+
<h2 class="post__title">{{ post.title }}</h2>
|
6
7
|
</a>
|
7
|
-
<
|
8
|
-
|
8
|
+
<div class="post-meta">
|
9
|
+
<p class="post__date">{{ post.date | date: '%Y/%-m/%-d' }}</p>
|
10
|
+
<div class="post-tags">
|
11
|
+
{% for tag in post.tags %}
|
12
|
+
<div class="post-tag">
|
13
|
+
<a class="post-tag__link" href="{{ '/archives/tag/' | append: tag | relative_url }}">
|
14
|
+
<i class="fa fa-tag post-tag__icon"></i>{{ tag }}
|
15
|
+
</a>
|
16
|
+
</div>
|
17
|
+
{% endfor %}
|
18
|
+
</div>
|
19
|
+
</div>
|
9
20
|
</div>
|
10
21
|
{% endfor %}
|
11
22
|
</div>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="recent_articles">
|
2
|
+
<p class="recent_articles__title">最新の記事</p>
|
3
|
+
<ul class="recent_articles__list">
|
4
|
+
{% for post in site.posts %}
|
5
|
+
{% if forloop.index0 > 4 %}
|
6
|
+
{% break %}
|
7
|
+
{% else %}
|
8
|
+
<li class="recent_article__title">
|
9
|
+
<a class="recent_article__link" href={{ post.url | relative_url }}>
|
10
|
+
{{ post.title }}
|
11
|
+
</a>
|
12
|
+
</li>
|
13
|
+
{% endif %}
|
14
|
+
{% endfor %}
|
15
|
+
</ul>
|
16
|
+
</div>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<div class="sns-container">
|
2
|
+
<a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.url }}{{ page.url }}&via={{ site.author.twitter if site.author.twitter }}"
|
3
|
+
target="_blank"
|
4
|
+
rel="nofollow noopener noreferrer"
|
5
|
+
class="sns-container__button"
|
6
|
+
>
|
7
|
+
<p class="social-link__item--twitter">
|
8
|
+
<i class="fa fa-twitter"></i>
|
9
|
+
</p>
|
10
|
+
</a>
|
11
|
+
<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}"
|
12
|
+
target="_blank"
|
13
|
+
rel="nofollow noopener noreferrer"
|
14
|
+
class="sns-container__button"
|
15
|
+
>
|
16
|
+
<p class="social-link__item--facebook">
|
17
|
+
<i class="fa fa-facebook"></i>
|
18
|
+
</p>
|
19
|
+
</a>
|
20
|
+
<a href="http://b.hatena.ne.jp/add?&url={{ site.url }}{{ page.url }}"
|
21
|
+
target="_blank"
|
22
|
+
rel="nofollow noopener noreferrer"
|
23
|
+
class="sns-container__button"
|
24
|
+
>
|
25
|
+
<p class="social-link__item--hatena">
|
26
|
+
<i class="fa-hatena"></i>
|
27
|
+
</p>
|
28
|
+
</a>
|
29
|
+
<a href="https://getpocket.com/edit?url={{ site.url }}{{ page.url }}"
|
30
|
+
target="_blank"
|
31
|
+
rel="nofollow noopener noreferrer"
|
32
|
+
class="sns-container__button"
|
33
|
+
>
|
34
|
+
<p class="social-link__item--pocket">
|
35
|
+
<i class="fa fa-get-pocket"></i>
|
36
|
+
</p>
|
37
|
+
</a>
|
38
|
+
</div>
|
data/_includes/social-link.html
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
{% if site.author.github || site.author.twitter || site.author.facebook %}
|
2
2
|
<div class="social-link{{ include.suffix }}">
|
3
3
|
{% if site.author.github %}
|
4
|
-
<a href="https://github.com/{{ site.author.github }}" target="blank">
|
4
|
+
<a href="https://github.com/{{ site.author.github }}" class="social-link__text" target="blank">
|
5
5
|
<p class="social-link__item--github">
|
6
6
|
<i class="fa fa-github"></i>
|
7
7
|
</p>
|
8
8
|
</a>
|
9
9
|
{% endif %}
|
10
10
|
{% if site.author.twitter %}
|
11
|
-
<a href="https://twitter.com/{{ site.author.twitter }}" target="blank">
|
11
|
+
<a href="https://twitter.com/{{ site.author.twitter }}" class="social-link__text" target="blank">
|
12
12
|
<p class="social-link__item--twitter">
|
13
13
|
<i class="fa fa-twitter"></i>
|
14
14
|
</p>
|
15
15
|
</a>
|
16
16
|
{% endif %}
|
17
17
|
{% if site.author.facebook %}
|
18
|
-
<a href="https://facebook.com/{{ site.author.facebook }}" target="blank">
|
18
|
+
<a href="https://facebook.com/{{ site.author.facebook }}" class="social-link__text" target="blank">
|
19
19
|
<p class="social-link__item--facebook">
|
20
20
|
<i class="fa fa-facebook"></i>
|
21
21
|
</p>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{% if site.tags.first %}
|
2
|
+
<div class="tag-cloud">
|
3
|
+
<p class="tag-cloud__title">Tags</p>
|
4
|
+
<div class="cloud-tags">
|
5
|
+
{% for tag in site.tags %}
|
6
|
+
<div class="cloud-tag">
|
7
|
+
{% capture cat %}{{ tag | first }}{% endcapture %}
|
8
|
+
<a class="cloud-tag__link" href="{{ '/archives/tag/' | append: cat | relative_url }}">
|
9
|
+
<i class="fa fa-tag cloud-tag__icon"></i>{{ cat }}
|
10
|
+
</a>
|
11
|
+
</div>
|
12
|
+
{% endfor %}
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
{% endif %}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<ul class="posts">
|
5
|
+
<p class="posts-title">Tag: {{page.title}}</p>
|
6
|
+
{% for post in page.posts %}
|
7
|
+
<div class="posts-content">
|
8
|
+
<a href="{{ post.url | relative_url }}">
|
9
|
+
<h1 class="post__title">{{ post.title }}</h1>
|
10
|
+
</a>
|
11
|
+
<div class="post-meta">
|
12
|
+
<p class="post__date">{{ post.date | date: '%Y/%-m/%-d' }}</p>
|
13
|
+
<div class="post-tags">
|
14
|
+
{% for tag in post.tags %}
|
15
|
+
<div class="post-tag">
|
16
|
+
<a class="post-tag__link" href="{{ '/archives/tag/' | append: tag | relative_url }}">
|
17
|
+
<i class="fa fa-tag post-tag__icon"></i>{{ tag }}
|
18
|
+
</a>
|
19
|
+
</div>
|
20
|
+
{% endfor %}
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
{% endfor %}
|
25
|
+
</ul>
|
data/_layouts/default.html
CHANGED
@@ -5,13 +5,15 @@
|
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
<title>{% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
|
7
7
|
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
8
|
+
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
8
9
|
<link rel="stylesheet" href="{{ '/assets/css/common.css' | relative_url }}">
|
9
10
|
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
10
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,user-scalable=no">
|
11
12
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
12
13
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
13
14
|
{% include head/twitter-ogp.html %}
|
14
15
|
{% include head/favicon.html %}
|
16
|
+
{% include head/google_analytics.html %}
|
15
17
|
</head>
|
16
18
|
|
17
19
|
<body>
|
data/_layouts/index.html
ADDED
data/_layouts/page.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -1,10 +1,29 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
<div class="
|
5
|
-
|
6
|
-
<
|
7
|
-
|
4
|
+
<div class="additional-container">
|
5
|
+
{% include sns-share.html %}
|
6
|
+
<div class="post-container">
|
7
|
+
<div class="post-header">
|
8
|
+
<h1 class="post__title">{{ page.title }}</h1>
|
9
|
+
<div class="post-meta">
|
10
|
+
<p class="post__date">{{ page.date | date: '%Y/%-m/%-d' }}</p>
|
11
|
+
<div class="post-tags">
|
12
|
+
{% for tag in page.tags %}
|
13
|
+
<div class="post-tag">
|
14
|
+
<a class="post-tag__link" href="{{ '/archives/tag/' | append: tag | relative_url }}">
|
15
|
+
<i class="fa fa-tag post-tag__icon"></i>{{ tag }}
|
16
|
+
</a>
|
17
|
+
</div>
|
18
|
+
{% endfor %}
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<div class="post-content">
|
23
|
+
{{ content }}
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
{% include recent-articles.html %}
|
8
27
|
</div>
|
9
28
|
|
10
29
|
{% include post-pager.html %}
|
data/_layouts/profile.html
CHANGED
data/_sass/base.scss
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
html {
|
2
|
+
min-width: 70rem;
|
3
|
+
min-height: 100vh;
|
2
4
|
color: $color-font-main;
|
3
5
|
font-size: $size-font-base;
|
4
|
-
|
6
|
+
@media screen and (max-width: 479px) {
|
7
|
+
min-width: 100%;
|
8
|
+
min-height: 100vh;
|
9
|
+
color: $color-font-main;
|
10
|
+
font-size: $size-font-base;
|
11
|
+
}
|
5
12
|
}
|
6
13
|
|
7
14
|
body {
|
@@ -9,4 +16,11 @@ body {
|
|
9
16
|
align-items: center;
|
10
17
|
flex-direction: column;
|
11
18
|
min-height: 100vh;
|
19
|
+
width: auto;
|
20
|
+
@media screen and (max-width: 479px) {
|
21
|
+
display: flex;
|
22
|
+
align-items: center;
|
23
|
+
flex-direction: column;
|
24
|
+
min-height: 100vh;
|
25
|
+
}
|
12
26
|
}
|
@@ -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
|
+
}
|
data/_sass/block/footer.scss
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
.footer-container {
|
11
11
|
align-items: center;
|
12
12
|
flex-direction: column;
|
13
|
-
padding:
|
13
|
+
padding: 3.5rem 0 2rem;
|
14
14
|
height: 100%;
|
15
15
|
border-top: 1px solid $color-border;
|
16
16
|
|
@@ -29,6 +29,9 @@
|
|
29
29
|
.footer-profile {
|
30
30
|
&__name {
|
31
31
|
font-size: 1rem;
|
32
|
+
&:hover {
|
33
|
+
opacity: 0.6;
|
34
|
+
}
|
32
35
|
}
|
33
36
|
|
34
37
|
&__icon {
|
@@ -36,6 +39,9 @@
|
|
36
39
|
height: $size-footer-profile-icon;
|
37
40
|
border-radius: $size-footer-profile-icon / 2;
|
38
41
|
box-shadow: 0.25rem 0.25rem 0.25rem $color-shadow;
|
42
|
+
&:hover {
|
43
|
+
opacity: 0.6;
|
44
|
+
}
|
39
45
|
}
|
40
46
|
}
|
41
47
|
|
@@ -46,4 +52,4 @@
|
|
46
52
|
&__link {
|
47
53
|
color: $color-font-main;
|
48
54
|
}
|
49
|
-
}
|
55
|
+
}
|
data/_sass/block/header.scss
CHANGED
@@ -3,22 +3,50 @@
|
|
3
3
|
align-items: center;
|
4
4
|
flex-direction: column;
|
5
5
|
justify-content: center;
|
6
|
+
min-width: 70rem;
|
6
7
|
width: 100%;
|
7
8
|
height: $size-header-height;
|
8
9
|
|
9
10
|
@include shadow-bottom();
|
11
|
+
|
12
|
+
@media screen and (max-width: 479px) {
|
13
|
+
min-width: 100%;
|
14
|
+
width: $size-additional-container-width-sp;
|
15
|
+
height: $size-header-height-sp;
|
16
|
+
}
|
10
17
|
}
|
11
18
|
|
12
19
|
.header-container {
|
13
|
-
|
14
|
-
|
20
|
+
display: flex;
|
21
|
+
width: $size-additional-container-width;
|
22
|
+
@media screen and (max-width: 479px) {
|
23
|
+
justify-content: center;
|
24
|
+
width: $size-additional-container-width-sp;
|
25
|
+
}
|
15
26
|
&__link {
|
27
|
+
margin-left: 5rem;
|
16
28
|
text-decoration: none;
|
29
|
+
|
30
|
+
&:hover {
|
31
|
+
opacity: 0.6;
|
32
|
+
}
|
33
|
+
|
34
|
+
@media screen and (max-width: 479px) {
|
35
|
+
display: flex;
|
36
|
+
align-content: center;
|
37
|
+
justify-content: center;
|
38
|
+
margin-left: 0;
|
39
|
+
width: $size-additional-container-width-sp;
|
40
|
+
}
|
17
41
|
}
|
18
42
|
|
19
43
|
&__title {
|
20
44
|
width: 100%;
|
21
45
|
color: $color-font-main;
|
22
46
|
font-size: $size-font-header;
|
47
|
+
@media screen and (max-width: 479px) {
|
48
|
+
width: 90%;
|
49
|
+
font-size: $size-font-header-sp;
|
50
|
+
}
|
23
51
|
}
|
24
|
-
}
|
52
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.not-found {
|
2
|
+
display: flex;
|
3
|
+
align-content: center;
|
4
|
+
align-items: center;
|
5
|
+
flex-direction: column;
|
6
|
+
justify-content: center;
|
7
|
+
height: 20rem;
|
8
|
+
|
9
|
+
&__title{
|
10
|
+
margin-bottom: 2rem;
|
11
|
+
font-weight: bold;
|
12
|
+
font-size: 4.5rem;
|
13
|
+
line-height: 4.5rem;
|
14
|
+
}
|
15
|
+
|
16
|
+
&__text{
|
17
|
+
text-align: center;
|
18
|
+
font-size: 1.25rem;
|
19
|
+
line-height: 1.5rem;
|
20
|
+
@media screen and (max-width: 479px) {
|
21
|
+
font-size: 0.875rem;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
data/_sass/block/post-pager.scss
CHANGED
data/_sass/block/post.scss
CHANGED
@@ -1,22 +1,140 @@
|
|
1
|
+
.additional-container{
|
2
|
+
display: flex;
|
3
|
+
align-items: baseline;
|
4
|
+
flex-direction: row;
|
5
|
+
flex-wrap: wrap;
|
6
|
+
margin-bottom: 2rem;
|
7
|
+
width: $size-additional-container-width;
|
8
|
+
|
9
|
+
@media screen and (max-width: 479px) {
|
10
|
+
align-content: center;
|
11
|
+
align-items: center;
|
12
|
+
flex-direction: column;
|
13
|
+
justify-content: center;
|
14
|
+
width: 100%;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
1
18
|
.post {
|
19
|
+
&__title {
|
20
|
+
margin-bottom: 1rem;
|
21
|
+
width: 100%;
|
22
|
+
font-size: 2.125rem;
|
23
|
+
}
|
24
|
+
|
2
25
|
&__date {
|
26
|
+
margin-bottom: 0 !important;
|
27
|
+
width: 15%;
|
3
28
|
color: $color-font-sub;
|
4
|
-
font-size:
|
29
|
+
font-size: 1rem;
|
30
|
+
@media screen and (max-width: 479px) {
|
31
|
+
margin-bottom: .25rem !important;
|
32
|
+
width: 100%;
|
33
|
+
font-size: 0.875rem;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.post-container {
|
39
|
+
box-sizing: border-box;
|
40
|
+
padding: 2rem 0 0;
|
41
|
+
width: 50rem;
|
42
|
+
|
43
|
+
@media screen and (max-width: 479px) {
|
44
|
+
margin-left: 0;
|
45
|
+
padding: 0;
|
46
|
+
width: 90%;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
.post-header {
|
51
|
+
display: flex;
|
52
|
+
flex-wrap: wrap;
|
53
|
+
width: 100%;
|
54
|
+
}
|
55
|
+
|
56
|
+
.post-meta {
|
57
|
+
display: flex;
|
58
|
+
align-items: center;
|
59
|
+
flex-direction: row;
|
60
|
+
flex-wrap: wrap;
|
61
|
+
margin-bottom: 2rem;
|
62
|
+
width: 100%;
|
63
|
+
height: 1.5rem;
|
64
|
+
@media screen and (max-width: 479px) {
|
65
|
+
margin-bottom: 1rem;
|
66
|
+
height: auto;
|
5
67
|
}
|
6
68
|
}
|
7
69
|
|
8
|
-
.
|
9
|
-
|
10
|
-
|
70
|
+
.post-tags {
|
71
|
+
display: flex;
|
72
|
+
align-items: center;
|
73
|
+
flex-direction: row;
|
74
|
+
flex-wrap: wrap;
|
75
|
+
justify-content: right;
|
76
|
+
width: 85%;
|
77
|
+
height: 100%;
|
78
|
+
@media screen and (max-width: 479px) {
|
79
|
+
width: 100%;
|
80
|
+
height: auto;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.post-tag {
|
85
|
+
display: flex;
|
86
|
+
align-items: center;
|
87
|
+
justify-content: center;
|
88
|
+
margin-right: 0.375rem;
|
89
|
+
margin-bottom: 0.375rem;
|
90
|
+
height: 100%;
|
91
|
+
border: 1px solid $color-border;
|
92
|
+
border-radius: 0.75rem;
|
93
|
+
|
94
|
+
@media screen and (max-width: 479px) {
|
95
|
+
height: 1.5rem;
|
96
|
+
}
|
97
|
+
|
98
|
+
&__icon {
|
99
|
+
margin-right: 0.25rem;
|
100
|
+
}
|
101
|
+
|
102
|
+
&__link {
|
103
|
+
display: flex;
|
104
|
+
align-items: center;
|
105
|
+
flex-direction: row;
|
106
|
+
margin-right: 0.25rem;
|
107
|
+
padding: 0.25rem 0.5rem;
|
108
|
+
height: 100%;
|
109
|
+
color: $color-font-sub;
|
110
|
+
text-decoration: none;
|
111
|
+
font-size: 0.75rem;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
.page-content,
|
116
|
+
.post-content,
|
117
|
+
.posts-content,
|
118
|
+
.profile-content {
|
11
119
|
flex-direction: column;
|
12
|
-
padding:
|
120
|
+
padding: 0 0 5rem;
|
13
121
|
color: $color-font-sub;
|
14
122
|
line-height: 1.875rem;
|
15
123
|
|
16
124
|
@include container();
|
17
125
|
|
126
|
+
@media screen and (max-width: 479px) {
|
127
|
+
padding: 0 0 0rem;
|
128
|
+
width: 100%;
|
129
|
+
height: auto;
|
130
|
+
line-height: 1.5rem;
|
131
|
+
}
|
132
|
+
|
18
133
|
h1 {
|
19
134
|
font-size: 1.75rem;
|
135
|
+
@media screen and (max-width: 479px) {
|
136
|
+
font-size: 1.375rem;
|
137
|
+
}
|
20
138
|
}
|
21
139
|
|
22
140
|
h2 {
|
@@ -64,7 +182,9 @@
|
|
64
182
|
>ol,
|
65
183
|
img,
|
66
184
|
pre,
|
67
|
-
p
|
185
|
+
p,
|
186
|
+
table,
|
187
|
+
blockquote {
|
68
188
|
margin-bottom: 1.5rem;
|
69
189
|
}
|
70
190
|
|
@@ -106,10 +226,36 @@
|
|
106
226
|
background-color: #eee;
|
107
227
|
}
|
108
228
|
|
229
|
+
blockquote {
|
230
|
+
padding: 0.25rem 0 0.25rem 0.5rem;
|
231
|
+
border-left: 0.25rem solid $color-border;
|
232
|
+
|
233
|
+
>p {
|
234
|
+
margin-bottom: 0;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
|
109
238
|
.highlighter-rouge {
|
110
239
|
padding: 0 0.25rem;
|
111
240
|
border: 1px solid $color-border;
|
112
241
|
border-radius: 0.25rem;
|
113
242
|
background-color: rgba($color-border, 0.25);
|
114
243
|
}
|
115
|
-
}
|
244
|
+
}
|
245
|
+
|
246
|
+
.post-content {
|
247
|
+
width: $size-post-container-width !important;
|
248
|
+
|
249
|
+
@media screen and (max-width: 479px) {
|
250
|
+
width: 100% !important;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
.posts-content {
|
255
|
+
padding-bottom: 2rem !important;
|
256
|
+
width: $size-post-container-width !important;
|
257
|
+
@media screen and (max-width: 479px) {
|
258
|
+
padding-bottom: 0.5rem !important;
|
259
|
+
width: 100% !important;
|
260
|
+
}
|
261
|
+
}
|
data/_sass/block/posts.scss
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
.profile-container {
|
2
|
+
box-sizing: border-box;
|
3
|
+
padding: 2rem 0 0;
|
4
|
+
|
5
|
+
@media screen and (max-width: 479px) {
|
6
|
+
margin-left: 0;
|
7
|
+
padding: 0;
|
8
|
+
width: 90%;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
1
12
|
.profile-page {
|
2
13
|
&__name {
|
3
14
|
margin-bottom: 0.5rem;
|
@@ -9,13 +20,17 @@
|
|
9
20
|
height: $size-profile-page-icon;
|
10
21
|
border-radius: $size-profile-page-icon / 2;
|
11
22
|
box-shadow: 0.25rem 0.25rem 0.25rem $color-shadow;
|
23
|
+
@media screen and (max-width: 479px) {
|
24
|
+
width: $size-profile-page-icon * 0.85;
|
25
|
+
height: $size-profile-page-icon * 0.85;
|
26
|
+
}
|
12
27
|
}
|
13
28
|
}
|
14
29
|
|
15
30
|
.profile-info {
|
16
31
|
flex-direction: row;
|
17
32
|
justify-content: flex-start;
|
18
|
-
padding: 2rem 0
|
33
|
+
padding: 2rem 0 1.5rem;
|
19
34
|
|
20
35
|
@include container();
|
21
36
|
|
@@ -28,4 +43,4 @@
|
|
28
43
|
flex-direction: column;
|
29
44
|
justify-content: center;
|
30
45
|
}
|
31
|
-
}
|
46
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
.recent_articles {
|
2
|
+
position: sticky;
|
3
|
+
top: 3rem;
|
4
|
+
display: flex;
|
5
|
+
flex-direction: column;
|
6
|
+
padding: 2.5rem 0 0 2rem;
|
7
|
+
width: 15rem;
|
8
|
+
&__title {
|
9
|
+
margin-bottom: 0.5rem;
|
10
|
+
color: $color-font-main;
|
11
|
+
}
|
12
|
+
&__list {
|
13
|
+
list-style-type: none;
|
14
|
+
}
|
15
|
+
|
16
|
+
@media screen and (max-width: 479px) {
|
17
|
+
width: 100%;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.recent_article{
|
22
|
+
&__link {
|
23
|
+
color: $color-font-sub;
|
24
|
+
text-decoration: none;
|
25
|
+
&:hover {
|
26
|
+
opacity: .7;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
&__title{
|
30
|
+
margin-bottom: .75rem;
|
31
|
+
color: $color-font-sub;
|
32
|
+
font-size: 0.875rem;
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
.sns-container {
|
2
|
+
position: sticky;
|
3
|
+
top: 3rem;
|
4
|
+
display: flex;
|
5
|
+
align-items: center;
|
6
|
+
flex-direction: column;
|
7
|
+
padding: 2.5rem 0 0;
|
8
|
+
width: 5rem;
|
9
|
+
@media screen and (max-width: 479px) {
|
10
|
+
position: relative;
|
11
|
+
top: 0;
|
12
|
+
display: flex;
|
13
|
+
align-content: center;
|
14
|
+
align-items: center;
|
15
|
+
flex-direction: row;
|
16
|
+
justify-content: space-around;
|
17
|
+
padding: .75rem 0 0;
|
18
|
+
width: 70%;
|
19
|
+
}
|
20
|
+
&__button {
|
21
|
+
display: flex;
|
22
|
+
align-items: center;
|
23
|
+
flex-direction: column;
|
24
|
+
justify-content: center;
|
25
|
+
margin-bottom: .625rem;
|
26
|
+
text-decoration: none;
|
27
|
+
&:hover {
|
28
|
+
opacity: 0.6;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
margin-bottom: 0.5rem;
|
7
7
|
|
8
8
|
> :not(:last-child) {
|
9
|
-
margin-right:
|
9
|
+
margin-right: .625rem;
|
10
10
|
}
|
11
11
|
|
12
12
|
a {
|
@@ -61,10 +61,56 @@
|
|
61
61
|
|
62
62
|
@extend .social-link__item;
|
63
63
|
}
|
64
|
+
|
65
|
+
&--hatena {
|
66
|
+
background-color: $color-hatena;
|
67
|
+
|
68
|
+
@extend .social-link__item;
|
69
|
+
}
|
70
|
+
|
71
|
+
&--pocket {
|
72
|
+
background-color: $color-pocket;
|
73
|
+
|
74
|
+
@extend .social-link__item;
|
75
|
+
}
|
64
76
|
}
|
65
77
|
}
|
66
78
|
|
67
79
|
.fa {
|
68
|
-
|
69
|
-
|
70
|
-
|
80
|
+
&-social-link {
|
81
|
+
display: flex;
|
82
|
+
align-content: center;
|
83
|
+
justify-content: center;
|
84
|
+
color: white;
|
85
|
+
font-size: 1.5rem;
|
86
|
+
}
|
87
|
+
|
88
|
+
&-github {
|
89
|
+
@extend .fa-social-link;
|
90
|
+
}
|
91
|
+
|
92
|
+
&-twitter {
|
93
|
+
@extend .fa-social-link;
|
94
|
+
}
|
95
|
+
|
96
|
+
&-facebook {
|
97
|
+
@extend .fa-social-link;
|
98
|
+
}
|
99
|
+
|
100
|
+
&-hatena {
|
101
|
+
@extend .fa-social-link;
|
102
|
+
&:before {
|
103
|
+
content: "B!";
|
104
|
+
font-weight: bold;
|
105
|
+
font-style: normal;
|
106
|
+
font-size: 1.125rem;
|
107
|
+
font-family: Verdana;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
&-get-pocket {
|
112
|
+
font-size: 1.125rem;
|
113
|
+
|
114
|
+
@extend .fa-social-link;
|
115
|
+
}
|
116
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
.tag-cloud {
|
2
|
+
display: flex;
|
3
|
+
align-items: center;
|
4
|
+
flex-direction: column;
|
5
|
+
justify-content: center;
|
6
|
+
padding-bottom: 1.5rem;
|
7
|
+
width: 50rem;
|
8
|
+
|
9
|
+
@media screen and (max-width: 479px) {
|
10
|
+
width: 100%;
|
11
|
+
}
|
12
|
+
|
13
|
+
&__title {
|
14
|
+
display: flex;
|
15
|
+
align-items: center;
|
16
|
+
flex-direction: column;
|
17
|
+
justify-content: center;
|
18
|
+
margin-bottom: 1.25rem;
|
19
|
+
padding-bottom: 0.25rem;
|
20
|
+
width: 5rem;
|
21
|
+
color: $color-font-sub;
|
22
|
+
font-size: 1rem;
|
23
|
+
@media screen and (max-width: 479px) {
|
24
|
+
margin-bottom: .875rem;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.cloud-tags {
|
30
|
+
display: flex;
|
31
|
+
flex-direction: row;
|
32
|
+
flex-wrap: wrap;
|
33
|
+
justify-content: center;
|
34
|
+
width: 100%;
|
35
|
+
}
|
36
|
+
|
37
|
+
.cloud-tag {
|
38
|
+
display: flex;
|
39
|
+
align-items: center;
|
40
|
+
margin-right: 0.375rem;
|
41
|
+
margin-bottom: 0.375rem;
|
42
|
+
height: 100%;
|
43
|
+
border: 1px solid $color-border;
|
44
|
+
border-radius: 0.75rem;
|
45
|
+
|
46
|
+
&__icon {
|
47
|
+
margin-right: 0.25rem;
|
48
|
+
}
|
49
|
+
|
50
|
+
&__link {
|
51
|
+
margin-right: 0.25rem;
|
52
|
+
padding: 0.25rem 0.5rem;
|
53
|
+
height: 100%;
|
54
|
+
color: $color-font-sub;
|
55
|
+
text-decoration: none;
|
56
|
+
font-size: 0.75rem;
|
57
|
+
}
|
58
|
+
}
|
data/_sass/color.scss
CHANGED
data/_sass/import.scss
CHANGED
@@ -4,12 +4,17 @@
|
|
4
4
|
@import "mixin/container";
|
5
5
|
@import "mixin/shadow";
|
6
6
|
@import "base";
|
7
|
-
@import "block/
|
7
|
+
@import "block/amazon-associate";
|
8
8
|
@import "block/footer";
|
9
|
+
@import "block/header";
|
10
|
+
@import "block/not-found";
|
9
11
|
@import "block/post";
|
12
|
+
@import "block/post-pager";
|
10
13
|
@import "block/posts";
|
14
|
+
@import "block/posts-pager";
|
11
15
|
@import "block/prettier";
|
16
|
+
@import "block/profile-page";
|
17
|
+
@import "block/recent-articles";
|
18
|
+
@import "block/sns-container";
|
12
19
|
@import "block/social-link";
|
13
|
-
@import "block/
|
14
|
-
@import "block/posts-pager";
|
15
|
-
@import "block/profile-page";
|
20
|
+
@import "block/tag-cloud";
|
data/_sass/mixin/container.scss
CHANGED
data/_sass/mixin/shadow.scss
CHANGED
data/_sass/reset.scss
CHANGED
data/_sass/variable.scss
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
-
$size-container-width:
|
1
|
+
$size-container-width: 60rem;
|
2
|
+
$size-post-container-width: 50rem;
|
3
|
+
$size-container-width-sp: 90%;
|
4
|
+
$size-additional-container-width: 70rem;
|
5
|
+
$size-additional-container-width-sp: 100%;
|
2
6
|
|
3
7
|
$size-header-height: 3rem;
|
8
|
+
$size-header-height-sp: 2rem;
|
4
9
|
$size-footer-height: 3rem;
|
5
10
|
|
6
11
|
$size-footer-profile-icon: 4rem;
|
@@ -8,4 +13,5 @@ $size-profile-page-icon: 6rem;
|
|
8
13
|
|
9
14
|
// font
|
10
15
|
$size-font-base: 16px;
|
11
|
-
$size-font-header: 1.5rem;
|
16
|
+
$size-font-header: 1.5rem;
|
17
|
+
$size-font-header-sp: 1.125rem;
|
data/assets/ogp/ogp.png
ADDED
Binary file
|
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.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ShimeWataru
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -24,6 +24,34 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jekyll-paginate
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jekyll-archives
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: bundler
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,28 +89,40 @@ extra_rdoc_files: []
|
|
61
89
|
files:
|
62
90
|
- LICENSE.txt
|
63
91
|
- README.md
|
92
|
+
- _includes/amazon-associate.html
|
64
93
|
- _includes/footer.html
|
65
94
|
- _includes/head/favicon.html
|
95
|
+
- _includes/head/google_analytics.html
|
66
96
|
- _includes/head/twitter-ogp.html
|
67
97
|
- _includes/header.html
|
68
98
|
- _includes/post-pager.html
|
69
99
|
- _includes/posts-pager.html
|
70
100
|
- _includes/posts.html
|
101
|
+
- _includes/recent-articles.html
|
102
|
+
- _includes/sns-share.html
|
71
103
|
- _includes/social-link.html
|
104
|
+
- _includes/tag-cloud.html
|
105
|
+
- _layouts/archive.html
|
72
106
|
- _layouts/default.html
|
107
|
+
- _layouts/index.html
|
73
108
|
- _layouts/page.html
|
74
109
|
- _layouts/post.html
|
75
110
|
- _layouts/profile.html
|
76
111
|
- _sass/base.scss
|
112
|
+
- _sass/block/amazon-associate.scss
|
77
113
|
- _sass/block/footer.scss
|
78
114
|
- _sass/block/header.scss
|
115
|
+
- _sass/block/not-found.scss
|
79
116
|
- _sass/block/post-pager.scss
|
80
117
|
- _sass/block/post.scss
|
81
118
|
- _sass/block/posts-pager.scss
|
82
119
|
- _sass/block/posts.scss
|
83
120
|
- _sass/block/prettier.scss
|
84
121
|
- _sass/block/profile-page.scss
|
122
|
+
- _sass/block/recent-articles.scss
|
123
|
+
- _sass/block/sns-container.scss
|
85
124
|
- _sass/block/social-link.scss
|
125
|
+
- _sass/block/tag-cloud.scss
|
86
126
|
- _sass/color.scss
|
87
127
|
- _sass/import.scss
|
88
128
|
- _sass/mixin/container.scss
|
@@ -105,6 +145,7 @@ files:
|
|
105
145
|
- assets/images/favicon/site.webmanifest
|
106
146
|
- assets/images/profile_icon.png
|
107
147
|
- assets/images/usage_image.png
|
148
|
+
- assets/ogp/ogp.png
|
108
149
|
homepage: https://github.com/wawawatataru/louis
|
109
150
|
licenses:
|
110
151
|
- MIT
|