Zine - 一个帮助每个人构建一份属于自己的杂志的开源软件。
cargo install zine
运行zine new your-zine-site
,你会得到以下目录:
$ tree your-zine-site
your-zine-site
├── content # The content directory your seasons located
│ └── season-1 # The first season directory
│ ├── 1-first.md # The first markdown article in this season
│ └── zine.toml # The season Zine config file
└── zine.toml # The root Zine config file of this project
2 directories, 3 files
运行zine serve
以在本地计算机上预览你的 zine 站点:
$ cd your-zine-site
$ zine serve
███████╗██╗███╗ ██╗███████╗
╚══███╔╝██║████╗ ██║██╔════╝
███╔╝ ██║██╔██╗ ██║█████╗
███╔╝ ██║██║╚██╗██║██╔══╝
███████╗██║██║ ╚████║███████╗
╚══════╝╚═╝╚═╝ ╚═══╝╚══════╝
listening on http://127.0.0.1:3000
运行zine build
将你的 zine 网站构建为静态网站:
$ cd your-zine-site
$ zine build
Build success! The build directory is `build`.
一个 Zine 项目主要由两个类型的zine.toml
文件和一堆 markdown 文件组成。
项目 zine.toml
项目的 zine.toml
文件描述了你的站点元数据和你所有的杂志季刊信息。
[site] url = "https://your-domain.com" name = "Your Zine Site Name" description = "" logo = "path/to/favicon" # the locale to localize your Zine site. default to "en". # Zine has builtin supported locales, please check the `locales` directory of this repo. locale = "en" # the menu tabs menu = [ { name = "About", url = "/about" }, { name = "Blog", url = "/blog" }, ] # You can customize some theme elements in this section. # All of those elements are optional. [theme] # the primary color primary-color = "#abcdef" secondary-color = "#fff" # the main text color main-color = "#000" # the link color in article content link-color = "#e07312" # the background image background-image = "/static/background.png" # you can customize your footer here footer-template = "templates/footer.html" # Season 1 [[season]] # the slug of this season: https://your-domain.com/s1 slug = "s1" # the number of this season number = 1 # season title title = "Season 1" # the directory path to parse this season, you should put # your markdown files in this directory path = "content/season-1" # the introduction of this season. optional. intro = "content/season-1/intro.md" # Season 2 [[season]] slug = "s2" number = 2 title = "Season 2" path = "content/season-2"
季刊 zine.toml
季刊 zine.toml
档案列出了您本季的所有文章。
[[article]] # the slug of this article. E.g: https://your-domain.com/s1/1 slug = "1" # the markdown file path of this article file = "1-first.md" # the title of this article title = "First article" # the optional author of this article author = "" # the cover of this article cover = "" # the publish date of this article pub_date = "2022-03-20" # whether to publish this article or not publish = true # whether mark this article as a featured article. # the featured articles will be shown on the home page featured = true # Another article [[article]]
`pages` 目录下的每个 markdown 文件都将被渲染为一个页面。就像这样直观:
$ tree pages
pages
├── about.md # will be rendered as https://your-domain.com/about
├── blog
│ └── first.md # will be rendered as https://your-domain.com/blog/first
├── blog.md # will be rendered as https://your-domain.com/blog
└── faq.md # will be rendered as https://your-domain.com/faq
1 directory, 4 files
您可以为一篇文章添加任意数量的评论。
You cool article content. +++ [[comment]] author = "Bob" bio = "A developer" content = "The cool comment" [[comment]] author = "Alice" bio = "" content = "Another cool comment" +++
Zine 提供了一些高级代码块来帮助您撰写文章。
```urlpreview
https://github.com/zineland/zine
```
1、目标用户群:热爱写作、记录生活,文字工作者 2、该产品解决了用户哪些需求? (1)随时记录文字 (2)很快完成排版美化并分享 (3)获取其他美好文字或者新鲜事儿 3、该产品用怎样的流程、逻辑实现用户需求? (1)用户可以创建笔记,进行简洁美观的排版,具备插入图片、语音;提供多种文章模板,编辑功能易操作但不是很强大 (2)写
市场环境 (1)该类产品的市场生成状况如何,收益比例如何然后再决定是否加入 属于工具类产品,笔记类的工具产品在市场上很多:印象笔记、为知笔记、石墨文档、Zine等等。 这些产品基本上已经覆盖了笔记这一类工具所衍生出来的各种需求 但是工具类产品的通病就是留存率低,用完即走,用户更换成本低,不好用马上换掉 所以就必需:1、
Hacking Magazine (IN)secure http://www.net-security.org/insecuremag.php PHRACK http://www.phrack.com/ Hakin9 http://hakin9.org/ 2600 http://www.2600.com/ ClubHACK http://chmag.in/ HITB h
ARTteam zine: http://tinyurl.com/mmtz6 unpacking ASprotect, ring0 loader, reversing protocols i inne K-1ine zine: http://www.nettwerked.net/K-1ine_49.txt Phreak, Hack, but don't Crack. Uniformed zine:
本文向大家介绍个人写的PHP验证码生成类分享,包括了个人写的PHP验证码生成类分享的使用技巧和注意事项,需要的朋友参考一下 此验证码类直接拿去就可以用,也可以参考! 其中类成员codestr是生成的验证码字符串:
我读过其他关于龙目岛的构建器和继承的问题,但没有一个解决方案奏效。使用Lombok版本1.18.4和Java11。 和实际的实现: 我希望龙目岛 识别父类所需的字段。 在生成的子类生成器中包含这些字段。 问题是,IntelliJ突出显示了注释,并带有以下错误: Lombok需要基类中的默认构造函数。 如果从中删除,则会出现以下错误: 基类中没有可用的默认构造函数。 因此,我从中删除了,并添加了一个
问题内容: 我在这里浏览了python日志记录类的教程,没有发现任何东西可以让我为同一输出制作多个不同级别的日志。最后,我想拥有三个日志:( 调试级别) (信息级别) (错误级别) 有没有一种方法可以在一个脚本中为同一输入生成多个日志文件? <------------- UPDATE#1 --------------------------> 因此,在实现@robert的建议时,我现在有一个小问题
我试图实现log4j。我用log4j创建了一个示例java程序。 下面是我的log4j。属性: 我正在控制台屏幕上获取输出。但是没有生成日志文件。我必须做什么才能生成日志文件,谢谢
我正在我的应用程序中使用 ESAPI 记录器。Logger logger= ESAPI.getLogger(ABC.class) 在ABC课堂上。java,我们使用INFO级别打印日志。根据我们所知的定义,Info接受: 两个参数:信息(Logger.EventType type, java.lang.字符串消息) 三个参数:信息(Logger.EventType type, java.lang.
问候。