diff --git a/_config.yml b/_config.yml index e7d4cb0..ba565c9 100755 --- a/_config.yml +++ b/_config.yml @@ -117,6 +117,24 @@ footer: # - title: Comments # icon: '' # url: / + sitemap: + # '博客': + # - '[近期](/)' + # - '[分类](/)' + # - '[标签](/)' + # - '[归档](/)' + # '项目': + # - '[开源库](/)' + # - '[实用脚本](/)' + # '社交': + # - '[友链](/)' + # - '[留言板](/)' + # - '[Spotify](/)' + # - '[Unsplash](/)' + # '更多': + # - '[关于本站](/)' + # - '[GitHub](/)' + # - '[GitLab](/)' license: '[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)' source: #'[GitHub](https://github.com/xaoxuu/hexo-theme-stellar)' diff --git a/layout/_partial/main/footer.ejs b/layout/_partial/main/footer.ejs index 87aa2c4..42e28c9 100755 --- a/layout/_partial/main/footer.ejs +++ b/layout/_partial/main/footer.ejs @@ -3,18 +3,40 @@ const author = '[@' + config.author + '](' + config.url + config.root + ')'; const using = '[' + stellar_info('name') + '](' + stellar_info('tree') + ')'; const source = theme.footer.source; function layoutDiv() { - var wrapper = ''; - wrapper += ''; + return el; } %> <%- layoutDiv() %> diff --git a/source/css/_layout/partial/footer.styl b/source/css/_layout/partial/footer.styl index a1c7054..18b9fad 100644 --- a/source/css/_layout/partial/footer.styl +++ b/source/css/_layout/partial/footer.styl @@ -1,11 +1,38 @@ .page-footer margin: 4rem 1rem 2rem color: var(--text-p3) + a + color: var(--text-p3) + &:hover + color: $color-hover + +.page-footer .sitemap + margin: .5rem 0 1.5rem + display: grid + grid-gap: 1rem 1rem + grid-auto-flow: column dense + overflow: scroll + scrollbar(0, 0) + + +.page-footer .sitemap .sitemap-group + display: flex + flex-direction: column + align-items: flex-start + >span,>a + text-decoration: none + txt-ellipsis() + >span + margin: .5rem 0 + font-weight: 500 + color: var(--text-p1) + >a + margin: .2rem 0 + + +.page-footer .text p margin: 4px 0 line-height: 1.2 a - color: var(--text-p3) text-decoration: underline - &:hover - color: $color-hover