Skip to content

Commit 3ecc42c

Browse files
committed
rename 'bigimg' option to 'cover-img'
1 parent 0f7db64 commit 3ecc42c

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Parameter | Description
121121
title | Page or blog post title
122122
subtitle | Short description of page or blog post that goes under the title
123123
tags | List of tags to categorize the post. Separate the tags with commas and place them inside square brackets. Example: `[personal, self help, finance]`
124-
bigimg | Include a large full-width image at the top of the page. You can either give the path to a single image, or provide a list of images to cycle through (see [my personal website](https://deanattali.com/) as an example).
124+
cover-img | Include a large full-width image at the top of the page. You can either give the path to a single image, or provide a list of images to cycle through (see [my personal website](https://deanattali.com/) as an example).
125125
comments | If you want do add comments to a specific page, use `comments: true`. Comments are automatically enabled on blog posts; to turn comments off for a specific post, use `comments: false`. Comments only work if you enable at least one provider(Facebook, disqus, staticman) in `_config.yml` file.
126126
show-avatar | If you have an avatar configured in the `_config.yml` but you want to turn it off on a specific page, use `show-avatar: false`. If you want to turn it off by default, locate the line `show-avatar: true` in the file `_config.yml` and change the `true` to `false`; then you can selectively turn it on in specific pages using `show-avatar: true`.
127127
image | If you want to add a personalized image to your blog post that will show up next to the post's excerpt and on the post itself, use `image: /path/to/img`.
@@ -212,7 +212,7 @@ Easy! Just place a valid `favicon.ico` in the root directory of your project. An
212212

213213
The default style of Beautiful Jekyll is to feature the blog feed on the front page. But for many sites that's not the ideal structure, and you may want to have a separate dedicated page for the blog posts. To have the blog hosted on a different URL (for example at `<mysite.com>/blog`), copy the `index.html` file into a folder with the same name as the desired page (for example, to `blog/index.html`), and in the `_config.yml` file you need to add a parameter `paginate_path: "/<page name>/page:num/"` (for example `paginate_path: "/blog/page:num/"`).
214214

215-
#### What size do you recommend using for the `bigimg` photos?
215+
#### What size do you recommend using for the `cover-img` photos?
216216

217217
Unfortunately, this is a no-answer! There isn't a one-size-fits-all solution to this, because every person will view your site on a different browser with different dimensions. Some browsers will have very wide aspect ratio, some will be narrower, some will be vertical (such as phones), different phones have different screens, etc. The image will always be centered, so the only tip I can give is that you should make sure the important part of the image is in the middle so that it'll always show. Other than that, every browser will show a different clipping of the image.
218218

_includes/header.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
44

5-
{% if page.bigimg or page.title %}
5+
{% if page.cover-img or page.title %}
66

7-
{% if page.bigimg %}
8-
<div id="header-big-imgs" data-num-img={% if page.bigimg.first %}{{ page.bigimg.size }}{% else %}1{% endif %}
9-
{% for bigimg in page.bigimg %}
7+
{% if page.cover-img %}
8+
<div id="header-big-imgs" data-num-img={% if page.cover-img.first %}{{ page.cover-img.size }}{% else %}1{% endif %}
9+
{% for bigimg in page.cover-img %}
1010
{% assign imgnum = forloop.index %}
1111
{% for imginfo in bigimg %}
1212
{% if imginfo[0] %}
@@ -20,8 +20,8 @@
2020
></div>
2121
{% endif %}
2222

23-
<header class="header-section {% if page.bigimg %}has-img{% endif %}">
24-
{% if page.bigimg %}
23+
<header class="header-section {% if page.cover-img %}has-img{% endif %}">
24+
{% if page.cover-img %}
2525
<div class="big-img intro-header">
2626
<div class="container-md">
2727
<div class="row">

_posts/2015-02-26-flake-it-till-you-make-it.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: post
33
title: Flake it till you make it
44
subtitle: Excerpt from Soulshaping by Jeff Brown
5-
bigimg: /assets/img/path.jpg
5+
cover-img: /assets/img/path.jpg
66
tags: [books, test]
77
---
88

0 commit comments

Comments
 (0)