去除hugo主题maupassant页脚
如何去除hugo主题maupassant页脚及新增版权说明
环境
- hugo themes maupassant
解决
1.找到页脚文件
themes/maupassant/layouts/partials/footer.html
2.移除关于class=github-badge的div标签
<footer id="footer">
...
<div> //删除比标签
<div class="github-badge">
...
</div>
</footer>
3.新增版权声明
<footer id="footer">
<div>
© {{ now.Format "2006" }} <a href="{{ .Site.BaseURL | absURL }}">{{ .Site.Title }} By {{ .Site.Author.name }}|本站由Hugo强力驱动, 主题移植自maupassant</a>
</div>
//版权相关的,新增|本站由Hugo强力驱动, 主题移植自maupassant