<!DOCTYPE html><html><head><metacharset="UTF-8"><title></title><metahttp-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><metaname="description" content="Description"><metaname="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"><linkhref="https://cdn.bootcss.com/docsify/4.6.10/themes/vue.css" rel="stylesheet"><style>
.cover {
display: none !important;
}
</style></head><body><!-- 自定义内容 --><templateid="index_temp"><divstyle="text-align: center"><h2>Hello</h2><ahref="/#/readme">开始</a></div></template><divid="index_view"></div><divid="app"></div><script>functionrenderIndexView(){var$=document.querySelector.bind(document);if(window.location.hash==='#/'){$('#index_view').innerHTML=$('#index_temp').innerHTML;}else{$('#index_view').innerHTML='';}}window.addEventListener('hashchange',renderIndexView);renderIndexView();window.$docsify={name: 'Hello',repo: '',loadSidebar: true,coverpage: true,onlyCover: true,};</script><scriptsrc="https://cdn.bootcss.com/docsify/4.6.10/docsify.min.js"></script><scriptsrc="https://cdn.bootcss.com/docsify/4.6.10/plugins/zoom-image.min.js"></script></body></html>
我发现,封面只能从 markdown 里读取,不能做到一个灵活的自定义内容(包括样式等)。
现在我只能这样做来实现灵活的自定义封面的内容。