【发布时间】:2023-04-08 07:57:01
【问题描述】:
Jekyll 是一个简单的、支持博客的、用于个人项目的静态站点生成器,我如何在这样的 ruby 项目中添加脚本标签。
我的 index.html 看起来像这样:
---
layout: default
---
<div class="home">
<h1 class="page-heading">Posts</h1>
<ul class="post-list">
{% for post in site.posts %}
<li>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
</li>
{% endfor %}
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>
文件夹结构也包含这样的文件和文件夹:about.md _config.yml css feed.xml _includes index.html _layouts _posts _sass _site
我正在尝试探索 jekyll 平台的静态网页。
【问题讨论】: