Skip to content

Commit 7c2781d

Browse files
Rafael MachadoMateusz Matoszko
authored andcommitted
add <!--more--> tag to posts
add social buttons on front page
1 parent 058a0f3 commit 7c2781d

35 files changed

+58
-37
lines changed

.themes/nshint/sass/custom/_styles.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ body {
2828
background: #FFFFFF;
2929
}
3030

31+
.social {
32+
padding-top: 30px;
33+
img {
34+
padding-right: 20px;
35+
}
36+
}
37+
3138
> header {
3239
background: #ffffff;
3340
padding-top: 3em;
@@ -200,8 +207,6 @@ article {
200207

201208
.blog-index {
202209
article {
203-
padding-top: 4em;
204-
205210
header {
206211
padding-top: 2em;
207212
padding-left: 0;

.themes/nshint/sass/partials/_blog.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ article {
33
a { @extend .force-wrap; }
44
header {
55
position: relative;
6-
padding-top: 2em;
76
margin-bottom: 1em;
87
h1 {
98
margin: 0;

.themes/nshint/sass/partials/_navigation.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ body > nav {
4040
ul {
4141
@include horizontal-list(0);
4242
display: inline-block;
43-
padding-top: .15em;
4443
}
4544
ul.subscription {
4645
margin-left: .8em;

.themes/nshint/source/_includes/article.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% el
2828
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
2929
{% if excerpted == 'true' %}
3030
<footer>
31-
<a rel="full-article" href="{{ root_url }}{{ post.url }}">{{ site.excerpt_link }}</a>
31+
<a rel="full-article" href="{{ root_url }}{{ post.url }}">{{ site.excerpt_link }}</a>
3232
</footer>
3333
{% endif %}
3434
{% else %}
3535
<div class="entry-content">{{ content }}</div>
36-
{% endif %}
36+
{% endif %}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{% if site.title %}
2-
<!-- <div class="header-title"><a href="{{ root_url }}/">{{ site.title }}</a></div> -->
32
<a href="{{ root_url }}/"><img src="{{ root_url }}/images/nshint_logo.png" /></a>
3+
<br/>
4+
<div class="social">
5+
<a href="{{ site.social.twitter }}"><img src="{{ root_url }}/images/twitter.png" /></a>
6+
<a href="{{ site.social.github }}"><img src="{{ root_url }}/images/github.png" /></a>
7+
<a href="{{ site.social.rss }}"><img src="{{ root_url }}/images/rss.png" /></a>
8+
</div>
49
{% endif %}

_config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ highlighter: pygments # default python pygments have been replaced by pygments.r
4444
paginate: 10 # Posts per page on the blog index
4545
paginate_path: "posts/:num" # Directory base for pagination URLs eg. /posts/2/
4646
recent_posts: 5 # Posts in the sidebar Recent Posts section
47-
excerpt_link: "Read on &rarr;" # "Continue reading" link text at the bottom of excerpted articles
47+
excerpt_link: "Read on" # "Continue reading" link text at the bottom of excerpted articles
4848
excerpt_separator: "<!--more-->"
4949

5050
titlecase: true # Converts page and post titles to titlecase
@@ -100,6 +100,11 @@ google_analytics_tracking_id: UA-66445219-1
100100
# Facebook Like
101101
facebook_like: false
102102

103+
social:
104+
twitter: https://twitter.com/nshintio
105+
github: https://github.com/nshintio/
106+
rss: http://nshint.io/atom.xml
107+
103108
author_ids: [matt, woj, rafa, marcin, kondrat]
104109
authors:
105110
matt:

sass/custom/_styles.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ body {
2828
background: #FFFFFF;
2929
}
3030

31+
.social {
32+
padding-top: 30px;
33+
img {
34+
padding-right: 20px;
35+
}
36+
}
37+
3138
> header {
3239
background: #ffffff;
3340
padding-top: 3em;
@@ -200,8 +207,6 @@ article {
200207

201208
.blog-index {
202209
article {
203-
padding-top: 4em;
204-
205210
header {
206211
padding-top: 2em;
207212
padding-left: 0;

sass/partials/_blog.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ article {
33
a { @extend .force-wrap; }
44
header {
55
position: relative;
6-
padding-top: 2em;
76
margin-bottom: 1em;
87
h1 {
98
margin: 0;

sass/partials/_navigation.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ body > nav {
4040
ul {
4141
@include horizontal-list(0);
4242
display: inline-block;
43-
padding-top: .15em;
4443
}
4544
ul.subscription {
4645
margin-left: .8em;

source/_includes/article.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% el
2828
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
2929
{% if excerpted == 'true' %}
3030
<footer>
31-
<a rel="full-article" href="{{ root_url }}{{ post.url }}">{{ site.excerpt_link }}</a>
31+
<a rel="full-article" href="{{ root_url }}{{ post.url }}">{{ site.excerpt_link }}</a>
3232
</footer>
3333
{% endif %}
3434
{% else %}
3535
<div class="entry-content">{{ content }}</div>
36-
{% endif %}
36+
{% endif %}

0 commit comments

Comments
 (0)