SHOKA Shoka主题:新增博客新年灯笼
新增:博客页面右上角新年灯笼 #前言 本文参考:知更鸟:过年啦,挂灯笼! (原作者) 之前的wordpress主题也搞过这个灯笼,还是挺简单的,临近农历新年,在这个主题再搞一下 #实现 #新增主题设置 在主题的 yml 文件中,找到 footer ,下面新增 latern 选项,如下: footer: # Specify the date when the site was setup. If not defined, current year will be used. since: 2020 # …………(省略) count: true powered: true # 新增latern lantern: enable: true #是否开启 word1: 春 #第一个字 word2: 节 #第二个字 #新增 div 在 themes\shoka\layout\_partials\footer.njk 中新增(可以在 {%- if theme.footer.powered %} 这句代码前增加以下内容) {%- if theme.footer.lantern.enable %} <!-- 灯笼1 --> <div class="deng-box"> <div class="deng"> <div class="xian"></div> <div...









