在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:bencentra/centrarium开源软件地址:https://github.com/bencentra/centrarium开源编程语言:CSS 65.9%开源软件介绍:CentrariumA simple yet classy theme for your Jekyll website or blog. Customizable to fit your style or brand. Built with these awesome libraries: Here's a demo. It also works on GitHub Pages. I also use it for my own website. Inspired by dirkfabisch's Mediator theme, which I previously used for my own blog, as well as Type Theme. Cover image by Chris M. Morris (flickr). FeaturesThis theme comes with a number of features, including:
InstallationIf you're just getting started with Jekyll, you can use this repository as a starting point for your own site. Just download this project and add all the files to your project. Add your blog posts to the If your site already uses Jekyll, follow these steps:
Don't forget to install Jekyll and other dependencies: # cd into project directory
cd centrarium
# install Bundler if you don't have it already
gem install bundler
# install jekyll, jekyll-archives, jekyll-sitemap, and jekyll-paginate
bundle install Stackbit DeployThis theme is ready to import into Stackbit. This theme can be deployed to Netlify and you can connect any headless CMS including Forestry, NetlifyCMS, DatoCMS or Contentful. Updating Header and Footer LinksLinks in the header and footer are auto-generated. Links will be made for all files marked Updating StylesIf you want change the CSS of the theme, you'll probably want to check out these files in the
Important VariablesHere are the important variables from
ConfigurationAll configuration options can be found in Site Settings
Build Settings
Pagination settingsSee the documentation for jekyll-paginate-v2 for more details. Archive SettingsAlthough this theme comes with a combined, categorized archive (see To change archive settings, see the jekyll-archives section of jekyll-archives:
enabled:
- categories
- tags
layout: 'archive'
permalinks:
category: '/category/:name/'
tag: '/tag/:name/' To fully disable the archive, remove the jekyll-archives section AND remove it from the gems list. NOTE: the Jekyll Archive gem is NOT included with GitHub pages! Disable the archive feature if you intend to deploy your site to GitHub pages. Here is a guide on how you can use the A sitemap is also generated using jekyll-sitemap. Syntax Highlighting SettingsInside of a post, you can enable syntax highlighting with the
You can change the HighlightJS theme in highlightjs_theme: "monokai_sublime" Disqus SettingsYou can enable Disqus comments for you site by including one config option:
If you want to disable Disqus for only a specific page, add disqus_disabled: true to the page's front matter. Google Analytics SettingsYou can enable basic Google Analytics pageview tracking by including your site's tracking ID:
Social SettingsYour personal social network settings are combined with the social sharing options. In the social section of social:
- name: Twitter # Name of the service
icon: twitter # Font Awesome icon to use (minus fa- prefix)
username: TheBenCentra # (User) Name to display in the footer link
url: https://twitter.com/TheBenCentra # URL of your profile (leave blank to not display in footer)
desc: Follow me on Twitter # Description to display as link title, etc
share: true # Include in the "Share" section of posts Social ProtocolsUsing the Open Graph Protocol or Twitter Card metadata, you can automatically set the images and text used when people share your site on Twitter or Facebook. These take a bit of setup, but are well worth it. The relevant fields are at the end of the Also there is another protocol, the Open Source protocol, for saying where your site is hosted if the source is open. This helps develops more easily see your code if they are interested, or if they have issues. For more, see http://osprotocol.com. Category DescriptionsYou can enhance the # Category descriptions (for archive pages)
descriptions:
- cat: jekyll
desc: "Posts describing Jekyll setup techniques." Custom Page-Specific JavascriptYou can add page-specific javascript files by adding them to the top-level # Custom js (for individual pages)
---
layout: post
title: "Dummy Post"
date: 2015-04-18 08:43:59
author: Ben Centra
categories: Dummy
custom_js:
- Popmotion
- Vue
--- The $ ls js/
Popmotion.js Vue.js ContributingWant to help make this theme even better? Contributions from the community are welcome! Please follow these steps:
LicenseMIT. See LICENSE.MD. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论