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

Meta description? #3

Open
JWasdin opened this issue Jan 13, 2021 · 2 comments
Open

Meta description? #3

JWasdin opened this issue Jan 13, 2021 · 2 comments

Comments

@JWasdin
Copy link

JWasdin commented Jan 13, 2021

Firstly, thanks for this, I was able to adjust it to my own needs and you laid it out really well! The one thing I can't seem to adjust is the meta description which gets compiled as:

<meta name="description" content="Simple jekyll template for use as a social media link tree." /> <meta property="og:description" content="Simple jekyll template for use as a social media link tree." />

I have set my own meta description in default.html and it gets compiled before these two lines, but these lines overwrite it when sharing the link. Oddly, I cannot find this string when searching in the repo. Any help would be much appreciated.

@zchef2k
Copy link
Owner

zchef2k commented Jan 16, 2021

Sounds like you were on the right track. I don't think I understand the issue about sharing the link. Can you elaborate more or demonstrate that for me.

I'm poking around trying to learn more about how Jekyll compiles the meta tags. It would be a nice feature to set a specific variable for description in the site config.

@JWasdin
Copy link
Author

JWasdin commented Jan 16, 2021

Screenshot 2021-01-16 151129

Here is an example of sharing the link to the Github page in Slack. You see that it properly parses the name and even adds the image from the meta content. However, it still returns Link and the description Simple jekyll template for use as a social media link tree.

Here is the code which I added after {% include analytics-google.html %} and before {% seo %} in default.html:

    <meta name=viewport content="width=device-width, initial-scale=1">
    <meta name=author content="{{ site.name }}">
    <meta name="description" content="Curated and concise local news delivered to your inbox three days a week." />
    <meta property="og:image" content="https://newgazette.co/img/logo_bg2.png" />

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

2 participants