问题标签 [lektor]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
macos - Lektor 在 MacBookPro OS X 10.6.8 上安装失败
我正在尝试在装有 OS X 10.6.8 的 MacbookPro 上安装 Lektor。
Imagemagick 和 Python2.7 已经安装。
当我运行安装命令时:
构建过程一直运行,直到在构建“_watchdog_fsevents”扩展时出错。错误是:
cc1:错误:-Werror=unused-command-line-argument-hard-error-in-future:没有选项 -Wunused-command-line-argument-hard-error-in-future
我已将错误之前的输出剪切并粘贴到以下代码部分中。
我应该如何克服这个?
python - Lektor 的插件开发
我正在尝试开发一个 reStructuredText 插件并犯了一些基本错误。
我的插件对象如下所示:
现在:on_setup_env
调用该函数。请注意,我正在替换 markdown dict 条目(现在)。但是当我运行 lektor 时,会调用原始的 Markdown 类,而不是我的 RST 类。
markdown - 在 lektor 中支持 RST 标记吗?
我检查了CMS。该程序看起来非常好。
而不是降价,我想使用相当重组的文本。
是否也支持 RST 标记?
markdown - 在 lektor 页面中嵌入媒体内容?
我目前正在使用 Nikola 作为页面生成器。
但是根据页面范围和用户,Lektor 对最终用户来说似乎更容易和更精简。这非常适合我计划的新页面。
Nikola 还嵌入了媒体(youtube、vimeo、soundcloud 等) https://getnikola.com/handbook.html#restructuredtext-extensions
Lektor 如何提供这样的功能?
lektor - Lektor CMS 的反向代理
Lektor 服务器在 localhost 的 5000 端口上运行。我想通过http://myhost.org/lektor的 Apache URL 访问它。因此,我尝试了 httpd 配置片段
欢迎页面的 HTML 被找到,但那里引用的静态页面(例如http://myhost.org/static/style.css)没有找到。如何让 Lektor 知道更改后的 URL?
lektor - 我的语言切换器不仅在博客页面上工作
我已经编写了如下的语言切换器。
它可以从/
或从页面工作,但即使页面可用/blog/<blog-post>
,它也不能从页面工作。/blog
/en/blog
它是错误还是我应该修复一些东西?
以下是我的网站语言切换器,位于页面右上角。
- 工作(顶级页面): http: //www.socoka.com/
- 不工作(博客页面): http: //www.socoka.com/blog/
lektor - Lektor:流场没有管理员
我不知道如何让流场在管理员中工作,
我希望显示的示例显示在https://raw.githubusercontent.com/lektor/lektor-assets/master/screenshots/admin.png 然后单击 localhost:5000/admin/root/edit 并获取http: //i.imgur.com/EPCrBRC.png
我觉得我做错了一些简单的事情。但是我尝试过将其缩减为基本的:-
python - Lektor Pagination - TemplateSyntaxError:遇到未知标签“endblock”
使用 Lektor,我创建了一个模型book
作为模型的子books
模型(类似于blog-post
&blog
模型)。
/books/
页面正在正确生成,底部有分页。当我转到第二页时,它抛出了这个奇怪的错误。
这是books.html
我没有{% endblock %}
book.html 的第 13 行,如回溯中所示。
python - Lektor CMS 如何获取模型的相关对象而不是普通列表?
我正在为我的博客使用Lektor CMS。我想实现docs中所述的类别功能。我有一个blog-post
带有categories
字段的模型:
如您所见,我使用的是俄语,因此类别名称可能Кодинг
和 slug(目录名称)可能是Coding
.
问题是,当我访问博客文章的类别时,我得到的是普通列表:[u'Coding']
而不是对象列表,我可以用它来输出俄语名称并生成英文 url,比如/blog/category/coding
.
我希望能够得到这样的html:
但它不起作用。我怎样才能解决这个问题?