yefeme 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83cdd9e5d2aad8a79eb7c8ae9ba26f89b6235e66
4
- data.tar.gz: 053bf0fa4943c01c78a68790b31d5b86dc047e92
3
+ metadata.gz: 6e4bdad05fe117b91473807364d62a1380f5f283
4
+ data.tar.gz: b54ceb7fed6cd59b6d5bd1f64772efc4400a8def
5
5
  SHA512:
6
- metadata.gz: b7d7fba28e75e4dd9a1080a837cd20a156f29b524545fb793703ac7977a159a8a33864141e786e5a786cfe4a97c8b2f0648e0e9ddce7a6501e0d19a6b1e4485d
7
- data.tar.gz: 04f8b987a4e372539446421ee09db8fde50af9d082176f9384833c86e739445ecd0f77cb4e1d6200bc11312145b6b7c4589d44744ce722cac4de62841f562dc3
6
+ metadata.gz: 703a6df347841ec7b688341948f24b3d5e6835831230c20dd6b4e35da94f0f8d83c23e4b3b8087da4813b5d672690afe49734d14ce3783efb806f243d9ff800a
7
+ data.tar.gz: 801ab0fe744055854dbee4fefab91e6059d70bb3862d3ef9f810e739fb7cc8a71b9ac4f08d3f20a3816124aead2658940a3478b1be802acda3d67b919e6556fc
@@ -1,2 +1,12 @@
1
1
  <footer>
2
+ <div class="content">
3
+ <div class="links">
4
+ {% if site.twitter_username %}
5
+ <a href="https://twitter.com/{{ site.twitter_username }}">twitter</a>
6
+ {% endif %}
7
+ {% if site.github_username %}
8
+ <a href="https://github.com/{{ site.github_username }}">github</a>
9
+ {% endif %}
10
+ </div>
11
+ </div>
2
12
  </footer>
@@ -1,2 +1,5 @@
1
1
  <header>
2
+ <nav class="content">
3
+ <h2><a href="{{ "/" | relative_url}}">{{ site.title | escape }}</a></h2>
4
+ </nav>
2
5
  </header>
@@ -2,10 +2,14 @@
2
2
  <html lang={{ page.lang | default: site.lang | default: "en" }}">
3
3
  {% include head.html %}
4
4
  <body>
5
- {% include header.html %}
6
5
  <div class="wrapper">
7
- {{ content }}
6
+ {% include header.html %}
7
+ <main>
8
+ <div class="content">
9
+ {{ content }}
10
+ </div>
11
+ </main>
12
+ {% include footer.html %}
8
13
  </div>
9
- {% include footer.html %}
10
14
  </body>
11
15
  </html>
data/_layouts/home.html CHANGED
@@ -2,14 +2,12 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <div>
6
- <h1>Posts</h1>
7
- <ul>
8
- {% for post in site.posts %}
9
- <li>
10
- <h2><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
11
- <span>{{ post.date | date: "%b %-d, %Y" }}</span>
12
- </li>
13
- {% endfor %}
14
- </ul>
15
- </div>
5
+ <h1>Musings</h1>
6
+ <ul class="post-list">
7
+ {% for post in site.posts %}
8
+ <li>
9
+ <h2><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
10
+ <span>{{ post.date | date: "%B %-d, %Y" }}</span>
11
+ </li>
12
+ {% endfor %}
13
+ </ul>
data/_layouts/post.html CHANGED
@@ -2,4 +2,12 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {{ content }}
5
+ <article>
6
+ <div class="post-header">
7
+ <h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
8
+ <p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%B %-d, %Y" }}</time></p>
9
+ </div>
10
+ <div class="post-content" itemprop="articleBody">
11
+ {{ content }}
12
+ </div>
13
+ </article>
data/_sass/yefeme.scss CHANGED
@@ -1,11 +1,18 @@
1
1
  $base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
2
2
  $base-font-size: 16px !default;
