Skip to content

Commit 42739b5

Browse files
committed
Rename site.image to site.logo for parity with jekyll-seo-tag plugin
- Describe site-wide elements in _config.yml
1 parent 4d8b9c8 commit 42739b5

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,18 @@ Basically Basic is a [Jekyll theme](https://jekyllrb.com/docs/themes/) meant as
6464
6565
## Configuration
6666
67-
Configuration of site-wide elements (`lang`, `title`, `description`, `image`, `author`, etc.) happens in your project's `_config.yml`. See the [example configuration](example/_config.yml) in this repo for reference.
67+
Configuration of site-wide elements (`lang`, `title`, `description`, `logo`, `author`, etc.) happens in your project's `_config.yml`. See the [example configuration](example/_config.yml) in this repo for additional reference.
68+
69+
| | Description |
70+
| ------------------ | -------------------------------------------------------------------- |
71+
| `lang` | Used to indicate the language of text (e.g., en-US, en-GB, fr) |
72+
| `title` | Your site's title (e.g., Dungan's Awesome Site) |
73+
| `description` | Short site description (e.g., A blog about grasshopper mash) |
74+
| `url` | The full URL to your site (e.g., https://groverloaf.org) |
75+
| `author` | Global author information (see below) |
76+
| `logo` | Path to a site-wide logo (e.g., /assets/your-company-logo.png) |
77+
| `twitter_username` | Site-wide Twitter username, used as a link in sidebar |
78+
| `github_username` | Site-wide GitHub username, used as a link in sidebar |
6879

6980
### Skin
7081

_includes/masthead.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{% if site.image contains '://' %}
2-
{% assign site_image = site.image %}
1+
{% if site.logo contains '://' %}
2+
{% assign site_logo = site.logo %}
33
{% else %}
4-
{% assign site_image = site.image | relative_url %}
4+
{% assign site_logo = site.logo | relative_url %}
55
{% endif %}
66

77
<header id="masthead">
@@ -10,18 +10,18 @@
1010
{% if page.url == '/' %}
1111
<h1 class="site-title">
1212
<a href="{{ '/' | relative_url }}">
13-
{% if site.image %}<img src="{{ site_image }}" alt="" class="site-image">{% endif %}
13+
{% if site.logo %}<img src="{{ site_logo }}" alt="" class="site-logo">{% endif %}
1414
<span>{{ site.title | escape }}</span>
1515
</a>
1616
</h1>
1717
{% else %}
1818
<p class="site-title">
1919
<a href="{{ '/' | relative_url }}">
20-
{% if site.image %}<img src="{{ site_image }}" alt="" class="site-image">{% endif %}
20+
{% if site.logo %}<img src="{{ site_logo }}" alt="" class="site-logo">{% endif %}
2121
<span>{{ site.title | escape }}</span>
2222
</a>
2323
</p>
2424
{% endif %}
2525
</div>
2626
</div>
27-
</header>
27+
</header>

_sass/basically-basic/_global.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929
}
3030

31-
.site-image {
31+
.site-logo {
3232
width: $site-image-width;
3333
height: $site-image-height;
3434
margin-right: 0.5rem;

example/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ author:
2525
picture: https://api.adorable.io/avatars/285/johndoe.png
2626
twitter_username: Towlette_Pettetucci
2727
github_username: Towlette_Pettetucci
28-
image: /assets/images/100x100.png # ~100x100px
28+
logo: /assets/images/100x100.png # ~100x100px
2929

3030
# Build settings
3131
markdown: kramdown

0 commit comments

Comments
 (0)