Skip to content

Commit 2f67ec1

Browse files
committed
Update usage of description from config, close #3291
1 parent 7bb2b70 commit 2f67ec1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

_config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ site_theme : "default" # Currently available options are "default"
1212
title : "Your Name / Site Title"
1313
title_separator : "-"
1414
name : &name "Your Name"
15-
description : &description "personal description"
16-
url : https://academicpages.github.io # the base hostname & protocol for your site e.g. "https://[your GitHub username].github.io" or if you already have some other page hosted on Github then use "https://[your GitHub username].github.io/[Your Repo Name]"
15+
description : &description "Your Name's academic portfolio" # Update this with a general description of your site, this is the default if not overridden by a page
16+
url : https://academicpages.github.io # The base hostname & protocol for your site e.g. "https://[your GitHub username].github.io",
17+
# or if you already have some other page hosted on Github then use "https://[your GitHub username].github.io/[Your Repo Name]"
1718
baseurl : "" # the subpath of your site, e.g. "/blog"
1819
repository : "academicpages/academicpages.github.io"
1920

@@ -88,7 +89,7 @@ publication_category:
8889
title: 'Conference Papers'
8990

9091
# Site Settings
91-
teaser : # filename of teaser fallback teaser image placed in /images/, .e.g. "500x300.png"
92+
teaser : # filename of teaser fallback teaser image placed in /images/ for social media previews
9293
breadcrumbs : false # true, false (default)
9394
words_per_minute : 160
9495
future : true

_includes/seo.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
{% if seo_description %}
2525
{% assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once %}
2626
{% endif %}
27+
<meta name="description" content="{{ seo_description }}">
2728

2829
{% assign seo_author = page.author | default: page.author[0] | default: site.author[0] %}
2930
{% if seo_author %}

0 commit comments

Comments
 (0)