-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
103 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
<section class="visible-md visible-lg"> | ||
<hr> | ||
<h5><a href="{{'/about/' | prepend: site.baseurl }}">ABOUT ME</a></h5> | ||
<div class="short-about"> | ||
{% if site.sidebar-avatar %} | ||
<img src="{{site.sidebar-avatar}}" /> | ||
{% endif %} | ||
{% if site.sidebar-about-description %} | ||
<hr> | ||
<h5><a href="{{'/about/' | prepend: site.baseurl }}">ABOUT ME</a></h5> | ||
<div class="short-about"> | ||
{% if site.sidebar-avatar %} | ||
<img src="{{site.sidebar-avatar}}" /> | ||
{% endif %} | ||
{% if site.sidebar-about-description %} | ||
|
||
<p id="sentence" onclick="window.location.href='/onesentence'" title="点击有彩蛋">{{site.sidebar-about-description}}</p> | ||
<script> | ||
fetch('https://api.ljnb.top/') | ||
.then(response =>{return response.json();}) | ||
.then(data => { | ||
$('p#sentence').text(data['sentence']); | ||
}); | ||
|
||
</script> | ||
{% endif %} | ||
<!-- SNS Link --> | ||
{% include sns-links.html %} | ||
</div> | ||
</section> | ||
<p id="sentence" onclick="window.location.href='/onesentence'" title="点击有彩蛋">{{site.sidebar-about-description}}</p> | ||
<script> | ||
let r = Math.floor(Math.random() * 12); | ||
fetch(`/api/onesentence/${r}.json`) | ||
.then(response => { return response.json(); }) | ||
.then(data => { | ||
$('p#sentence').text(data['sentence']); | ||
}); | ||
|
||
</script> | ||
{% endif %} | ||
<!-- SNS Link --> | ||
{% include sns-links.html %} | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "我们必须知道,我们必将知道。", | ||
"from": "David Hilbert" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "“I have never grown up, but I will never stop growing.”", | ||
"from": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "我口袋只剩玫瑰一片,而此行又山高路远。", | ||
"from": "《小尖尖》" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "看脚下一片黑暗,望头顶星光璀璨", | ||
"from": "《火车驶向云外,梦安魂于九霄》" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "“Per Aspera Ad Astra”", | ||
"from": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "山中何事?松花酿酒,春水煎茶。", | ||
"from": "《人月圆·山中书事》" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "循此苦旅,以达天际。", | ||
"from": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "且将新火试新茶,诗酒趁年华。", | ||
"from": "《望江南·超然台作》" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "探索世界的好奇心万岁!", | ||
"from": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "Tick tock, never stop.", | ||
"from": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "我随清风浮云去,雾散之时即归来。", | ||
"from": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sentence": "人生本该自由,乘兴而去,尽兴而归。", | ||
"from": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters