Skip to content

Commit

Permalink
Use jekyll-seo gem to generate meta info (#400)
Browse files Browse the repository at this point in the history
- add instructions to install new gem, mostly per:
  https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/installation.md
- adds magic seo generator to header & removes newly redundant meta tags

Addresses #339
  • Loading branch information
DanVanAtta authored Jun 23, 2024
1 parent 2b68fcf commit 618fc4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ On Ubuntu, run:
```bash
sudo apt install ruby ruby-dev make gcc
sudo gem install jekyll bundler
sudo gem install jekyll-seo-tag
```

**2. Run a local version of the website.** Using Git, clone the latest version of this repository
Expand Down
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ defaults:
exclude:
- README.md
- CNAME

plugins:
- jekyll-seo-tag

4 changes: 1 addition & 3 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | escape | truncate: 160 }}{% else %}{{ site.description | escape }}{% endif %}">

<link rel="stylesheet" href="{{ '/css/main.css' | prepend: site.baseurl }}" type="text/css">
<link rel="stylesheet" href="{{ '/css/fonts/stylesheet.css' | prepend: site.baseurl }}" type="text/css">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">

<link rel="shortcut icon" href="{{ '/images/favicon.ico' | prepend: site.baseurl }}" type="image/x-icon">
<link rel="icon" href="{{ '/images/favicon.ico' | prepend: site.baseurl }}" type="image/x-icon">
Expand All @@ -20,4 +17,5 @@
"logo": "http://triplea-game.org/images/icon_menu.png"
}
</script>
{% seo %}
</head>

0 comments on commit 618fc4d

Please sign in to comment.