3
3
  $base-font-weight: 400 !default;
4
- $small-font-size: $base-font-size * 0.875 !default;
4
+ $small-font-size: $base-font-size * .875 !default;
5
5
  $base-line-height: 1.5 !default;
6
6
 
7
- $text-color: #111 !default;
8
- $background-color: #fff !default;
7
+ $width: 1100px;
8
+ $spacing: 30px;
9
+
10
+ $white: #fff !default;
11
+ $gray: #47525d !default;
12
+ $dark-gray: #929faa !default;
13
+ $light-gray: #dbe4eb !default;
14
+ $lighter-gray: #f2f9ff !default;
15
+ $blue: #2d95f3;
9
16
 
10
17
  html {
11
18
  box-sizing: border-box;
@@ -19,23 +26,22 @@ html {
19
26
 
20
27
  body,
21
28
  html {
29
+ height: 100%;
22
30
  margin: 0;
23
31
  padding: 0;
24
32
  }
25
33
 
26
34
  body {
35
+ background-color: $white;
36
+ color: $gray;
27
37
  font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
28
- color: $text-color;
29
- background-color: $background-color;
30
- -webkit-text-size-adjust: 100%;
31
- -webkit-font-feature-settings: "kern" 1;
32
- -moz-font-feature-settings: "kern" 1;
33
- -o-font-feature-settings: "kern" 1;
34
- font-feature-settings: "kern" 1;
38
+ font-feature-settings: "kern" 1;
35
39
  font-kerning: normal;
36
40
  }
37
41
 
38
42
  h1 {
43
+ font-size: 28px;
44
+ line-height: 36px;
39
45
  margin: 0;
40
46
  }
41
47
 
@@ -46,10 +52,88 @@ ul {
46
52
  }
47
53
 
48
54
  h2 {
55
+ font-size: 22px;
56
+ line-height: 30px;
49
57
  margin: 0;
50
58
  }
51
59
 
60
+ a,
61
+ a:hover,
62
+ a:active,
63
+ a:focus,
64
+ a:visited {
65
+ color: $blue;
66
+ text-decoration: none;
67
+ }
68
+
69
+ a:hover {
70
+ border-bottom: 1px solid $blue;
71
+ }
72
+
52
73
  .wrapper {
74
+ display: flex;
75
+ flex-direction: column;
76
+ min-height: 100%;
77
+ }
78
+
79
+ .content {
53
80
  margin: 0 auto;
54
- max-width: 1100px;
81
+ max-width: $width;
82
+ padding: 0 $spacing;
83
+ }
84
+
85
+ main {
86
+ flex-grow: 1;
87
+ }
88
+
89
+ header {
90
+ border-bottom: 1px solid $light-gray;
91
+ border-top: 5px solid $light-gray;
92
+ margin: 0 0 20px;
93
+ padding: 20px 0;
94
+
95
+ a,
96
+ a:hover,
97
+ a:focus,
98
+ a:visited {
99
+ color: $gray;
100
+ }
101
+
102
+ a:hover {
103
+ border-bottom: 1px solid $gray;
104
+ }
105
+ }
106
+
107
+ footer {
108
+ border-top: 1px solid $light-gray;
109
+ margin: 20px 0 0;
110
+ padding: 20px 0;
111
+ }
112
+
113
+ .post-list {
114
+ li {
115
+ margin: 0 0 12px;
116
+ }
117
+
118
+ li:last-child {
119
+ margin: 0;
120
+ }
121
+ }
122
+
123
+ .post-header {
124
+ margin: 0 0 20px;
125
+
126
+ .post-meta {
127
+ margin: 0;
128
+ }
129
+ }
130
+
131
+ .post-content {
132
+ p {
133
+ margin: 0 0 12px;
134
+ }
135
+
136
+ p:last-child {
137
+ margin: 0;
138
+ }
55
139
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yefeme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yefim Vedernikoff