Hiding the page title?
I realize that using the following metadata:
Link: /
at the top of a post will make it a "landing page", but what I can't figure out is how to avoid the first line of text becoming the name of the page in my links list, without inserting an image at the top of the page (I discovered this fixed the issue by accident when I added an image at the top of certain pages).
But without an image, if I want a page named "contact" (for example") I need to have "contact" at the top of the page.
Hi. I don't know if this is what you want, but I created a home page and I have the following two things on the top of it.
Link: /
Menu: No
The menu command removes the home page from my links menu on the top. Hope that helps.
Answered 3 years ago · Edit answerThanks for that response, but that's not quite what I want. I still want the page to appear in the links menu, without having the name appear at the top of the page itself.
Answered 3 years ago · Edit answerYou can set title metadata like so to avoid this:
Title: Contact
This is the rest of the page etc...
Answered 3 years ago ·
Edit answer
Maybe this is the same question that I have?
What I’d like is to have my landing page have no title apart from the blog’s name — for only the blog’s name to show in the tab bar of a browser.
The name of my blog is “I 💜 Wasting Ink”. The closest I can get is to use the “Title” metadata field and use a space as a title, but that results in “ – I 💜 Wasting Ink”, which isn’t what I want.
Here is a screenshot which shows what I’m trying to describe. I hope it makes sense.
Answered 3 years ago · Edit answerYou'll want to modify the title
template partial, which is generally responsible for the contents of the <title>
tag. For example, to edit the title on a landing page using the Blog template, you'd modify line 85 in package.json. The following should do the trick:
"title": "{{#entry.title}}{{{.}}} - {{/entry.title}}{{{title}}}",
Answered 3 years ago ·
Edit answer