上下文:可扩展的多媒体静态站点生成器

时间:2021-02-09 06:36:08
【文件属性】:
文件名称:上下文:可扩展的多媒体静态站点生成器
文件大小:63KB
文件格式:ZIP
更新时间:2021-02-09 06:36:08
Python 在上下文中 可扩展的多媒体静态站点生成器 背景 大多数现有的静态站点生成器在处理文本内容方面做得很好,但是将媒体视为事后才想到的。 InContext处理Markdown以及生成器,并添加了对照片和视频的本机支持。 添加对其他媒体类型的支持仅需添加新的处理程序即可。 安装 克隆存储库: git clone git@github.com:inseven/incontext.git 将InContext添加到您的路径: export PATH= $PATH :/path/to/incontext 入门 incontext new my-new-site cd my-new-site incontext build 前事 InContext具有一些特殊的Front Matter属性。 包括 按照约定,收集模板应使用include属性来确定要包含的文档类别。 例如, include :
【文件预览】:
incontext-main
----docker()
--------Dockerfile(792B)
--------requirements.txt(198B)
--------Pipfile(360B)
--------install_imagemagick.sh(621B)
----service()
--------config.py(1KB)
--------website.py(19KB)
--------store.py(7KB)
--------extensions.py(4KB)
----.github()
--------workflows()
----.gitmodules(98B)
----converters.py(5KB)
----utils.py(6KB)
----incontext(5KB)
----tracker.py(2KB)
----plugins()
--------manage.py(7KB)
--------commands()
--------handlers()
--------context_functions.py(3KB)
----LICENSE(1KB)
----paths.py(1KB)
----README.md(2KB)
----incontext.py(12KB)
----tests()
--------test_commands.py(8KB)
--------test_exif.py(2KB)
--------test_schema.py(4KB)
--------test_plugins.py(2KB)
--------data()
--------test_utils.py(5KB)
--------test_gallery.py(5KB)
--------common.py(3KB)
----schema.py(3KB)
----.gitignore(68B)

网友评论