|
|
|
@ -38,16 +38,20 @@
|
|
|
|
<% }); %>
|
|
|
|
<% }); %>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<h3> </h3>
|
|
|
|
<h3> </h3>
|
|
|
|
|
|
|
|
<% if (site.customConfig.hitokoto) { %>
|
|
|
|
<p id="hitokoto">
|
|
|
|
<p id="hitokoto">
|
|
|
|
<div id="hitokoto_text" style="font-size: 90%;"></div>
|
|
|
|
<div id="hitokoto_text" style="font-size: 90%;"></div>
|
|
|
|
<div id="hitokoto_from" style="font-size: 50%;"></div>
|
|
|
|
<div id="hitokoto_from" style="font-size: 50%;"></div>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% if (site.customConfig.homeback) { %>
|
|
|
|
<div style="text-align: right;">
|
|
|
|
<div style="text-align: right;">
|
|
|
|
↶ <a href="/">返回首页</a>
|
|
|
|
↶ <a href="/">返回首页</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if (site.customConfig.hitokoto) { %>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
fetch('https://v1.hitokoto.cn')
|
|
|
|
fetch('https://v1.hitokoto.cn')
|
|
|
|
.then(response => response.json())
|
|
|
|
.then(response => response.json())
|
|
|
|
@ -55,15 +59,16 @@
|
|
|
|
const hitokoto = document.querySelector('#hitokoto_text')
|
|
|
|
const hitokoto = document.querySelector('#hitokoto_text')
|
|
|
|
const from = document.querySelector('#hitokoto_from')
|
|
|
|
const from = document.querySelector('#hitokoto_from')
|
|
|
|
//hitokoto.href = `https://hitokoto.cn/?uuid=${data.uuid}`
|
|
|
|
//hitokoto.href = `https://hitokoto.cn/?uuid=${data.uuid}`
|
|
|
|
if( data.from_who){
|
|
|
|
if (data.from_who) {
|
|
|
|
from.innerText = '————'+ data.from_who + '「'+data.from+'」'
|
|
|
|
from.innerText = '————' + data.from_who + '「' + data.from + '」'
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
from.innerText = '————'+ '「'+data.from+'」'
|
|
|
|
from.innerText = '————' + '「' + data.from + '」'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hitokoto.innerText = data.hitokoto
|
|
|
|
hitokoto.innerText = data.hitokoto
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(console.error)
|
|
|
|
.catch(console.error)
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<% } %>
|
|
|
|
<%- include('./_blocks/scripts') %>
|
|
|
|
<%- include('./_blocks/scripts') %>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|
|
|
|
|