Skip to content

Commit 46c11c3

Browse files
committed
Update
1 parent 80dc4fb commit 46c11c3

File tree

7 files changed

+55
-16
lines changed

7 files changed

+55
-16
lines changed

_config.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ company: MyCompany
1414
company_url: https://github.com/DONGChuan
1515
github_url: https://github.com/DONGChuan
1616

17-
url: "http://yourdomain.com" # the base hostname & protocol for your site
17+
url: "http://localhost:4000" # the base hostname & protocol for your site
1818

1919
## Gem
2020
gems:
2121
- jekyll-paginate
22+
- jekyll-geo-pattern
2223

2324
# Build settings
2425
markdown: kramdown

_includes/footer.html

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<!-- Third-Party JS -->
2020
<script type="text/javascript" src="/bower_components/jquery/dist/jquery.min.js"></script>
2121
<script type="text/javascript" src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
22+
<script type="text/javascript" src="/bower_components/geopattern/js/geopattern.min.js"></script>
2223

2324
<!-- My JS -->
2425
<script type="text/javascript" src="/assets/js/script.js"></script>

_includes/jumbotron.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<section class="jumbotron" geo-pattern="{{ page.title }}">
2+
<div class="container">
3+
<div id="jumbotron-meta-info">
4+
<span class="meta-info">
5+
<span class="octicon octicon-location"></span>
6+
{{ site.location }}
7+
</span>
8+
<span class="meta-info hvr-grow">
9+
<span class="octicon octicon-organization"></span>
10+
<a href="{{ site.company_url }}" target="_blank">{{ site.company }}</a>
11+
</span>
12+
<span class="meta-info hvr-grow">
13+
<span class="octicon octicon-mark-github"></span>
14+
<a href="{{ site.github_url }}" target="_blank">@{{ site.name }}</a>
15+
</span>
16+
</div>
17+
</div>
18+
</section>
19+
<script type="text/javascript">
20+
var geoPattern = $(".jumbotron").attr("geo-pattern");
21+
$(".jumbotron").css("background-image", "url(data:image/svg+xml;base64,{% base64_geo_pattern text="+ geoPattern +" %}");
22+
</script>

_layouts/post.html

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
---
22
layout: default
33
---
4+
{% include jumbotron.html %}
45
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
56

6-
<header class="post-header">
7-
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
8-
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
9-
</header>
7+
<header class="post-header">
8+
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
9+
<p class="post-meta">
10+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d,%Y" }}
11+
</time>
12+
{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}
13+
</p>
14+
</header>
1015

11-
<div class="post-content" itemprop="articleBody">
12-
{{ content }}
13-
</div>
16+
<div class="post-content" itemprop="articleBody">
17+
{{ content }}
18+
</div>
1419

1520
</article>

assets/css/common.css

+6-3
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,23 @@
128128
padding-top: 30px;
129129
padding-bottom: 30px;
130130
list-style: none;
131-
border-bottom: 1px solid #eee;
131+
}
132+
133+
.post-list-title a {
134+
text-decoration: none;
132135
}
133136

134137
.post-list-description {
135138
margin-top: 8px;
136139
margin-bottom: 0;
137140
font-size: 18px;
138-
color: #666
141+
color: #666;
139142
}
140143

141144
.post-list-meta {
142145
margin-top: 8px;
143146
margin-bottom: 0;
144-
color: #888
147+
color: #888;
145148
}
146149

147150
.post-list-meta, .post-list-meta.octicon {

bower.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"dependencies": {
2121
"bootstrap": "^3.3.6",
2222
"octicons": "^3.5.0",
23-
"hover": "^2.0.2"
23+
"hover": "^2.0.2",
24+
"geopattern": "^1.2.3"
2425
}
2526
}

index.html

+10-4
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
---
55
<section class="jumbotron">
66
<div class="container">
7-
<h1>I'm a Cool Boy :P</h1>
7+
<h1>Yummy Theme</h1>
88
<div id="jumbotron-meta-info">
99
<span class="meta-info">
1010
<span class="octicon octicon-location"></span>
1111
{{ site.location }}
1212
</span>
13-
<span class="meta-info">
13+
<span class="meta-info hvr-grow">
1414
<span class="octicon octicon-organization"></span>
1515
<a href="{{ site.company_url }}" target="_blank">{{ site.company }}</a>
1616
</span>
17-
<span class="meta-info">
17+
<span class="meta-info hvr-grow">
1818
<span class="octicon octicon-mark-github"></span>
1919
<a href="{{ site.github_url }}" target="_blank">@{{ site.name }}</a>
2020
</span>
@@ -27,10 +27,16 @@ <h1>I'm a Cool Boy :P</h1>
2727

2828
<!-- Post List -->
2929
<div class="col-md-8">
30+
<ol class="post-list">
3031
{% for post in paginator.posts %}
31-
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a>
32+
<li class="post-list-item">
33+
<h2 class="post-list-title">
34+
<a class="hvr-underline-from-center" href="{{ site.url }}{{ post.url }}">{{ post.title }}</a>
35+
</h2>
36+
<p class="post-list-description">
3237
{{ post.excerpt | strip_html | strip }}
3338
</p>
39+
<p class="post-list-meta">
3440
<span class="octicon octicon-calendar"></span> {{ post.date | date: "%Y/%m/%d" }}
3541
</p>
3642
</li>

0 commit comments

Comments
 (0)