Skip to content

Commit

Permalink
'update'
Browse files Browse the repository at this point in the history
  • Loading branch information
AtChina committed Jan 4, 2015
1 parent b80dc18 commit 5e7853f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 20 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ description: > # this means to ignore newlines until "baseurl:"
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "/"
url: "http://atchina.me/"
url: "http://atchina.me"
github_username: AtChina
permalink: /:categories/:title
production_url : http://atchina.me/
production_url : http://atchina.me
paginate: 5
paginate_path: "page:num"

Expand Down
6 changes: 3 additions & 3 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--put the JS files in here-->
<script src="{{ "assets/bower_components/jquery/jquery.min.js" | prepend: site.baseurl }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ "assets/bower_components/bootstrap/js/bootstrap.min.js" | prepend: site.baseurl }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ "assets/bower_components/Buttons/js/buttons.js" | prepend: site.baseurl }}" type="text/javascript" charset="utf-8"></script>
<script src="http://atchina.me/assets/bower_components/jquery/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://atchina.me/assets/bower_components/bootstrap/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://atchina.me/assets/bower_components/Buttons/js/buttons.js" type="text/javascript" charset="utf-8"></script>
22 changes: 8 additions & 14 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,14 @@
<meta name="viewport" content="width=device-width initial-scale=1">
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<!--bing the title of page-->
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<script language="javascript" type="text/javascript">
if(location.href==="{{ site.url }}"){
//window.location.replace("{{ site.url }}about.html");
document.location.href="{{ site.url }}about.html";
}
</script>
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<!--put the css files in here-->
<link rel="shortcut icon" href="{{ "favicon.ico" | prepend: site.baseurl }}" />
<link rel="stylesheet" href="{{ "assets/bower_components/bootstrap/css/bootstrap.min.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "assets/bower_components/bootstrap/css/bootstrap-theme.min.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "assets/css/main.css" | prepend: site.baseurl }}">
<script src="http://atchina.me/assets/javascript/nav.js" type="text/javascript" charset="utf-8"></script>
<link rel="shortcut icon" href="http://atchina.me/favicon.ico" />
<link rel="stylesheet" href="http://atchina.me/assets/bower_components/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="http://atchina.me/assets/bower_components/bootstrap/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="http://atchina.me/assets/css/main.css">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
<link rel="stylesheet" href="{{ "assets/bower_components/Buttons/css/buttons.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "assets/bower_components/font-awesome/css/font-awesome.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="http://atchina.me/assets/bower_components/Buttons/css/buttons.css">
<link rel="stylesheet" href="http://atchina.me/assets/bower_components/font-awesome/css/font-awesome.css">
</head>
2 changes: 1 addition & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: index
---
<div class="row">
<img src="{{ "/nick.png" | prepend: site.baseurl }}"
<img src="http://atchina.me/nick.png"
alt="..."
class="img-responsive img-thumbnail img-circle" />
</div>
Expand Down
10 changes: 10 additions & 0 deletions assets/javascript/nav.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* 单页面处理程序
* @param {[type]} ){} [description]
* @return {[type]} [description]
*/
$(function() {
if (document.location.location.href === "http://atchina.me/") {
document.location.href = "http://atchina.me/about.html";
}
});

0 comments on commit 5e7853f

Please sign in to comment.