Skip to content

Commit 5ab7dc0

Browse files
committed
Merge pull request sergiokopplin#18 from sergiokopplin/rscss
adding rscss methodology
2 parents c3583c5 + bd6210a commit 5ab7dc0

32 files changed

+1010
-1076
lines changed

_config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
name: John Doe
22
bio: 'A Man who travels the world eating noodles'
3+
4+
# main text of home
35
picture: 'assets/images/profile.jpg'
46

57
url: http://sergiokopplin.github.io/indigo
68
# your url: http://USERNAME.github.io
9+
# if testing locally: http://localhost:3000
10+
711
permalink: /:title/
812

913
markdown: kramdown
1014
highlighter: rouge
1115

12-
analytics: 'UA-MYANALYTICS'
16+
analytics-google: 'UA-MYANALYTICS'
1317
disqus: mydisqus
18+
19+
# if you don't have any of social below, set to false then
1420
facebook: myfacebook
1521
twitter: mytwitter
1622
instagram: myinstagram

_includes/analytics-google.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Google Analytics Tracking code -->
2+
<script type="text/javascript">
3+
var _gaq = _gaq || [];
4+
_gaq.push(['_setAccount', '{{ site.analytics-google }}']);
5+
_gaq.push(['_trackPageview']);
6+
(function() {
7+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
8+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
9+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
10+
})();
11+
</script>

_includes/author.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<section class="author">
2+
<div class="toleft">
3+
<img class="selfie" src="{{ site.url }}/{{ site.picture }}" alt="{{ site.name }}">
4+
</div>
5+
6+
<div class="toright">
7+
<h4 class="name">{{ site.name }}</h4>
8+
<p class="bio">{{ site.bio }}</p>
9+
10+
<div class="share">
11+
<a class="twitter" href="https://twitter.com/intent/tweet?text={{ site.url }}{{ page.url }} - {{ page.title }} by @{{ site.github }}">
12+
<svg class="icon icon-twitter"><use xlink:href="#icon-twitter"></use></svg><span class="icon-twitter">Tweet</span>
13+
</a>
14+
15+
<a class="facebook" href="javascript:void(0)" onclick="window.open('https://facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=626,height=436'); return false;">
16+
<svg class="icon icon-facebook"><use xlink:href="#icon-facebook"></use></svg><span class="icon-facebook-rect">Share</span>
17+
</a>
18+
</div>
19+
</div>
20+
</section>

_includes/blog-post.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% if post.blog == true %}
2-
<div class="home__sections-single {% if post.star == true %}star{% endif %}">
3-
<a href="{{ site.url }}{{ post.url }}">
4-
<aside><time datetime="{{ post.date | date:"%d-%m-%Y" }}">{{ post.date | date: "%b %d %Y" }}</time></aside>
5-
<h3>{{ post.title }}</h3>
2+
<div class="item {% if post.star == true %}star{% endif %}">
3+
<a class="url" href="{{ site.url }}{{ post.url }}">
4+
<aside class="date"><time datetime="{{ post.date | date:"%d-%m-%Y" }}">{{ post.date | date: "%b %d %Y" }}</time></aside>
5+
<h3 class="title">{{ post.title }}</h3>
66
</a>
77
</div>
88
{% endif %}

_includes/disqus.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<section class="disqus">
2+
<div id="disqus_thread"></div>
3+
<script type="text/javascript">
4+
5+
var disqus_shortname = '{{ site.disqus }}';
6+
var disqus_developer = 0;
7+
(function() {
8+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
9+
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
10+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
11+
})();
12+
</script>
13+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
14+
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
15+
</section>

_includes/footer.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
<footer>
2-
{{ site.name }} © {{ site.time | date: '%Y' }} <a href="{{ site.url }}/feed.xml" target="_blank"><svg class="icon icon-rss"><use xlink:href="#icon-rss"></use></svg></a>
3-
<p><a href="http://koppl.in/indigo">Indigo theme</a> by <a href="http://koppl.in">koppl.in</a></p>
1+
<footer class="footer-main">
2+
{{ site.name }} © {{ site.time | date: '%Y' }} <a class="link" href="{{ site.url }}/feed.xml" target="_blank"><svg class="icon icon-rss"><use xlink:href="#icon-rss"></use></svg></a>
3+
4+
<p class="extra">
5+
<a class="link" href="http://koppl.in/indigo">Indigo theme</a> by <a class="link" href="http://koppl.in">koppl.in</a>
6+
</p>
47
</footer>

_includes/header.html

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
{% if page.title == "Home" or page.title == "Blog" or page.title == "Projects" %}{% assign x = true %}{% endif %}
1+
{% if page.title == "Home" or page.title == "Blog" or page.title == "Projects" %}{% assign showHeader = true %}{% endif %}
22

3-
{% if x == true %}
4-
<header class="home__header">
5-
<img alt="{{ site.name }}" src="{{ site.url }}/{{ site.picture }}" />
3+
{% if showHeader == true %}
4+
<header class="header-home">
5+
<img class="selfie" alt="{{ site.name }}" src="{{ site.url }}/{{ site.picture }}" />
66

7-
<h1>{{ site.name }}</h1>
8-
<h2>{{ site.bio }}</h2>
7+
<h1 class="title">{{ site.name }}</h1>
8+
<h2 class="description">{{ site.bio }}</h2>
99

10-
<div class="home__header-social">
11-
<a href="http://facebook.com/{{ site.facebook }}" target="_blank"><svg class="icon icon-facebook"><use xlink:href="#icon-facebook"></use></svg></a>
12-
<a href="http://twitter.com/{{ site.twitter }}" target="_blank"><svg class="icon icon-twitter"><use xlink:href="#icon-twitter"></use></svg></a>
13-
<a href="https://github.com/{{ site.github }}" target="_blank"><svg class="icon icon-github"><use xlink:href="#icon-github"></use></svg></a>
14-
<a href="http://instagram.com/{{ site.instagram }}" target="_blank"><svg class="icon icon-instagram"><use xlink:href="#icon-instagram"></use></svg></a>
15-
<a href="http://linkedin.com/{{ site.linkedin }}" target="_blank"><svg class="icon icon-linkedin"><use xlink:href="#icon-linkedin"></use></svg></a>
16-
<a href="http://youtube.com/{{ site.youtube }}" target="_blank"><svg class="icon icon-youtube"><use xlink:href="#icon-youtube"></use></svg></a>
17-
<a href="mailto:{{ site.email }}" target="_blank"><svg class="icon icon-mail"><use xlink:href="#icon-mail"></use></svg></a>
18-
</div>
10+
{% include social-links.html %}
1911
</header>
2012
{% endif %}
2113

0 commit comments

Comments
 (0)