博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用Nikola改造我的项目页面
阅读量:2518 次
发布时间:2019-05-11

本文共 2013 字,大约阅读时间需要 6 分钟。

A week ago, I was inspired to produce a new for myself. The previous one was a trainwreck with a lot of hacks. Also hosted on GitHub Pages for some reason.

一周前,我受到启发为自己制作了一个新的 。 上一个是一个有很多骇人听闻的火车残骸。 由于某种原因也托管在GitHub Pages上。

So, considering I’m so invested in already, I produced the and also made it publicly available. The plugin produces two files, projects/index.html and projects/projects.json, and also enforces a specific framework for the stories used for the individual projects, because all the metadata are taken from special meta fields.

因此,考虑到我已经对了如此大量的投资,我制作了并将其公开发布。 该插件产生两个文件,即projects / index.htmlprojects / projects.json ,并且还为用于各个项目的故事实施了一个特定的框架,因为所有元数据均来自特殊的元字段。

In Nikola, post metadata is completely arbitrary (in fact, that’s my fault; I back in February 2013). You can put anything you want, and Nikola will let any plugin and template use the information in any way it likes.

在Nikola中,发布元数据完全是任意的(实际上,这是我的错;我在2013年2月 )。 您可以随意放置任何内容,Nikola将允许任何插件和模板以其喜欢的任何方式使用信息。

And that is basically the gist of the projectpages plugin. Using some specific , the plugin produces all the files. It also provides ready-made templates for the story pages (though the default templates are designed to fit my site only).

这基本上就是projectpages插件的要旨。 使用某些特定的 ,插件将生成所有文件。 它还为故事页面提供了现成的模板(尽管默认模板仅设计为适合我的网站)。

This plugin is basically a special index page generator. It takes all the stories in the designated projects directory, looks at the metadata, and lists them in a nice format (slider of featured projects + a list of everything else that is not hidden). Everything automated and done for you, as is always with Nikola — which values simplicity and ease of use.

这个插件基本上是一个特殊的索引页面生成器。 它将所有故事放在指定的项目目录中,查看元数据,并以一种不错的格式列出它们(特色项目的滑块+所有未隐藏的所有内容的列表)。 与Nikola一样,一切工作都是自动完成并为您完成的,它重视简单性和易用性。

The result: a pretty . And some good OSS work done.

结果:一个漂亮的 。 并完成了一些出色的OSS工作。

PS. I just underwent a move to and I love them. Moreover, this blog is proudly HTTPS only as of yesterday.

PS。 我刚刚搬到 ,我爱他们。 此外,该博客自昨天起仅是HTTPS。

翻译自:

转载地址:http://csqwd.baihongyu.com/

你可能感兴趣的文章
C语言实现UrlEncode编码/UrlDecode解码
查看>>
返回用户提交的图像工具类
查看>>
树链剖分 BZOJ3589 动态树
查看>>
挑战程序设计竞赛 P131 区间DP
查看>>
【例9.9】最长公共子序列
查看>>
NSFileManager打印目录下的文件的函数
查看>>
Rails--bundle exec rake db:migrate
查看>>
深度优先搜索 之 CODE[VS] 1116 四色问题
查看>>
浏览器渲染过程
查看>>
js遍历Object所有属性
查看>>
再也不学AJAX了!(三)跨域获取资源 ③ - WebSocket & postMessage
查看>>
pycharm设置python文件颜色
查看>>
不换行输出的两种方式
查看>>
贵在坚持不懈
查看>>
hdu 1251 统计难题
查看>>
java中关于String 类型数据 的存储方式
查看>>
javascript中的with语句
查看>>
常用设计模式:装饰者模式
查看>>
python接口自动化--get请求
查看>>
ajax 上传文件
查看>>