在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ColeTownsend/Balzac-for-Jekyll开源软件地址:https://github.com/ColeTownsend/Balzac-for-Jekyll开源编程语言:CSS 57.7%开源软件介绍:BalzacThis is forked from minimal mistakes. I needed some type of framework to build off as I have no experience with Jekyll. Michael set up an awesome dev environment for this which really helped speed up my progress. He also already wrote up an incredibly comprehensive readme.md so I basically copied all of it and replaced what was necessary. The design itself is my own and I cannot let you sell this or tweak the design for resale, unless I you contact me. If you'd like give me credit somewhere on your blog or tweet a shout out to @twnsndco, that would be pretty sweet. If you feel like donating — Give it a thought. Features:
Basic Setup
Preview the Theme======= Preview the Theme balzac-for-jekyll/
├── _includes
| ├── footer.html //site footer
| ├── head.html //site head
| ├── head-dark.html //dark site head for light pages
├── _layouts
| ├── home.html //homepage layout
| ├── page.html //page layout
| ├── post-index.html //post listing layout
| └── post.html //post layout
| ├── post-no-feature.html //feature image-less post layout
├── _posts
├── assets
| ├── css //preprocessed less styles. good idea to minify
| ├── img //images and graphics used in css and js
| ├── js
| | ├── main.js //jQuery plugins and settings
| | └── vendor //all 3rd party scripts
| └── sass
├── images //images for posts and pages
├── about.md //about page
├── articles.md //lists all posts from latest to oldest
└── index.md //homepage. lists 5 most recent posts Customization_config.ymlMost of the variables found here are used in the .html files found in Owner/Author InformationChange your name, bio, Twitter url, email, Dribbble URL, etc. Top Navigation LinksEdit page/post titles and URLs to include in the site's navigation. For external links add # sample top navigation links
links:
- title: About Page
url: /about
- title: Other Page
url: /other-page
- title: External Page
url: http://coletownsend.com
external: true Other StuffThe rest is just your average Jekyll config settings. Nothing too crazy here... _includesFor the most part you can leave these as is since the author/owner details are pulled from Adding Posts and PagesThere are two main content layouts: Feature ImagesA good rule of thumb is to keep feature images nice and wide so you don't push the body text too far down. An image cropped around around 1024 x 256 pixels will keep file size down with an acceptable resolution for most devices. image:
# local image
feature: feature-image-filename.jpg
# link image
feature: "http(s)://image.domain.com/feature-image-filename.jpg" This makes the assumption that the feature image is in the images folder unless it has a link address. To add a feature image to a post or page just include the filename in the front matter like so.
You can "serve" images responsively with retina.js. All you need to do is have a file with @2x before the file type. That should be placed in the images folder. You literally don't have to do anything other than that. 2 copies. One is linked. That's it.
Ex:
*There is a default feature image that will show up for and posts. It isn't retina or anything. It's just there in case you want one but forget <3 If you don't want a feature image…just say so in the front-matter. Go to your-post-name.md and make sure it has this guy up top.
CategoriesIn the sample For example. Say you want to group all your posts under If done correctly LicenseThis is free to use, fork, do whatever you want. Please do not sell this design though. You don't need to link me to it, but please contact me if you intend to market this theme. I am releasing premium versions of this design for select CMS's. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论