当前位置: 首页 > 软件库 > Web应用开发 > >

jekyll-netlify-boilerplate

授权协议 MIT License
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 郑旭
操作系统 未知
开源组织
适用人群 未知
 软件概览

Jekyll Netlify Boilerplate

Note: Check out my Eleventy Netlify Boilerplate. It does pretty much the same as this project but uses the Eleventy static site generator. It's fast, flexible and doesn't require Ruby.

A really simple Jekyll template for creating a fast, static website on Netlify witha continuous deployment workflow.

�� This project is featured on Netlify's official template showcase and blog: The top 10 Static Site Generators to watch in 2018 ��

  • Minimal styling, ready to make your own
  • Example blog posts, pages and contact form
  • Responsive CSS Grid layout with fallbacks for older browsers
  • Continuous Deployment workflow via Netlify and Github
  • Netlify CMS for managing content
  • Netlify Identity for authenticating users
  • Netlify Forms for processing your static HTML forms with reCAPTCHA
  • Optional Netlify _redirects and _headers files ready to use
  • Jekyll SASS pipeline
  • Minified HTML and CSS

Based on Netlify's Jekyll + Netlify CMS starter template, head over there for more details on deployment and build settings or to get help with setting up Netlify.

For help with templates, local development and other Jekyll related stuff, check out the excellent Jekyll Docs.

View Demo

Performance

You can test the demo site's TTFB (Time To First Byte) at testmysite.io

Getting started

Simply click the deploy button to get your own copy of the repository deployed to Netlify:

This will setup everything needed for running the CMS:

  • A new repository in your GitHub account with the code
  • Full Continuous Deployment to Netlify's global CDN network
  • Control users and access with Netlify Identity
  • Manage content with Netlify CMS

Setup authentication

After deploying this project, Netlify Identity will add you as a CMS user andwill email you an invite. It is not necessary to accept this invite if you wishto use anOAuth provider(e.g. Github) to manage authentication for your CMS.It is recommended to use this method of authentication as it removes the needfor an email & password to log in to the CMS and is generally more secure. Youwill need to add an OAuth provider in your Netlify app settings under"Settings" > "Identity" > "External providers".

Next, navigate to /admin on your site, choose your OAuth provider from thelogin box and you should then be logged into your CMS.

Now you're all set, and you can start editing content!

Note: if you switch the repo that was created to private, you'll need to regenerate your token,as the token generated using the deploy to Netlify button can only access public repositories. Toregenerate your token, head to "Settings" in your Netlify site dashboard, go to the "Identity"section, then scroll to "Services" where you'll see an "Edit settings" button. Click that and you'llsee a text link to "Generate access token in GitHub".

Local Development

Clone this repository and run:

bundle install
bundle exec jekyll server --watch

In case you don't want to install ruby-bundler you can use docker:

docker-compose up

Jekyll will watch your project folder for changes.

Now navigate to localhost:4000 to preview the site, andlocalhost:4000/admin to log into the CMS.

Bug reports, feature requests, etc

This is an ongoing project and I welcome contributions. Feel free to submit a PR.

If you need any help with setting up Netlify CMS, you can reach out to the Netlify team in the Netlify CMS Gitter.

  • netlify 后台:https://app.netlify.com/ netlify config 配置文档:https://www.netlifycms.org/docs/intro/ Github OAuth网址:https://github.com/settings/developers 示例:https://blog.creat.kim/admin

 相关资料
  • 静态站点生成器。为非技术人员提供一种简单的方法,来编辑和添加内容至静态站点。 运行: Netlify CMS 是一个单页面的应用程序。它提供了一个干净的用户界面来编辑存储在 Git 仓库中的内容。 可以设置一个 YAML 配置来描述网站的内容模型,然后通过调整CMS布局来适应网站。 当用户浏览时,/admin会提示登录,一旦通过验证,就可以创建新内容或编辑现有内容。 安装和配置: Netlify

  • 部署到 Netlify 是一个低成本选项,可以快速在线获取 statically generated 的Nuxt.js网站。 该过程的核心在部署期间利用 nuxt generate 命令将Nuxt.js应用程序的静态版本构建到 dist 目录中。 然后将此目录的内容部署到生产URL。 入门 按 Netlify 仪表板上的 "New site from Git" 按钮。使用存储库主机进行身份验证,选

  • 我已经完成了npm安装netlify-cli-g,这是成功安装。我得到以下回应: 已弃用的core-js@2.6.11:core-js@ netlify-cli@2.36.0安装后C:\Users\soyebp\AppData\Roaming\npm\node\u modules\netlify cli节点/脚本/后安装。js 成功!Netlify CLI已安装! 您的设备现在配置为使用Netli

  • Jekyll 是一个简单的免费的Blog生成工具,类似WordPress。但是和WordPress又有很大的不同,原因是jekyll只是一个生成静态网页的工具,不需要数据库支持。但是可以配合第三方服务,例如discuz。最关键的是jekyll可以免费部署在Github上,而且可以绑定自己的域名。 快速安装指令: gem install jekylljekyll new my-awesome-sit

  • Jekyll-webpack-boilerplate A Jekyll boilerplate supercharged with Webpack to build modern performant websites (including Progressive Web Apps).Read more about how this boilerplate has been built: http

  • 中文网站 jekyllcn 快速开始 ~ $ gem install jekyll bundler ~ $ jekyll new my-awesome-site ~ $ cd my-awesome-site ~/my-awesome-site $ bundle install ~/my-awesome-site $ bundle exec jekyll serve # => 打开浏览器 http