Skip to content

Commit

Permalink
Add navigation back to the home page
Browse files Browse the repository at this point in the history
This is a rough change, and should be done properly by a UX person
at some point.
  • Loading branch information
mrmanc committed Sep 10, 2018
1 parent dcfeae0 commit 5a08f22
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ facebook:
username: autotraderlife

include_repo_ribbon: false
include_comments: false
include_comments: true
disqus_subdomain: http-engineering-autotrader-co-uk


# start jekyll-seo-tag configuration
Expand Down
4 changes: 2 additions & 2 deletions _includes/social_share.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<span class="social-share">
<div class="social-share">
Share:
<a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.github.url }}{{ page.url }}&via={{ site.twitter.username }}&related={{ site.twitter.username }}" rel="nofollow" target="_blank" title="Share on Twitter">
{% include icons/twitter.html %}
</a>
<a href="https://facebook.com/sharer.php?u={{ site.github.url }}{{ page.url }}" rel="nofollow" target="_blank" title="Share on Facebook">
{% include icons/facebook.html %}
</a>
</span>
</div>
2 changes: 2 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<div class="post">

<header class="post-header">
<div style="float:right;"><a href="/">< Back to home</a></div>
<h1 class="post-title">{{ page.title }}</h1>
<div>
<span class="post-meta">
Expand All @@ -16,6 +17,7 @@ <h1 class="post-title">{{ page.title }}</h1>
<article class="post-content">
{{ content }}
{% include social_share.html %}
<span class=""></span><p>Enjoyed that? <a href="/">Read some other posts</a>.</p>
{% include comments.html %}
</article>

Expand Down
1 change: 1 addition & 0 deletions _posts/2018-07-02-sample-blog-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: post
title: Sample Post
author: Sample Author
comments: true
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer pharetra tellus vitae faucibus fringilla. Maecenas vel rutrum turpis. Maecenas aliquet erat et pharetra consequat. Etiam tempus mollis tellus. Pellentesque id metus in orci vulputate placerat. Aliquam eros nisi, interdum nec eleifend non, rutrum vehicula elit. Aliquam viverra lectus vitae nunc pharetra, eget euismod eros sodales. Morbi convallis tempus nibh, ut ultrices massa placerat sed. Cras tempus sapien et urna faucibus, at dictum nisl sodales. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed interdum tellus arcu, et hendrerit neque aliquam in. Vivamus molestie, arcu in pharetra malesuada, lorem lorem tempor eros, sit amet vulputate magna enim tristique velit. Proin laoreet metus ante, vitae posuere nulla pharetra et. In dictum felis vitae metus imperdiet malesuada. Pellentesque suscipit leo turpis, in iaculis lacus ultricies quis.

Expand Down
1 change: 1 addition & 0 deletions _sass/_social_share.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
a {
margin: 0 0 0 $spacing-unit;
}
margin-bottom: 16px;
}

.comments {
Expand Down

0 comments on commit 5a08f22

Please sign in to comment.