futurice/metalsmith-prismic-template được TopGit xếp vào nhóm dự án mã nguồn mở, với 95 sao trên GitHub, viết chủ yếu bằng JavaScript. Template for static site generation with prismic.io and metalsmith
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
An opinionated, bare bones template for static site generation from prismic.io using metalsmith and deploying to Amazon S3. Read more from the blog post CMS done right, vol 3.
This template includes
Documentation on how to use this template and best practices
Handlebars templates
Sass styling
Dependency on metalsmith-prismic-server for automatically building and deploying changes from Prismic.io
Provides a webhook that Prismic.io can trigger to build and deploy on CMS content changes
Provides a server endpoint to preview unpublished content in Prismic.io
Provides a live reloading development mode that fetches Prismic.io content
Deployment to AWS S3
Prismic.io example content
Example content in API browser
Leave the query parameter empty to see all content
Generated example site deployed to S3
Only for Futurice employees: Example content in Prismic.io
Changes to Prismic content can be previewed here with the eye icon
How to use this template
Install Node.js.
Fork or duplicate this template repository.
Run npm install
Copy .env.tmpl and rename to .env (this will be ignored by git)
Optional: Run npm run dev to test this template with example data
Set up Prismic.io
Create a repository
Setup API & Security in Prismic.io settings
Create a new app at Settings > API & Security > Create a new Application. No need to provide a callback URL.
Put the generated master access token in .envPRISMIC_TOKEN={PRISMIC_API_ACCESS_TOKEN}
See prismic-custom-types/ for this example repositories custom type json files, that can be copied to your Prismic repository
Create your own content
Go to the "Everything" tab and "Write something"
This repositories example content and their tags can be seen from the API browser by leaving the query parameter empty
Setup Amazon S3
Create an account
Create IAM tokens
Create S3 bucket
Add tokens to .env
AWS_ACCESS_KEY_ID={AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY={AWS_SECRET_ACCESS_KEY}
S3_BUCKET={S3_BUCKET_NAME}
S3_REGION={S3_END_POINT}, e.g. 'eu-west-1'
Setup a new heroku app
Set config variables
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
PRISMIC_SECRET
PRISMIC_TOKEN
PRISMIC_URL
Configure Github to deploy to heroku.
Optionally put Travis CI in the middle if you aren't setting up separate staging and production environments and want some extra confidence that things build correctly.
Adjust the template to your needs (sections that need to be adjusted are marked with *TEMPLATE*)
Adjust the metalsmith plugins in server.js
Configure the metalsmith-prismic linkResolver in server.js that generates prismic links and paths of prismic collections
Adjust the docs/prismic-conventions.md
Adjust the src/, /layouts and partials/ directories' to match your content to Prismic
Run npm run dev. The development mode has live reloading but needs to be restarted manually if content in Prismic.io changes.
Directory structure
builds/: Output directory for built sites
layouts/: Page layouts
partials/: Embeddable page elements
plugins/: Custom metalsmith plugins
prismic-custom-types/: Backups of Prismic custom types
src/: Source files which will be transformed to output
utils/: Utility functions
server.js: Server and build logic with metalsmith-plugins
Alternative deployments
Azure Storage
Replace metalsmith-s3 with metalsmith-azure-storage in package.json and server.js
Follow instructions in documentation on how to configure the Azure Storeage plugin
License and Credits
Metalsmith-prismic-template is licensed with MIT License. It was developed by Futurice in co-operation with our customers Finavia and Clear Funding.
Đọc thêm về futurice/metalsmith-prismic-template ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/futurice/metalsmith-prismic-template là nguồn chính thức.
futurice/metalsmith-prismic-template có bao nhiêu sao?
futurice/metalsmith-prismic-template có 95 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/futurice/metalsmith-prismic-template. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
futurice/metalsmith-prismic-template có phải mã nguồn mở không?
Có — futurice/metalsmith-prismic-template phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/futurice/metalsmith-prismic-template.
futurice/metalsmith-prismic-template còn đang phát triển không?
Commit gần nhất trên futurice/metalsmith-prismic-template là 10.4 năm trước (theo timestamp GitHub). Repo có 12 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
futurice/metalsmith-prismic-template dùng license gì?
futurice/metalsmith-prismic-template phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
futurice/metalsmith-prismic-template là gì?
futurice/metalsmith-prismic-template (futurice/metalsmith-prismic-template) là dự án JavaScript trên GitHub. Theo mô tả gốc: Template for static site generation with prismic.io and metalsmith
futurice/metalsmith-prismic-template viết bằng ngôn ngữ gì?
futurice/metalsmith-prismic-template chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về metalsmith-prismic-template?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về metalsmith-prismic-template.