plainwhite 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/_includes/head.html +7 -0
- data/_layouts/default.html +11 -7
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9171c17dbea6ed3f69cb04e81671f55dc2aa5878
|
4
|
+
data.tar.gz: 6ef744907a13ec222df03c8c79ebf323c18c3e0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5130fe44dbe136f2ab36f20bd7f818abe57cb1feb582a39c114f04a318198e46c299a9955a79f5e3b1b2f1337196355d2642b4a3dfd4de55ee60989ad077c1a2
|
7
|
+
data.tar.gz: 1f53288ff9e54e853b3ce269bec5117100d0dcd452c4b7811b90960d43b135c4f5bc911617748fcd5abcb2cd3238a1e87acfef1172eae904d5f9190514e91631
|
data/README.md
CHANGED
@@ -43,12 +43,22 @@ plainwhite:
|
|
43
43
|
```
|
44
44
|
The placeholder portfolio image can be replaced by the desired image by placing it as `assets/portfolio.png` in your jekyll website.
|
45
45
|
|
46
|
+
**Google Analytics**
|
47
|
+
|
48
|
+
It can be enabled by specifying your analytics id under plainwhite in `_config.yml`
|
49
|
+
```yaml
|
50
|
+
plainwhite:
|
51
|
+
analytics_id: '< YOUR ID >'
|
52
|
+
```
|
53
|
+
|
46
54
|
**Excerpts**
|
55
|
+
|
47
56
|
Excerpts can be enabled by adding the following line to your `_config.yml`
|
48
57
|
```yaml
|
49
58
|
show_excerpts: true
|
50
59
|
```
|
51
60
|
**Layouts**
|
61
|
+
|
52
62
|
- Home
|
53
63
|
- Page
|
54
64
|
- Post
|
data/_includes/head.html
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<meta charset="UTF-8">
|
2
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
3
|
+
<meta name="description" content="{{ site.description }}">
|
4
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
5
|
+
<link href="https://fonts.googleapis.com/css?family=Merriweather:300|Raleway:400,700" rel="stylesheet">
|
6
|
+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
7
|
+
<title>{{ page.title | default: site.title }}</title>
|
data/_layouts/default.html
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html lang="en">
|
3
3
|
<head>
|
4
|
-
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<meta name="description" content="{{ site.description }}">
|
7
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
8
|
-
<link href="https://fonts.googleapis.com/css?family=Merriweather:300|Raleway:400,700" rel="stylesheet">
|
9
|
-
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
10
|
-
<title>{{ page.title | default: site.title }}</title>
|
4
|
+
{%- include head.html -%}
|
11
5
|
</head>
|
12
6
|
<body>
|
13
7
|
<main class="container">
|
@@ -26,5 +20,15 @@
|
|
26
20
|
{{ content }}
|
27
21
|
</section>
|
28
22
|
</main>
|
23
|
+
{%- if site.plainwhite.analytics_id -%}
|
24
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.plainwhite.analytics_id }}"></script>
|
25
|
+
<script>
|
26
|
+
window.dataLayer = window.dataLayer || [];
|
27
|
+
function gtag() { dataLayer.push(arguments); }
|
28
|
+
gtag('js', new Date());
|
29
|
+
|
30
|
+
gtag('config', '{{ site.plainwhite.analytics_id }}');
|
31
|
+
</script>
|
32
|
+
{%- endif -%}
|
29
33
|
</body>
|
30
34
|
</html>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plainwhite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samarjeet
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.16'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.16'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- LICENSE.txt
|
63
63
|
- README.md
|
64
|
+
- _includes/head.html
|
64
65
|
- _layouts/default.html
|
65
66
|
- _layouts/home.html
|
66
67
|
- _layouts/page.html
|
@@ -101,5 +102,5 @@ rubyforge_project:
|
|
101
102
|
rubygems_version: 2.5.2.3
|
102
103
|
signing_key:
|
103
104
|
specification_version: 4
|
104
|
-
summary:
|
105
|
+
summary: A portfolio style jekyll theme for writers
|
105
106
|
test_files: []
|