Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 'title' and some 'meta' tags duplicate #26

Open
b0rgch3n opened this issue Aug 3, 2023 · 0 comments
Open

The 'title' and some 'meta' tags duplicate #26

b0rgch3n opened this issue Aug 3, 2023 · 0 comments

Comments

@b0rgch3n
Copy link

b0rgch3n commented Aug 3, 2023

Hi, I noticed that the 'title' and some 'meta' tags in the _layouts/base.html file duplicate the tags generated by the jekyll-seo-tag plugin.

The duplicated content in the _layouts/base.html is as follows:

<meta name="description" content="" />
<meta name="author" content="" />
<title>{% assign title_is_not_empty = page.title | is_not_empty %}{% if title_is_not_empty %}{{ page.title }} - {% endif %}{{ site.title }}</title>

If the _config.yml file is configured as follows:

# Site settings
title: Test
description: "description in _config.yml"
repository: vvalchev/creative-theme-jekyll-new
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://127.0.0.1:4000" # the base hostname & protocol for your site
author: "author in _config.yml"
lang: en_US

# Build settings
safe: true # always trues on github-pages, disables _plugins/
markdown: kramdown
sass:
  indentWidth: 4
  style: compressed
  precision: 10
plugins:
  - jekyll-sitemap
  - jekyll-seo-tag
exclude:
  - Gemfile
  - Gemfile.lock
  - build-in-docker.sh
  - README.md

the head tag will result in the following:
2023-08-03 18-20-36

I think we can remove the three duplicated tags in the base.html file. What do you think?

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant