Skip to content

Commit d45e0a5

Browse files
author
Gianluca Arbezzano
committed
Blog section and share configuration page
1 parent 8acd8f4 commit d45e0a5

9 files changed

Lines changed: 275 additions & 94 deletions

File tree

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ description: >
77
baseurl: ""
88
url: "http://vim-php.com"
99
github_username: vim-php
10+
paginate: 5
1011
exclude:
1112
- "bower_components"
1213
- "bower.json"

_includes/head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
1515
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
1616

17+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
18+
1719
<script>
1820
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
1921
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

_includes/nav.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<nav class="nav-sidebar">
2+
<ul class="nav">
3+
<li><a href="/">Home</a></li>
4+
<li><a href="/blog.html">Blog</a></li>
5+
<li><a href="/dotfiles">Ours Dotfiles</a></li>
6+
<li class="nav-divider"></li>
7+
<li><a href="https://github.com/vim-php"><i class="fa fa-github"></i> GitHub</a></li>
8+
</ul>
9+
</nav>

_layouts/post.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: default
3+
---
4+
<div class="row">
5+
<div class="col-md-12 text-center">
6+
<h1>Vim-Php <small>{{ page.title }}</small></h1>
7+
</div>
8+
</div>
9+
10+
<hr>
11+
12+
<div class="row">
13+
14+
<div class="col-md-9">
15+
<div class="row">
16+
<div class="col-md-12">
17+
<p class="meta">{{ page.date | date_to_string }} - Tags: {{ page.tags }}</p>
18+
<hr>
19+
<div class="post">
20+
{{ content }}
21+
</div>
22+
</div>
23+
</div>
24+
<div class="row">
25+
<div class="col-md-12">
26+
<div id="disqus_thread"></div>
27+
<script type="text/javascript">
28+
/* * * CONFIGURATION VARIABLES * * */
29+
var disqus_shortname = 'vimphp';
30+
/* * * DON'T EDIT BELOW THIS LINE * * */
31+
(function() {
32+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
33+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
34+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
35+
})();
36+
</script>
37+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
38+
</div>
39+
</div>
40+
</div>
41+
42+
<div class="col-md-3">
43+
<nav class="nav-sidebar">
44+
<ul class="nav">
45+
<li><a href="/">Home</a></li>
46+
<li><a href="/blog.html">Blog</a></li>
47+
<li><a href="/dotfiles.html">Ours Dotfiles</a></li>
48+
<li class="nav-divider"></li>
49+
<li><a href="https://github.com/vim-php"><i class="fa fa-github"></i> GitHub</a></li>
50+
</ul>
51+
</nav>
52+
</div>
53+
</div>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: post
3+
title: "Simple flow to generate, update and load ctags"
4+
date: 2015-03-12 21:00:00
5+
tags: vim, php, ctags, gianarb
6+
category: trick
7+
author: GianArb
8+
author_link: https://gianarb.it
9+
summary: Simple flow to create, update and load ctags
10+
---
11+
Hi! I use this codeto generate (", tags") ctags file.
12+
{% highlight vim %}
13+
map <Leader>tags :!ctags -R --languages= .<LEFT><LEFT>
14+
{% endhighlight %}
15+
16+
After every saved if exists a tags file I update tags with last modified.
17+
{% highlight vim %}
18+
autocmd BufWritePost * if filereadable('tags') | exec ':silent ! ctags -a %' | endif
19+
{% endhighlight %}
20+
21+
If tags file exists I load it in my session of work
22+
{% highlight vim %}
23+
if filereadable("./tags")
24+
set tags+=./tags
25+
endif
26+
{% endhighlight %}

blog.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: default
3+
---
4+
<div class="row">
5+
<div class="col-md-12 text-center">
6+
<h1>Vim-Php <small>Share your tricks, feedback and experience</small></h1>
7+
</div>
8+
</div>
9+
10+
<hr>
11+
12+
<div class="row">
13+
<div class="col-md-3">
14+
<h3>Follow <a href="https://twitter.com/search?f=realtime&q=vimForPHP&src=typd" target="_blank">#vimForPHP</a></h3>
15+
<a class="twitter-timeline" href="https://twitter.com/hashtag/vimForPHP" data-widget-id="573627528457379842">#vimForPHP Tweets</a>
16+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
17+
</div>
18+
19+
<div class="col-md-6">
20+
<div class="row">
21+
<h3>Posts</h3>
22+
</div>
23+
<div class="row">
24+
<div class="col-md-12">
25+
{% for post in site.posts %}
26+
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a> by <a target="_blank" href="{{ post.author_link }}">[{{ post.author }}]</a></li>
27+
{% endfor %}
28+
</div>
29+
</div>
30+
31+
</div>
32+
33+
<div class="col-md-3">
34+
{% include nav.html %}
35+
</div>
36+
</div>

css/main.css

Lines changed: 97 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,46 +20,103 @@ h1,h2,h3,h4,h5,h6 {
2020
display: block;
2121
}
2222

23-
/* PROJECT BOX */
24-
.box {
25-
border-radius: 3px;
26-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
27-
padding: 10px 25px;
28-
text-align: right;
29-
display: block;
30-
margin-top: 60px;
31-
}
32-
.box-icon {
33-
background-color: #57a544;
34-
border-radius: 50%;
35-
display: table;
36-
height: 100px;
37-
margin: 0 auto;
38-
width: 100px;
39-
margin-top: -61px;
40-
}
41-
.box-icon span {
42-
color: #fff;
43-
display: table-cell;
44-
text-align: center;
45-
vertical-align: middle;
46-
}
47-
.info > p {
48-
color: #717171;
49-
font-size: 16px;
50-
padding-top: 10px;
51-
text-align: justify;
52-
}
53-
.info > a {
54-
background-color: #03a9f4;
55-
border-radius: 2px;
56-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
57-
color: #fff;
58-
transition: all 0.5s ease 0s;
23+
/** MENU */
24+
.nav-sidebar {
25+
width: 100%;
26+
padding: 8px 0;
27+
border-right: 1px solid #ddd;
5928
}
60-
.info > a:hover {
61-
background-color: #0288d1;
62-
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.16), 0 2px 5px 0 rgba(0, 0, 0, 0.12);
29+
.nav-sidebar a {
30+
color: #333;
31+
-webkit-transition: all 0.08s linear;
32+
-moz-transition: all 0.08s linear;
33+
-o-transition: all 0.08s linear;
34+
transition: all 0.08s linear;
35+
-webkit-border-radius: 4px 0 0 4px;
36+
-moz-border-radius: 4px 0 0 4px;
37+
border-radius: 4px 0 0 4px;
38+
}
39+
.nav-sidebar .active a {
40+
cursor: default;
41+
background-color: #428bca;
6342
color: #fff;
64-
transition: all 0.5s ease 0s;
43+
text-shadow: 1px 1px 1px #666;
44+
}
45+
.nav-sidebar .active a:hover {
46+
background-color: #428bca;
47+
}
48+
.nav-sidebar .text-overflow a,
49+
.nav-sidebar .text-overflow .media-body {
50+
white-space: nowrap;
51+
overflow: hidden;
52+
-o-text-overflow: ellipsis;
53+
text-overflow: ellipsis;
54+
}
55+
56+
/* Right-aligned sidebar */
57+
.nav-sidebar.pull-right {
58+
border-right: 0;
59+
border-left: 1px solid #ddd;
60+
}
61+
.nav-sidebar.pull-right a {
62+
-webkit-border-radius: 0 4px 4px 0;
63+
-moz-border-radius: 0 4px 4px 0;
64+
border-radius: 0 4px 4px 0;
65+
}
66+
67+
/* ------- pagination -------- */
68+
69+
.pagination {
70+
height: 36px;
71+
}
72+
73+
.pagination ul {
74+
display: inline-block;
75+
margin: 0;
76+
padding: 0;
77+
-webkit-border-radius: 3px;
78+
-moz-border-radius: 3px;
79+
border-radius: 3px;
80+
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
81+
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
82+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
83+
}
84+
85+
.pagination li {
86+
display: inline;
87+
}
88+
89+
.pagination li:first-child a {
90+
border-left-width: 1px;
91+
-webkit-border-radius: 3px 0 0 3px;
92+
-moz-border-radius: 3px 0 0 3px;
93+
border-radius: 3px 0 0 3px;
94+
}
95+
96+
.pagination li:last-child a {
97+
-webkit-border-radius: 0 3px 3px 0;
98+
-moz-border-radius: 0 3px 3px 0;
99+
border-radius: 0 3px 3px 0;
100+
}
101+
102+
.pagination a {
103+
float: left;
104+
padding: 0 14px;
105+
line-height: 34px;
106+
border: 1px solid #DDD;
107+
border-left-width: 0;
108+
}
109+
110+
.pagination a:hover, .active a {
111+
background-color: whiteSmoke;
112+
}
113+
114+
.disabled a, .disabled a:hover,
115+
.active a, .active a:hover {
116+
color: #999;
117+
cursor: default;
118+
}
119+
120+
.disabled a:hover {
121+
background-color: transparent;
65122
}

dotfiles.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
layout: default
3+
---
4+
<div class="row">
5+
<div class="col-md-12 text-center">
6+
<h1>Vim-Php <small>Ours configuration project</small></h1>
7+
</div>
8+
</div>
9+
<hr>
10+
<div class="row">
11+
<div class="col-md-3">
12+
<h3>Follow <a href="https://twitter.com/search?f=realtime&q=vimForPHP&src=typd" target="_blank">#vimForPHP</a></h3>
13+
<a class="twitter-timeline" href="https://twitter.com/hashtag/vimForPHP" data-widget-id="573627528457379842">#vimForPHP Tweets</a>
14+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
15+
</div>
16+
17+
<div class="col-md-6">
18+
<h3>Dotfiles</h3>
19+
<table class="table">
20+
<thead>
21+
<tr>
22+
<th>Github</th>
23+
<th>Project</th>
24+
<th>@Twitter</th>
25+
</tr>
26+
</thead>
27+
<tbody>
28+
<tr>
29+
<td><a target="_blank" href="https://github.com/gianarb">GianArb</a></td>
30+
<td><a target="_blank" href="https://github.com/gianarb/dotfiles">dotfiles</a></td>
31+
<td><a target="_blank" href="https://twitter.com/gianarb">@GianArb</a></td>
32+
</tr>
33+
</tbody>
34+
<tbody>
35+
<tr>
36+
<td><a target="_blank" href="https://github.com/EvanDotPro">EvanDotPro</a></td>
37+
<td><a target="_blank" href="https://github.com/EvanDotPro/vim-configuration">vim-configuration</a></td>
38+
<td><a target="_blank" href="https://twitter.com/EvanDotPro">@EvanDotPro</a></td>
39+
</tr>
40+
</tbody>
41+
</table>
42+
</div>
43+
44+
<div class="col-md-3">
45+
{% include nav.html %}
46+
</div>
47+
</div>

0 commit comments

Comments
 (0)