我正在使用markdown 文件的YAML标题向博客帖子添加excerpt
个变量,我可以在其他地方使用.在其中一篇摘录中,我通过标记链接标记引用了之前的一篇博客文章,我使用liquid template数据变量{{ site.url }}
来代替网站的基本URL.
所以我有点像(稍微修剪一下)
---
title: "Decluttering ordination plots in vegan part 2: orditorp()"
status: publish
layout: post
published: true
tags:
- tag1
- tag2
excerpt: In the [earlier post in this series]({{ site.url }}/2013/01/12/
decluttering-ordination-plots-in-vegan-part-1-ordilabel/ "Decluttering ordination
plots in vegan part 1: ordilabel()") I looked at the `ordilabel()` function
----
然而,jekyll和Maruku md解析器不喜欢这样,这让我怀疑不能在YAML头中使用 liquid 标记.
在jekyll处理的YAML页眉中可以使用 liquid 标记吗?
- 如果是,那么我在所示示例中做错了什么?
- If it is not allowed, who else can I achieve what I intended? I am currently developing my site on my laptop 和 don't want to hard code the base URL as it'll have to change when I am ready to deploy.
我从Maruku那里得到的错误是:
| Maruku tells you:
+---------------------------------------------------------------------------
| Must quote title
| ---------------------------------------------------------------------------
| the [earlier post in this series]({{ site.url }}/2013/01/12/decluttering-o
| --------------------------------------|-------------------------------------
| +--- Byte 40
和
| Maruku tells you:
+---------------------------------------------------------------------------
| Unclosed link
| ---------------------------------------------------------------------------
| the [earlier post in this series]({{ site.url }}/2013/01/12/decluttering-or
| --------------------------------------|-------------------------------------
| +--- Byte 41
和
| Maruku tells you:
+---------------------------------------------------------------------------
| No closing ): I will not create the link for ["earlier post in this series"]
| ---------------------------------------------------------------------------
| the [earlier post in this series]({{ site.url }}/2013/01/12/decluttering-or
| --------------------------------------|-------------------------------------
| +--- Byte 41