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

jekyll-polymer

A material theme for Jekyll built with Polymer
授权协议 MIT License
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 邹星火
操作系统 未知
开源组织
适用人群 未知
 软件概览

DEMO

A Jekyll theme built with Google's Polymer library and following the material design specifications. (Currently, this uses Polymer 1.x, but I have plans to update to 2.x.)

There are a few custom web components included designed to match Material design.

I created this theme because I couldn't figure out how to set up a Jekyll project to play nicely with Polymer, and because I didn't find any Jekyll blog themes available that used Polymer or followed Google's material design specifications.

Features

  • Full-text search with simple-jekyll-search
  • Paginated home page
  • Support for featured post images (appear on cards in previews)
  • Threaded comments with Disqus
  • Google Analytics integration
  • One-command deployment to Github Pages
  • Tagged posts with archive by tag
  • Authorship with Gravatar icons

Installation instructions

(Instructions are based off of those for the Polymer Starter Kit.)

  • Clone this repository or download it as a .zip file and unzip.
  • Install jekyll (and any other Ruby gems) with bundle install. (Prerequisite: must have Ruby installed; in Ubuntu/Debian, use sudo apt-get install ruby-dev. You may also have to install bundler with gem install bundler.)
  • From the project root folder, run npm install -g gulp bower && npm install && bower install. (See the old Polymer Starter Kit installation instructions for more details or troubleshooting.)

Structure

  • app/: All Jekyll content is here. (This is where all the editing happens)
    • bower_components: Content installed via bower ends up here
    • elements/: Custom web components using Polymer
    • images/: User images
    • media/: Other user content (PDFs, videos, etc.) for final product
    • scripts/: Javascript files
    • styles/: Custom CSS
    • _data/authors.yml: List of authors for posts and pages
  • dist/: Built output from Gulp. (Use to publish static content)
  • node_modules: Content installed via npm goes here

Deployment

Serve/watch

gulp serve: Starts a jekyll serve process on the default port (4000 or whatever is specified in _config.yml).

gulp serve --port 6666: Start serving on port 6666

gulp serve:dist: Build as below, and serve the result from the dist/ directory. (Useful for testing changes to the gulpfile. Currently does not work with a Jekyll baseurl configured.)

Build and vulcanize

gulp: Builds the files with jekyll, vulcanizes, minimizes, and puts the result in the dist/ directory. (This can be slow.)

Deploy

gulp deploy-gh-pages: Deploy the current build to the gh-pages branch of your repository.

gulp build-deploy-gh-pages: Rebuild and then deploy. (Equivalent to gulp && gulp deploy-gh-pages)

Future Improvements:

  • Improve gulp build
    • Minimize JS, CSS, HTML
  • Search
    • Escape toggles search show
    • arrow keys/tab moves focus on search results
    • better animation for search bar leaving/entering
  • Navigation drawer
    • Change hover effect on drawer items (see Google Music)
    • Make selected/active items in drawer colored
  • Page transition animations
  • Give option of setting card-colorbar color
  • Add ripple effect to nav drawer menu items
  • Pagination:
    • Maybe replace with actual buttons
    • hover effects like buttons?
    • Handle if it gets too wide for screen? (limit number of page links)
  • Tags
    • Allow filtering by tag (have list of all tags)
  • Add material box or lightbox for images
  • Add 'source' option for YAML frontmatter
  • increase spacing between list items
  • Fix things like header-panel to utilize updates to polymer paper elements

Known issues

  • JS and HTML aren't minimized
  • Too much space on cards between end of excerpt and read more button

License

MIT License

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

  • 中文网站 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

  • jekyll-admin 是一个 jekyll 插件,为用户提供了传统 CMS(内容管理系统)风格的图形化界面来创作内容和管理 jekyll 网站。 该项目分为两部分。基于 Ruby 的 HTTP API 处理 jekyll 和文件系统的操作部分,以及在这个 API 基础上的基于 JavaScript 的前端部分。 安装: 就像安装其他插件一样,请参阅 jekyll 文档的插件安装部分安装 jek

  • Jekyll的增强版,使用Markdown来写日志。 Jekyll采用静态文件方式管理,不需要数据库即可支持一个独立博客站点,在github-pages平台上被普遍采用。Jekyll-Bootstrap在Jekyll基础上,集成了twitter-bootstrap界面风格和一些实用的插件,并且易于扩展。

  • Jekyll Docker Jekyll Docker is a software image that has Jekyll and many of its dependencies ready to use for you in an encapsulated format. It includes a default set of gems, different image types wi

  • jekyll-katex This is a Jekyll plugin for performing compile-time math rendering via the KaTeX library.KaTeX is a library for rending math on the web using LaTeX, similar to MathJax. KaTeX differs from

  • �� Jekyll Spaceship �� Jekyll plugin for Astronauts. Install | Config | Usage | Credits | License Built with ❤︎ by jeffreytse and contributors Spaceship is a minimalistic, powerful and extremely custo

  • reveal-jekyll Transforms Markdown files into presentation slides using reveal.js and Jekyll. The theme is based on Solarized Colors (by Ethan Schoonover) containing a light and a dark theme. reveal-je

相关阅读

相关文章

相关问答

相关文档