You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the source code of the generated site I found there're two head sections.
I solved the problem by deleting
<head>
<title>{{ site.author }}</title>
</head>
from the about.html, home.html and post.html files in the _layouts directory.
The right code should be written in /_includes/head.html
NOTE: I'm new to both GitHub and Jekyll and I didn't studied the Jekyll templating structure yet, however I noticed the shortcode {{ site.author }} actually shows the page title when in the wrong position (when there's the double head tag), but the same snippet (<title>{{ site.author }}</title>) in the right position (so when it's in the head.html file) shows the author name.
That's strange because there's not another title tag that overwrites it.
Ideas?
By the way I solved by changing the snippet from the one before to this one: <title>{{ page.title }}</title> (I tried site.title but then I realized I wouldn't print the page title:sweat_smile:)
P.S: I'm sorry if I mistaken or missed anything (in case please let me know) but, as said, I'm new to GitHub and I've no experience with (that's even the reason I don't try to pull the solution):innocent:
P.P.S: Thanks for this theme. It's pretty simple but amazing, for sure for a beginner who wants to learn and customize it:pray:
The text was updated successfully, but these errors were encountered:
Hi @teo330, nice to meet you in Github! Glad you have noticed the issue in this project. I found a reference that would be helpful for your question,
Technically HTML documents are not allowed to have multiple sections, but sites which aggregate content from multiple sources sometimes have them. This filter moves the content from later sections into the first head.
About this
P.S: I'm sorry if I mistaken or missed anything (in case please let me know) but, as said, I'm new to GitHub and I've no experience with (that's even the reason I don't try to pull the solution)😇
I think you are totally welcome to send a Pull Request, even is it is a stupid one : )
For open source communities, the member would be really happy to see some feedback and active contributors, and most of them are kind and will give you suggestions that can really help you. Don't be shy and just run.
Looking at the source code of the generated site I found there're two head sections.
I solved the problem by deleting
from the about.html, home.html and post.html files in the _layouts directory.
The right code should be written in /_includes/head.html
NOTE: I'm new to both GitHub and Jekyll and I didn't studied the Jekyll templating structure yet, however I noticed the shortcode
{{ site.author }}
actually shows the page title when in the wrong position (when there's the double head tag), but the same snippet (<title>{{ site.author }}</title>
) in the right position (so when it's in the head.html file) shows the author name.That's strange because there's not another title tag that overwrites it.
Ideas?
By the way I solved by changing the snippet from the one before to this one:
<title>{{ page.title }}</title>
(I triedsite.title
but then I realized I wouldn't print the page title:sweat_smile:)P.S: I'm sorry if I mistaken or missed anything (in case please let me know) but, as said, I'm new to GitHub and I've no experience with (that's even the reason I don't try to pull the solution):innocent:
P.P.S: Thanks for this theme. It's pretty simple but amazing, for sure for a beginner who wants to learn and customize it:pray:
The text was updated successfully, but these errors were encountered: