Gao Wenrui

Results 5 comments of Gao Wenrui

@Coder-itCheng 我没看到你博客的仓库,所以我也不清楚你怎么改的。可以参考更新 MemE 的方法,不过要把 clone 的仓库链接换成我 fork 的仓库: ```shell rm -rf themes/meme git clone --depth 1 https://github.com/koktlzz/hugo-theme-meme.git themes/meme ``` 最后在`config.toml`中添加`displayTOConSide = true`。 注意这样做的话你之前魔改过的配置就没了,可以先`hugo new`一个空白博客做下测试。

> 本來也想照這個改,但發現這項改動在手機版會出現重疊的情況,不利於手機版閱讀。 这个问题我也考虑过,目前的解决方案是屏幕宽度小于`$postWidth`时隐藏目录: ```scss @media screen and (max-width: $postWidth) { .contents { display: none; } } ```

> 网络和容器 使用的docker+flannel ? 刚刚测试也是一直重启 删除kubelet中的四项参数 恢复正常 > https://github.com/opsnull/follow-me-install-kubernetes-cluster/blob/master/F.%E9%83%A8%E7%BD%B2docker.md > 底部有说明 我用的containerd也出现了这个问题

目录的样式在 [_single.scss](https://github.com/reuixiy/hugo-theme-meme/blob/babefc97831b0104270173b07883558638466fe4/assets/scss/layout/_single.scss#L104) 中的`.content`,如果要固定在页面边缘,可以设为`position: fixed`。 页面的配置则在 [post.html](https://github.com/reuixiy/hugo-theme-meme/blob/babefc97831b0104270173b07883558638466fe4/layouts/partials/pages/post.html#L32 ),目录默认和博文放在同一个容器内,因此还需要把它从里面拿出来: ```html // 目录 {{ $enableTOC := .Params.toc | default .Site.Params.enableTOC -}} {{- if $enableTOC -}} {{- partial "utils/toc.html" . -}} {{- end -}}...

@Borber 作者在 #64 里说不会合并类似的代码,不过我还是提了😂 #398