hexo-my-calendar

Calendar generator for hexo

Usage no npm install needed!

<script type="module">
  import hexoMyCalendar from 'https://cdn.skypack.dev/hexo-my-calendar';
</script>

README

适配next-theme,并修改了样式。

theme-next-calendar

简洁的hexo-next日历云插件, 在日历上显示提交标记

安装

  1. 首先安装hexo插件
npm install 222e/theme-next-calendar
  1. 在next主题配置文件_config.yml配置
CloudCalendar:
  enable: true
  language: zh-CN
  single: true
  root: /calendar/
  calendarCdn: //cdn.jsdelivr.net/gh/theme-next/theme-next-calendar/calendar.min.js
  langCdn: //cdn.jsdelivr.net/gh/theme-next/theme-next-calendar/languages.min.js
  #disableSidebar: false

渲染日历

默认是在边栏中渲染, 当然也可以在任何位置显示, 只要disableSidebar禁用,并添加sidebar.njk中的代码至你希望的位置

自定义日历颜色

日历插件内各元素的颜色都是可定制的, 可以通过添加自定义样式覆盖calendar.styl中的定义来达到更好的效果.

说明

提取自Landscape-F主题, 修改后适配theme-next