eleventy notist example
1.0.0
使用 Notist 的 JSON feed 在您自己的预渲染站点上填充事件列表的示例。
在这里,我们使用名为 Eleventy 的静态站点生成器预渲染站点,并提供它在给定 JSON feed 中找到的内容。
您只需单击下面的按钮,然后提供合适的 JSON URL 的 URL(或在探索时将其保留为默认值),即可获取此站点的您自己的版本。
公平的问题。单击该按钮后,Netlify 将请求您允许将此存储库克隆到您自己的 GitHub 帐户中,然后在链接到该存储库的 Netlify 中为您创建一个新站点。
它还会要求在构建时获取 Notist 提要(从 Notist 获取您的提要,否则它将默认为我的提要)
然后,它将为您构建和部署一个新站点,并完成所有配置的托管和持续部署。
整个过程应该不到一分钟!
该网站是用 Eleventy 构建的,并且有很少的先决条件:
# clone this repository (or do that via the button above)
git clone [email protected]:philhawksworth/eleventy-notist-example.git
# move into the working directory and install dependencies
cd eleventy-notist-example
yarn
# generate and serve the site while watching for changes
yarn start
# build the site
yarn run build