spuit 0.1.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.npmignore +1 -2
- data/Makefile +12 -0
- data/README.md +2 -1
- data/lib/spuit/version.rb +1 -1
- data/package.json +2 -25
- data/scss/components/_button.scss +28 -27
- data/scss/components/_group.scss +50 -0
- data/scss/components/_switch.scss +40 -24
- data/scss/components/_triangle.scss +4 -4
- data/scss/elements/{_custom-checkbox.scss → _custom-radio.scss} +31 -22
- data/scss/elements/_fieldset.scss +21 -49
- data/scss/elements/_input.scss +26 -11
- data/scss/elements/_radio.scss +39 -0
- data/scss/elements/_select.scss +7 -3
- data/scss/elements/_table.scss +4 -11
- data/scss/includes/_spacers.scss +1 -1
- data/scss/modules/_reset.scss +32 -0
- data/scss/spuit.scss +5 -1
- data/scss/variables/_defaults.scss +1 -0
- data/scss/variables/_fonts.scss +45 -0
- data/scss/variables/_media-queries.scss +2 -2
- data/site/.gitignore +117 -0
- data/site/README.md +12 -0
- data/site/archetypes/default.md +6 -0
- data/site/config.toml +24 -0
- data/site/content/posts/components.html +445 -0
- data/site/content/posts/example.md +66 -0
- data/site/content/posts/layouts.md +11 -0
- data/site/content/posts/layouts/2col.html +27 -0
- data/site/content/posts/layouts/holygrail.html +40 -0
- data/site/content/posts/layouts/stickyfooter.html +23 -0
- data/site/content/search.adoc +5 -0
- data/site/themes/spuit/.gitignore +68 -0
- data/site/themes/spuit/LICENSE.md +20 -0
- data/site/themes/spuit/README.md +66 -0
- data/site/themes/spuit/archetypes/default.md +7 -0
- data/{assets/javascripts/spuit → site/themes/spuit/assets/javascripts/_}/Common.js +0 -0
- data/{assets/javascripts/spuit → site/themes/spuit/assets/javascripts/_}/extend.js +0 -0
- data/site/themes/spuit/assets/javascripts/classes/HugoSearch.js +115 -0
- data/site/themes/spuit/assets/javascripts/classes/onof.js +107 -0
- data/site/themes/spuit/assets/javascripts/scripts.js +26 -0
- data/site/themes/spuit/assets/stylesheets/styles.scss +790 -0
- data/site/themes/spuit/assets/stylesheets/styles/components/_card.scss +160 -0
- data/site/themes/spuit/assets/stylesheets/styles/components/_syntax.scss +59 -0
- data/site/themes/spuit/assets/stylesheets/styles/config/_mixins.scss +8 -0
- data/site/themes/spuit/assets/stylesheets/styles/config/_variables.scss +6 -0
- data/site/themes/spuit/design/badge.sketch +0 -0
- data/site/themes/spuit/layouts/404.html +9 -0
- data/site/themes/spuit/layouts/_default/baseof.html +27 -0
- data/site/themes/spuit/layouts/_default/list.html +22 -0
- data/site/themes/spuit/layouts/_default/rss.xml +26 -0
- data/site/themes/spuit/layouts/_default/single.html +14 -0
- data/site/themes/spuit/layouts/_default/temp.html +5 -0
- data/site/themes/spuit/layouts/index.html +2 -0
- data/site/themes/spuit/layouts/json/single.html +28 -0
- data/site/themes/spuit/layouts/partials/foot.html +26 -0
- data/site/themes/spuit/layouts/partials/footer.html +5 -0
- data/site/themes/spuit/layouts/partials/head.html +52 -0
- data/site/themes/spuit/layouts/partials/header.html +4 -0
- data/site/themes/spuit/layouts/partials/parts/breadcrumbs.html +36 -0
- data/site/themes/spuit/layouts/partials/parts/info.html +19 -0
- data/site/themes/spuit/layouts/partials/parts/nextback.html +9 -0
- data/site/themes/spuit/layouts/partials/parts/pagenator.html +31 -0
- data/site/themes/spuit/layouts/partials/parts/pager.html +23 -0
- data/site/themes/spuit/layouts/partials/sidebar.html +52 -0
- data/site/themes/spuit/layouts/partials/widgets/archive.html +14 -0
- data/site/themes/spuit/layouts/partials/widgets/categories.html +12 -0
- data/site/themes/spuit/layouts/partials/widgets/recents.html +14 -0
- data/site/themes/spuit/layouts/partials/widgets/related.html +13 -0
- data/site/themes/spuit/layouts/partials/widgets/search-modal.html +19 -0
- data/site/themes/spuit/layouts/partials/widgets/search.html +10 -0
- data/site/themes/spuit/layouts/partials/widgets/tags.html +12 -0
- data/site/themes/spuit/layouts/shortcodes/blockquote.html +70 -0
- data/site/themes/spuit/layouts/shortcodes/card-amazon.html +28 -0
- data/site/themes/spuit/layouts/shortcodes/card-site.html +22 -0
- data/site/themes/spuit/layouts/shortcodes/card-store.html +28 -0
- data/site/themes/spuit/layouts/shortcodes/card-youtube.html +27 -0
- data/site/themes/spuit/layouts/shortcodes/previews.html +18 -0
- data/site/themes/spuit/package-lock.json +7959 -0
- data/site/themes/spuit/package.json +46 -0
- data/{dist → site/themes/spuit/static}/favicon.ico +0 -0
- data/site/themes/spuit/static/fonts/FontAwesome.otf +0 -0
- data/site/themes/spuit/static/fonts/fontawesome-webfont.eot +0 -0
- data/site/themes/spuit/static/fonts/fontawesome-webfont.svg +2671 -0
- data/site/themes/spuit/static/fonts/fontawesome-webfont.ttf +0 -0
- data/site/themes/spuit/static/fonts/fontawesome-webfont.woff +0 -0
- data/site/themes/spuit/static/fonts/fontawesome-webfont.woff2 +0 -0
- data/site/themes/spuit/static/images/appstore-badge.png +0 -0
- data/site/themes/spuit/static/images/appstore-badge_en.png +0 -0
- data/{dist → site/themes/spuit/static/images}/favicon.png +0 -0
- data/site/themes/spuit/static/images/google-play-badge.png +0 -0
- data/site/themes/spuit/static/images/google-play-badge_en.png +0 -0
- data/site/themes/spuit/static/javascripts/scripts.js +120 -0
- data/site/themes/spuit/static/stylesheets/styles.css +9763 -0
- data/site/themes/spuit/theme.toml +9 -0
- data/site/themes/spuit/webpack.config.js +10 -0
- data/site/themes/spuit/webpack/css.webpack.config.js +42 -0
- data/site/themes/spuit/webpack/js.webpack.config.js +21 -0
- data/site/themes/spuit/yarn.lock +6815 -0
- data/yarn.lock +337 -4942
- metadata +84 -16
- data/assets/html/index.ejs +0 -331
- data/assets/javascripts/scripts.js +0 -4
- data/assets/stylesheets/styles.scss +0 -191
- data/assets/stylesheets/styles/config/_mixins.scss +0 -26
- data/assets/stylesheets/styles/config/_variables.scss +0 -4
- data/dist/index.html +0 -1
- data/dist/javascripts/scripts.js +0 -1
- data/dist/stylesheets/styles.css +0 -3
- data/scss/_/_form.sass +0 -44
@@ -0,0 +1,160 @@
|
|
1
|
+
.card {
|
2
|
+
$b: &;
|
3
|
+
border: 0;
|
4
|
+
margin: 0;
|
5
|
+
padding: 1rem 0;
|
6
|
+
|
7
|
+
h5 {
|
8
|
+
@include font(.6125rem, 1);
|
9
|
+
color: #ddd;
|
10
|
+
text-transform: uppercase;
|
11
|
+
}
|
12
|
+
|
13
|
+
&__link {
|
14
|
+
display: flex;
|
15
|
+
position: relative;
|
16
|
+
justify-content: flex-start;
|
17
|
+
align-items: center;
|
18
|
+
border: 1px solid #eee;
|
19
|
+
text-decoration: none;
|
20
|
+
line-height: 1.5rem;
|
21
|
+
padding: 20px;
|
22
|
+
position: relative;
|
23
|
+
@include breakpoint-down(md) {
|
24
|
+
flex-wrap: wrap;
|
25
|
+
}
|
26
|
+
|
27
|
+
&::before {
|
28
|
+
@include fa;
|
29
|
+
content: '\f108';
|
30
|
+
font-size: .75rem;
|
31
|
+
line-height: 2rem;
|
32
|
+
position: absolute;
|
33
|
+
bottom: -1px;
|
34
|
+
right: 0;
|
35
|
+
padding: 10px 8px;
|
36
|
+
transform: translateX(100%);
|
37
|
+
background: #eee;
|
38
|
+
color: #fff;
|
39
|
+
border-radius: 0 5px 5px 0;
|
40
|
+
opacity: 1;
|
41
|
+
@include breakpoint-down(md) {
|
42
|
+
font-size: 1rem;
|
43
|
+
line-height: 1;
|
44
|
+
width: 5rem;
|
45
|
+
border-radius: 5px 5px 0 0;
|
46
|
+
padding: 8px 10px;
|
47
|
+
text-align: center;
|
48
|
+
top: -1px;
|
49
|
+
bottom: auto;
|
50
|
+
right: -1px;
|
51
|
+
left: auto;
|
52
|
+
transform: translateX(0) translateY(-100%);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
&:hover {
|
57
|
+
color: $color-blue;
|
58
|
+
border-color: $color-blue;
|
59
|
+
text-decoration: none;
|
60
|
+
&::before {
|
61
|
+
background: $color-blue;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
&__img {
|
66
|
+
display: block;
|
67
|
+
flex: 1 0 150px;
|
68
|
+
max-width: 150px;
|
69
|
+
height: auto;
|
70
|
+
img {
|
71
|
+
width: 100%;
|
72
|
+
}
|
73
|
+
@include breakpoint-down(md) {
|
74
|
+
width: 100%;
|
75
|
+
max-width: 100%;
|
76
|
+
text-align: center;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
&__info {
|
80
|
+
padding: 0 0 0 20px;
|
81
|
+
@include breakpoint-down(md) {
|
82
|
+
width: 100%;
|
83
|
+
padding: 20px 0 0 0;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
&__title {
|
87
|
+
@include font(1rem, 1.8rem);
|
88
|
+
display: block;
|
89
|
+
}
|
90
|
+
&__url {
|
91
|
+
@include font(.75rem, 1.2rem);
|
92
|
+
@include word-break;
|
93
|
+
display: block;
|
94
|
+
padding-top: 5px;
|
95
|
+
}
|
96
|
+
&__description {
|
97
|
+
@include font(.75rem, 1.2rem);
|
98
|
+
display: block;
|
99
|
+
color: $color-gray;
|
100
|
+
padding-top: 5px;
|
101
|
+
}
|
102
|
+
|
103
|
+
&.is-amazon,
|
104
|
+
&.is-apple,
|
105
|
+
&.is-google {
|
106
|
+
#{$b}__link {
|
107
|
+
@include breakpoint-down(md) {
|
108
|
+
justify-content: center;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
#{$b}__img {
|
112
|
+
@include breakpoint-down(md) {
|
113
|
+
flex: 0 1 100px;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
#{$b}__info {
|
117
|
+
@include breakpoint-down(md) {
|
118
|
+
flex: 1 0 100%;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
&.is-youtuve {
|
124
|
+
#{$b}__img {
|
125
|
+
padding-top: 20px;
|
126
|
+
padding-bottom: 20px;
|
127
|
+
background: #000;
|
128
|
+
@include breakpoint-down(md) {
|
129
|
+
padding-top: 0;
|
130
|
+
padding-bottom: 0;
|
131
|
+
background: transparent;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
&.is-apple,
|
137
|
+
&.is-google {
|
138
|
+
margin: 1rem 0;
|
139
|
+
#{$b}__img {
|
140
|
+
img {
|
141
|
+
border-radius: 5px;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
&.is-apple {
|
146
|
+
#{$b}__link {
|
147
|
+
&::before {
|
148
|
+
content: '\f179';
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
&.is-google {
|
153
|
+
#{$b}__link {
|
154
|
+
&::before {
|
155
|
+
content: '\f1a0';
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/* Background */ .chroma { color: #f8f8f2; background-color: #272822 }
|
2
|
+
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
|
3
|
+
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
4
|
+
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
|
5
|
+
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
|
6
|
+
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
|
7
|
+
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
|
8
|
+
/* Keyword */ .chroma .k { color: #66d9ef }
|
9
|
+
/* KeywordConstant */ .chroma .kc { color: #66d9ef }
|
10
|
+
/* KeywordDeclaration */ .chroma .kd { color: #66d9ef }
|
11
|
+
/* KeywordNamespace */ .chroma .kn { color: #f92672 }
|
12
|
+
/* KeywordPseudo */ .chroma .kp { color: #66d9ef }
|
13
|
+
/* KeywordReserved */ .chroma .kr { color: #66d9ef }
|
14
|
+
/* KeywordType */ .chroma .kt { color: #66d9ef }
|
15
|
+
/* NameAttribute */ .chroma .na { color: #a6e22e }
|
16
|
+
/* NameClass */ .chroma .nc { color: #a6e22e }
|
17
|
+
/* NameConstant */ .chroma .no { color: #66d9ef }
|
18
|
+
/* NameDecorator */ .chroma .nd { color: #a6e22e }
|
19
|
+
/* NameException */ .chroma .ne { color: #a6e22e }
|
20
|
+
/* NameFunction */ .chroma .nf { color: #a6e22e }
|
21
|
+
/* NameOther */ .chroma .nx { color: #a6e22e }
|
22
|
+
/* NameTag */ .chroma .nt { color: #f92672 }
|
23
|
+
/* Literal */ .chroma .l { color: #ae81ff }
|
24
|
+
/* LiteralDate */ .chroma .ld { color: #e6db74 }
|
25
|
+
/* LiteralString */ .chroma .s { color: #e6db74 }
|
26
|
+
/* LiteralStringAffix */ .chroma .sa { color: #e6db74 }
|
27
|
+
/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 }
|
28
|
+
/* LiteralStringChar */ .chroma .sc { color: #e6db74 }
|
29
|
+
/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 }
|
30
|
+
/* LiteralStringDoc */ .chroma .sd { color: #e6db74 }
|
31
|
+
/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 }
|
32
|
+
/* LiteralStringEscape */ .chroma .se { color: #ae81ff }
|
33
|
+
/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 }
|
34
|
+
/* LiteralStringInterpol */ .chroma .si { color: #e6db74 }
|
35
|
+
/* LiteralStringOther */ .chroma .sx { color: #e6db74 }
|
36
|
+
/* LiteralStringRegex */ .chroma .sr { color: #e6db74 }
|
37
|
+
/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 }
|
38
|
+
/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 }
|
39
|
+
/* LiteralNumber */ .chroma .m { color: #ae81ff }
|
40
|
+
/* LiteralNumberBin */ .chroma .mb { color: #ae81ff }
|
41
|
+
/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff }
|
42
|
+
/* LiteralNumberHex */ .chroma .mh { color: #ae81ff }
|
43
|
+
/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff }
|
44
|
+
/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff }
|
45
|
+
/* LiteralNumberOct */ .chroma .mo { color: #ae81ff }
|
46
|
+
/* Operator */ .chroma .o { color: #f92672 }
|
47
|
+
/* OperatorWord */ .chroma .ow { color: #f92672 }
|
48
|
+
/* Comment */ .chroma .c { color: #75715e }
|
49
|
+
/* CommentHashbang */ .chroma .ch { color: #75715e }
|
50
|
+
/* CommentMultiline */ .chroma .cm { color: #75715e }
|
51
|
+
/* CommentSingle */ .chroma .c1 { color: #75715e }
|
52
|
+
/* CommentSpecial */ .chroma .cs { color: #75715e }
|
53
|
+
/* CommentPreproc */ .chroma .cp { color: #75715e }
|
54
|
+
/* CommentPreprocFile */ .chroma .cpf { color: #75715e }
|
55
|
+
/* GenericDeleted */ .chroma .gd { color: #f92672 }
|
56
|
+
/* GenericEmph */ .chroma .ge { font-style: italic }
|
57
|
+
/* GenericInserted */ .chroma .gi { color: #a6e22e }
|
58
|
+
/* GenericStrong */ .chroma .gs { font-weight: bold }
|
59
|
+
/* GenericSubheading */ .chroma .gu { color: #75715e }
|
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{{ partial "head" . }}
|
2
|
+
|
3
|
+
{{ partial "header" . }}
|
4
|
+
|
5
|
+
<div class="l-2col" id="hamburger">
|
6
|
+
<aside>
|
7
|
+
{{ partial "sidebar" . }}
|
8
|
+
</aside>
|
9
|
+
|
10
|
+
<main>
|
11
|
+
<button class="hamburger" data-onof="open" data-onof-target="#hamburger">
|
12
|
+
<i class="icon-hamburger"></i>
|
13
|
+
</button>
|
14
|
+
|
15
|
+
{{ if eq .IsHome false }}
|
16
|
+
{{/* partial "parts/breadcrumbs" . */}}
|
17
|
+
{{ end }}
|
18
|
+
|
19
|
+
<div class="content">
|
20
|
+
{{ block "main" . }}
|
21
|
+
{{ end }}
|
22
|
+
</div>
|
23
|
+
</main>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
{{ partial "footer" . }}
|
27
|
+
{{ partial "foot" . }}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{{ define "main" }}
|
2
|
+
|
3
|
+
<section class="entries">
|
4
|
+
{{ range sort .Paginator.Pages }}
|
5
|
+
<article class="entries__item">
|
6
|
+
<h1><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }} <small>::Draft</small> {{ end }}</h1>
|
7
|
+
{{/* partial "parts/info" . */}}
|
8
|
+
|
9
|
+
<div class="entries__item-content">
|
10
|
+
{{/* .Summary | plainify | safeHTML */}}
|
11
|
+
|
12
|
+
{{/* if .Truncated }}
|
13
|
+
<a href="{{ .Permalink }}" class="more">Read more</a>
|
14
|
+
{{ end */}}
|
15
|
+
</div>
|
16
|
+
</article>
|
17
|
+
{{ end }}
|
18
|
+
</section>
|
19
|
+
|
20
|
+
{{ partial "parts/pagenator" . }}
|
21
|
+
|
22
|
+
{{ end }}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
2
|
+
<channel>
|
3
|
+
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
4
|
+
<link>{{ .Permalink }}</link>
|
5
|
+
<description>{{ if ne .Title .Site.Title }}{{ with .Title }} {{.}} {{ end }} | {{ end }}{{ .Site.Title }}</description>
|
6
|
+
{{ with .Site.LanguageCode }}
|
7
|
+
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
8
|
+
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
9
|
+
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
10
|
+
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
11
|
+
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
12
|
+
{{ with .OutputFormats.Get "RSS" }}
|
13
|
+
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
14
|
+
{{ end }}
|
15
|
+
{{ range .Data.Pages }}
|
16
|
+
<item>
|
17
|
+
<title>{{ .Title }}</title>
|
18
|
+
<link>{{ .Permalink }}</link>
|
19
|
+
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
20
|
+
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
21
|
+
<guid>{{ .Permalink }}</guid>
|
22
|
+
<description>{{ .Summary | html }}</description>
|
23
|
+
</item>
|
24
|
+
{{ end }}
|
25
|
+
</channel>
|
26
|
+
</rss>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{{ define "main" }}
|
2
|
+
|
3
|
+
<div class="entry {{ .Params.class }}">
|
4
|
+
<h1 class="mt-0">{{ .Title }}</h1>
|
5
|
+
{{/* partial "parts/info" . */}}
|
6
|
+
|
7
|
+
<div class="entry__content">
|
8
|
+
{{ .Content }}
|
9
|
+
</div>
|
10
|
+
|
11
|
+
{{/* partial "widgets/related" . */}}
|
12
|
+
</div>
|
13
|
+
|
14
|
+
{{ end }}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{{/*
|
2
|
+
|
3
|
+
howto:
|
4
|
+
|
5
|
+
```/content/search.adoc
|
6
|
+
---
|
7
|
+
date: "2018-01-01"
|
8
|
+
type: "json"
|
9
|
+
url: "search.json"
|
10
|
+
---
|
11
|
+
```
|
12
|
+
*/}}
|
13
|
+
|
14
|
+
[
|
15
|
+
{{ range $index, $page := .Site.Pages }}
|
16
|
+
{{ if $index }},{{ end }}
|
17
|
+
{
|
18
|
+
"id": "{{ $index }}",
|
19
|
+
"url": "{{ $page.Permalink }}",
|
20
|
+
"title": "{{ $page.Title }}",
|
21
|
+
"section": "{{ .Section }}",
|
22
|
+
"tags": ["{{ if $page.Params.tags }}{{ delimit $page.Params.tags "\",\"" }}{{ else }}{{ end }}"],
|
23
|
+
"content": "{{ lower (replace (replace (replace $page.Plain "\t" "") "\n" "") "\\" "") }}",
|
24
|
+
"date": "{{ .Date.Format "Jan 2, 2006" }}",
|
25
|
+
"summary": "{{ replace (replace (replace .Summary "\n" "") "\n" "") "\\" "" }}"
|
26
|
+
}
|
27
|
+
{{ end }}
|
28
|
+
]
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{{ if .Site.Params.fbAppId }}
|
2
|
+
<div id="fb-root"></div>
|
3
|
+
<script>(function(d, s, id) {
|
4
|
+
var js, fjs = d.getElementsByTagName(s)[0];
|
5
|
+
if (d.getElementById(id)) return;
|
6
|
+
js = d.createElement(s); js.id = id;
|
7
|
+
js.src = "//connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v2.9&appId={{ .Site.Params.fbAppId }}";
|
8
|
+
fjs.parentNode.insertBefore(js, fjs);
|
9
|
+
}(document, 'script', 'facebook-jssdk'));</script>
|
10
|
+
{{ end }}
|
11
|
+
|
12
|
+
{{ if .Site.Params.GoogleAnalyticsId }}
|
13
|
+
<script>
|
14
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
15
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
16
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
17
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
18
|
+
ga('create', '{{ .Site.Params.GoogleAnalyticsId }}', 'auto');
|
19
|
+
ga('send', 'pageview');
|
20
|
+
</script>
|
21
|
+
{{ end }}
|
22
|
+
|
23
|
+
<script src="{{ .Site.BaseURL }}javascripts/scripts.js"></script>
|
24
|
+
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="ja">
|
3
|
+
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
+
|
7
|
+
{{ if eq .IsHome false }}
|
8
|
+
<title>{{ .Title }} | {{ .Site.Title }}</title>
|
9
|
+
{{ else }}
|
10
|
+
<title>{{ .Site.Title }}</title>
|
11
|
+
{{ end }}
|
12
|
+
<meta name="description" content="{{ .Site.Params.Description }}" />
|
13
|
+
<meta name="keywords" content="{{ .Site.Params.Keywords }}" />
|
14
|
+
|
15
|
+
{{ if eq .IsHome false }}
|
16
|
+
<meta property="og:title" content="{{ .Title }} | {{ .Site.Title }}" />
|
17
|
+
{{ else }}
|
18
|
+
<meta property="og:title" content="{{ .Site.Title }}" />
|
19
|
+
{{ end }}
|
20
|
+
|
21
|
+
{{ if eq .IsHome false }}
|
22
|
+
<meta property="og:type" content="article" />
|
23
|
+
{{ else }}
|
24
|
+
<meta property="og:type" content="website" />
|
25
|
+
{{ end }}
|
26
|
+
<meta property="og:url" content="{{ .Permalink }}" />
|
27
|
+
|
28
|
+
{{ if ne .Params.ogp nil }}
|
29
|
+
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Params.ogp }}" />
|
30
|
+
{{ else }}
|
31
|
+
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Site.Params.ImageOgp }}" />
|
32
|
+
{{ end }}
|
33
|
+
|
34
|
+
{{ if .RSSLink }}
|
35
|
+
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
36
|
+
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
37
|
+
{{ end }}
|
38
|
+
|
39
|
+
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
40
|
+
<meta property="og:description" content="{{ .Site.Params.Description }}" />
|
41
|
+
<meta property="fb:app_id" content="{{ .Site.Params.fbAppId }}" />
|
42
|
+
|
43
|
+
<!-- referrer -->
|
44
|
+
<meta name="referrer" content="no-referrer">
|
45
|
+
|
46
|
+
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.Params.ImageFavicon }}">
|
47
|
+
<link rel="apple-touch-icon" href="{{ .Site.Params.ImageAppleTouchIcon }}">
|
48
|
+
|
49
|
+
<link rel="stylesheet" href="{{ .Site.BaseURL }}stylesheets/styles.css">
|
50
|
+
|
51
|
+
</head>
|
52
|
+
<body>
|