X Tutup
Skip to content

Commit 5f6ae10

Browse files
MarkusMarkus
authored andcommitted
Fixes iluwatar#56: Last Cleanup and Bugfixing
- deleted a lot of unnecessary stuff - fixed the resource links to point to official and secure sites instead of some asia one - fixes problems with links on page - disabled about page -> not needed atm - fixed background image not beeing displayed properly
1 parent 2a7b5e5 commit 5f6ae10

26 files changed

+23
-7241
lines changed

_config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ description: Java Design Patterns
66
# line in _config.yml. It will appear in your document head meta (for
77
# Google search results) and in your feed.xml site description.
88

9-
# baseurl: "" # the subpath of your site, e.g. /blog/
10-
# url: "http://yourdomain.com" # the base hostname & protocol for your site
11-
# twitter_username: jekyllrb
9+
baseurl: "/java-design-patterns" # the subpath of your site, e.g. /blog/
10+
url: "http://iluwatar.github.io" # the base hostname & protocol for your site
1211
designer_github_username: Gaohaoyang
1312
permalink: /:year/:month/:day/:title/
1413

_includes/duplicate.html

Lines changed: 0 additions & 52 deletions
This file was deleted.

_includes/footer.html

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,9 @@
1-
<footer class="">
1+
<footer>
22
<div class="container">
33
<div class="row">
44
<div class="col-md-12">
5-
<a href="mailto:{{ site.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ site.email }}</a>
6-
<span class="point"> · </span>
7-
{% if site.github_username %}
8-
9-
<a href="https://github.com/{{ site.github_username }}">
10-
<span class="icon">
11-
<svg viewBox="0 0 16 16">
12-
<path fill="#aaa" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
13-
</svg>
14-
</span>
15-
Github
16-
<!-- <span>{{ site.github_username }}</span> -->
17-
</a>
18-
19-
{% endif %}
20-
<span class="point"> · </span>
21-
<span><a href="{{ "/feed.xml" | prepend: site.baseurl }}">RSS</a></span>
22-
<span class="point"> · </span>
23-
<span>{{ site.description }}</span>
24-
<span class="point"> · </span>
25-
<span>&copy; 2015 Gaohaoyang</span>
26-
<span class="point"> · </span>
27-
<span>Designed by <a href="https://github.com/Gaohaoyang">HyG</a></span>
28-
5+
<!-- Reserved for later use -->
296
</div>
307
</div>
318
</div>
32-
</footer>
9+
</footer>

_includes/head.html

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,15 @@
88
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
99
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
1010

11-
<!-- <link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}"> -->
12-
13-
<link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
14-
<!-- <link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/fontawesome/4.2.0/css/font-awesome.min.css"> -->
15-
<!-- <link rel="stylesheet" type="text/css" href="{{"/static/css/bootstrap.min.css" | prepend: site.baseurl }}"> -->
11+
<!-- JQuery 2.1.4 -->
12+
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
1613

14+
<!-- Bootstrap 3.3.0 -->
15+
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
16+
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
1717

18+
<!-- Customizations -->
19+
<script type="text/javascript" src="{{ "/static/js/index.js" | prepend: site.baseurl }}"></script>
1820
<link rel="stylesheet" type="text/css" href="{{ "/static/css/index.css" | prepend: site.baseurl }}">
1921

20-
<!-- <script type="text/javascript" src="{{ "/static/js/jquery-1.11.1.min.js" | prepend:site.baseurl }}"></script>
21-
<script type="text/javascript" src="{{ "/static/js/bootstrap.min.js" | prepend:site.baseurl }}"></script> -->
22-
23-
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
24-
<script type="text/javascript" src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
25-
26-
<script type="text/javascript" src="{{"/static/js/index.js" | prepend:site.baseurl}}"></script>
27-
28-
<link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/highlight.js/8.4/styles/monokai_sublime.min.css">
29-
<!-- <link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/highlight.js/8.4/styles/railscasts.min.css"> -->
30-
<!-- <link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/highlight.js/8.4/styles/monokai.min.css"> -->
31-
<!-- <script type="text/javascript" src="http://apps.bdimg.com/libs/highlight.js/8.4/languages/dos.min.js"></script> -->
32-
<!-- <script type="text/javascript" src="http://apps.bdimg.com/libs/highlight.js/8.4/highlight.min.js"></script>
33-
<script>hljs.initHighlightingOnLoad();</script> -->
34-
35-
<script>
36-
var _hmt = _hmt || [];
37-
(function() {
38-
var hm = document.createElement("script");
39-
hm.src = "//hm.baidu.com/hm.js?b636473d6ffa17615f94e5db1459ea81";
40-
var s = document.getElementsByTagName("script")[0];
41-
s.parentNode.insertBefore(hm, s);
42-
})();
43-
</script>
44-
4522
</head>

_layouts/default.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@
2323

2424
{% include footer.html %}
2525

26-
27-
<script type="text/javascript">
28-
var duoshuoQuery = {short_name:"hygblog"};
29-
(function() {
30-
var ds = document.createElement('script');
31-
ds.type = 'text/javascript';ds.async = true;
32-
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
33-
ds.charset = 'UTF-8';
34-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
35-
})();
36-
</script>
37-
3826
<script type="text/javascript">
3927
function addBlankTargetForLinks () {
4028
$('a[href^="http"]').each(function(){

_layouts/pattern.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
<h1>{{ page.title }}</h1>
99
<p>{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
1010
</header>
11-
<!--
12-
<hr>
13-
<div class="center">
14-
<img src="./etc/{{ page.folder }}.png" alt="{{ page.folder }}">
15-
</div>
16-
-->
1711
<hr>
1812
<article>
1913
{{content}}

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
comments: false
44
---
55
<div class="readme">
6-
{% capture content %}
6+
{% capture maincontent %}
77

88
{% include_relative patterns/README.md %}
99

1010
{% endcapture %}
1111

12-
{{ content | markdownify }}
12+
{{ maincontent | markdownify }}
1313
</div>

pages/1patterns.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2>
3535
{% for page in allPages %}
3636
{% if page.categories contains category %}
3737
{% if page.url %}
38-
<a href="{{ page.url }}" class="post-list-item">
38+
<a class="post-list-item" href="{{ page.url | prepend: site.baseurl }}">
3939
<h2>
4040
{{ page.title }}
4141
</h2>
@@ -54,7 +54,7 @@ <h2>
5454
{% for page in allPages %}
5555
{% if page.tags contains tag %}
5656
{% if page.url %}
57-
<a href="{{ page.url }}" class="post-list-item">
57+
<a class="post-list-item" href="{{ page.url | prepend: site.baseurl }}">
5858
<h2>
5959
{{ page.title }}
6060
</h2>

pages/2about.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--
12
---
23
layout: page
34
title: About
@@ -60,3 +61,4 @@ Comment below to exchange link with me.
6061
---
6162
6263
只要有空一定会更新的!
64+
-->

pages/2archive.html

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)
X Tutup