nikola: static site generator

Nikola: 基本用法

Nikola 是一个 python 写的静态博客生成器。参见官网getnikola 。主要的特色是原生支持 orgmode 和 ipynb 格式作为博客,看起来很方便。

备查资料

时间的格式

date +"%F %T UTC%:z"

博客模板

tags 用逗号分隔, category 被看做一个词。

orgmode

#+BEGIN_COMMENT
.. title: nikola: static site generator
.. slug: nikola-static-site-generator
.. date: 2020-12-19 15:19:12 UTC+08:00
.. tags: python, blog
.. category: tools
.. link: 
.. description: 
.. type: text
.. has_math: true

#+END_COMMENT

blog here.

ipynb

   "metadata": {
     "nikola": {
      "title": "Power Method for Eigenvalues",
      "slug": "power-method-for-eigenvalues",
      "date": "2020-12-19 15:20:52 UTC+08:00",
      "tags": "Numerical Algorithm,Linear Algebra",
      "category": "Algorithm",
      "link": "",
      "description": "",
      "type": "text"
     }
   }

评论

Comments powered by Disqus