Jekyll类别,如何创建枚举

时间:2017-10-07 22:19:14

标签: enums jekyll

如何创建ENUM /或像jekyll这样的东西,以便您可以控制类别。

---
layout   : default
comments : true
title         : 'Servindo sites estáticos com Jekyll'
subtitle      : 'Entenda como o Jekyll funciona e como ele pode te ajudar a fazer websites estáticos.'
categories  : [jekyll]
---

1 个答案:

答案 0 :(得分:0)

您可以拥有一个YAML列表($("#submit").on("click", function(e){ e.preventDefault(); //prevent from default behavior var email = $("#emailfield").val(); var chat_id = $("#main-mailing-list [name='chat_id']").val(); var data = { email: email, chat_id: chat_id }; $.ajax({ method: "POST", url: "https://api.telegram.org/botXXXXXXXX/sendMessage", data: data }).done(function(response){ console.log(response) }).fail(function(error){ console.error(error) }); }); )或一个以空格分隔的字符串:正如他们在jekyll文档中解释的那样: http://jekyllrb.com/docs/frontmatter/index.html#predefined-variables-for-posts