mirror of
https://shylinux.com/x/ContextOS
synced 2025-06-26 18:07:30 +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;
|
||||
}
|
||||
}
|
||||
|
||||
var m = document.getElementsByClassName("link");
|
||||
for (var i = 0; i < m.length; i++) {
|
||||
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++) {
|
||||
var one = m[i].appendChild(document.createElement("div"));
|
||||
@ -167,5 +170,7 @@ function tags(event) {
|
||||
document.onmouseup = tags;
|
||||
window.onload = function() {
|
||||
toggle();
|
||||
if (location.href.endsWith(".md")) {
|
||||
menu();
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +109,7 @@
|
||||
float:left;
|
||||
margin-left:2%;
|
||||
}
|
||||
.link {
|
||||
.li_link {
|
||||
font-size:18px;
|
||||
}
|
||||
.number {
|
||||
@ -136,6 +136,16 @@
|
||||
.menu .h3 {
|
||||
padding-left: 10px;
|
||||
}
|
||||
.link {
|
||||
margin-top:10px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.link div:first-child {
|
||||
margin-left:-10px;
|
||||
}
|
||||
.link div {
|
||||
padding-left:10px;
|
||||
}
|
||||
</style>
|
||||
<div class="content">
|
||||
<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="texts">
|
||||
<div class="menu"></div>
|
||||
<div class="link"></div>
|
||||
<div class="number">
|
||||
{{range option . "nline"|meta|list}}
|
||||
<div id="hash_{{.}}" style="margin-top:-1px"><code>{{.}}</code></div>
|
||||
@ -160,7 +171,7 @@
|
||||
{{else}}
|
||||
<ul>
|
||||
{{range $i, $v := append . "name"}}
|
||||
<li class="link">
|
||||
<li class="li_link">
|
||||
<div>
|
||||
<code>{{option $msg "time" $i}} </code>
|
||||
<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