mirror of
https://shylinux.com/x/ContextOS
synced 2025-06-27 02:17:31 +08:00
mac add wiki.link
This commit is contained in:
parent
9b97b7c979
commit
30573143c0
@ -111,9 +111,12 @@ function menu() {
|
|||||||
|
|
||||||
one.className = list[j].level;
|
one.className = list[j].level;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var m = document.getElementsByClassName("link");
|
||||||
|
for (var i = 0; i < m.length; i++) {
|
||||||
var one = m[i].appendChild(document.createElement("div"));
|
var one = m[i].appendChild(document.createElement("div"));
|
||||||
var a = one.appendChild(document.createTextNode("相关链接"));
|
var a = one.appendChild(document.createTextNode("相关链接: "));
|
||||||
|
|
||||||
for (var j = 0; j < link.length; j++) {
|
for (var j = 0; j < link.length; j++) {
|
||||||
var one = m[i].appendChild(document.createElement("div"));
|
var one = m[i].appendChild(document.createElement("div"));
|
||||||
@ -167,5 +170,7 @@ function tags(event) {
|
|||||||
document.onmouseup = tags;
|
document.onmouseup = tags;
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
toggle();
|
toggle();
|
||||||
|
if (location.href.endsWith(".md")) {
|
||||||
menu();
|
menu();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@
|
|||||||
float:left;
|
float:left;
|
||||||
margin-left:2%;
|
margin-left:2%;
|
||||||
}
|
}
|
||||||
.link {
|
.li_link {
|
||||||
font-size:18px;
|
font-size:18px;
|
||||||
}
|
}
|
||||||
.number {
|
.number {
|
||||||
@ -136,6 +136,16 @@
|
|||||||
.menu .h3 {
|
.menu .h3 {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
.link {
|
||||||
|
margin-top:10px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.link div:first-child {
|
||||||
|
margin-left:-10px;
|
||||||
|
}
|
||||||
|
.link div {
|
||||||
|
padding-left:10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="toggle" title="点击,显示或隐藏目录" onclick="toggle()"></div>
|
<div class="toggle" title="点击,显示或隐藏目录" onclick="toggle()"></div>
|
||||||
@ -145,6 +155,7 @@
|
|||||||
<div class="record">上次阅读时间: {{option . "last_record_time"|meta}} 总访问量: {{option . "record_count"|meta}}</div>
|
<div class="record">上次阅读时间: {{option . "last_record_time"|meta}} 总访问量: {{option . "record_count"|meta}}</div>
|
||||||
<div class="texts">
|
<div class="texts">
|
||||||
<div class="menu"></div>
|
<div class="menu"></div>
|
||||||
|
<div class="link"></div>
|
||||||
<div class="number">
|
<div class="number">
|
||||||
{{range option . "nline"|meta|list}}
|
{{range option . "nline"|meta|list}}
|
||||||
<div id="hash_{{.}}" style="margin-top:-1px"><code>{{.}}</code></div>
|
<div id="hash_{{.}}" style="margin-top:-1px"><code>{{.}}</code></div>
|
||||||
@ -160,7 +171,7 @@
|
|||||||
{{else}}
|
{{else}}
|
||||||
<ul>
|
<ul>
|
||||||
{{range $i, $v := append . "name"}}
|
{{range $i, $v := append . "name"}}
|
||||||
<li class="link">
|
<li class="li_link">
|
||||||
<div>
|
<div>
|
||||||
<code>{{option $msg "time" $i}} </code>
|
<code>{{option $msg "time" $i}} </code>
|
||||||
<a href="/wiki/{{option $msg "dir"|meta}}/{{$v}}{{option $msg "pend" $i}}">{{$v}}{{option $msg "pend" $i}}</a>
|
<a href="/wiki/{{option $msg "dir"|meta}}/{{$v}}{{option $msg "pend" $i}}">{{$v}}{{option $msg "pend" $i}}</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user