Skip to content

Commit

Permalink
remove useless config, fix code/pre relevant css
Browse files Browse the repository at this point in the history
  • Loading branch information
Renyuan Z committed Aug 3, 2016
1 parent 455b73d commit fc1b4eb
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_site
.sass-cache
_config.yml
_drafts
.ruby-version
29 changes: 15 additions & 14 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
####################################
#
title: Leonids
email: [email protected]
email:
description: A simple and awesome blog theme powered by jekyll.
url: http://renyuanz.github.io/leonids # the base hostname & protocol for your site
url: # the base hostname & protocol for your site


#
###################################
# Jekyll configuration
####################################
#
markdown: kramdown
highlighter: rouge
excerpt_separator: <!--more-->
timezone: Europe/Paris
timezone: Europe/Paris
markdown: kramdown
highlighter: rouge
excerpt_separator: <!--more-->
permalink: /articles/:year-:month/:title

kramdown:
auto_ids: true
Expand All @@ -34,22 +35,22 @@ kramdown:
owner:
name: Leonids
avatar: leonids-logo.png
job: "PHP & Ruby Developer"
bio: "A backend developer who loves design awesome things. Working for RendezvousCheznous atm in Marseille, France."
email: [email protected]
disqus-shortname: renyuanzblog
twitter: renyuan814 #username
job: "A jekyll theme"
bio: "A simple and awesome blog theme powered by jekyll."
email:
disqus-shortname:
twitter: #username
facebook: #username
google:
plus: #username
analytics: UA-62251910-2
analytics:
verify:
ad-client:
ad-slot:
bing-verify:
github: renyuanz #username
github: #username
stackoverflow: #123456/username from a "http://stackoverflow.com/users/123456/username" link
linkedin: renyuan-zou-69b7038a #username
linkedin: #username
xing: #username
instagram: #username
lastfm: #username
Expand Down
18 changes: 17 additions & 1 deletion _includes/social-links.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
<script type="text/javascript">
// based on http://stackoverflow.com/a/10300743/280842
function gen_mail_to_link(hs, subject) {
var lhs,rhs;
var p = hs.split('@');
lhs = p[0];
rhs = p[1];
document.write("<a class=\"social-link-item\" target=\"_blank\" href=\"mailto");
document.write(":" + lhs + "@");
document.write(rhs + "?subject=" + subject + "\"><i class=\"fa fa-fw fa-envelope\"></i><\/a>");
}
</script>
<div class="social-links">
<ul>
{% if author.email %}<li><a href="mailto:{{ author.email }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-envelope"></i></a></li>{% endif %}
{% if author.email %}
<li>
<script>gen_mail_to_link('{{ author.email }}', 'Hello from website');</script>
</li>
{% endif %}
{% if author.twitter %}<li><a href="http://twitter.com/{{ author.twitter }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-twitter"></i></a></li>{% endif %}
{% if author.facebook %}<li><a href="http://facebook.com/{{ author.facebook }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-facebook"></i></a></li>{% endif %}
{% if author.google.plus %}<li><a href="http://plus.google.com/+{{ author.google.plus }}" class="social-link-item" target="_blank"><i class="fa fa-fw fa-google-plus"></i> Google+</a></li>{% endif %}
Expand Down
8 changes: 3 additions & 5 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
layout: default
---

<div class="back-home">
<a href="{{ site.url }}/">
< Home
</a>
</div>
<a class="btn" href= "{{ site.url }}/" >
Home
</a>
{% if page.image.feature %}
<div class="post-image-feature">
<img class="feature-image" src=
Expand Down
23 changes: 20 additions & 3 deletions _sass/components/_syntax-highlighting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ pre, code {
color: #525252;
font-size: 0.9em;
background-color: #f8f8f8;
font-size: ($font-size-base - 2);
font-size: ($font-size-base - 3);
}
code {
color: #e96900;
padding: 3px 5px;
margin: 0 2px;
border-radius: 2px;
white-space: nowrap;
}


pre { // only apply for code blocks
overflow: auto;
display: block;
Expand All @@ -40,8 +40,25 @@ pre code {
}
.highlight {
margin: 0;
pre {
position: relative;
}
pre code {
color: #525252;
&::before {
content: attr(data-lang);
position: absolute;
top: 0;
right: 0;
color: #ccc;
text-align: right;
text-transform: uppercase;
font-size: 0.85em;
padding: 5px 10px 0;
line-height: 20px;
height: 20px;
font-weight: 600;
}
}
.hll { background-color: #ffffcc }
.c { color: #B0B2B0; font-style: italic } /* Comment */
Expand Down
4 changes: 2 additions & 2 deletions _sass/components/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

// Google font import
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:600,400,400italic|Ubuntu+Mono);
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:600,400,400italic|Roboto+Mono);

// Custom variables

Expand All @@ -23,7 +23,7 @@ $border-width: .0625rem !default;

$font-family-sans-serif: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
$font-family-serif: Georgia, "Times New Roman", Times, serif !default;
$font-family-monospace: "Ubuntu Mono", "Courier New", monospace !default;
$font-family-monospace: "Roboto Mono", "Courier New", monospace !default;
$font-family-base: $font-family-sans-serif !default;

// Pixel value used to responsively scale all typography. Applied to the `<html>` element.
Expand Down

0 comments on commit fc1b4eb

Please sign in to comment.