Your sites Log in Sign up Menu

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.


2 years ago, 5 replies   Improve this question

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 2 years ago · Improve this answer

Thanks 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 2 years ago · Improve this answer

You can set title metadata like so to avoid this:

Title: Contact

This is the rest of the page etc...
Answered 2 years ago · Improve this 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 2 years ago · Improve this answer

You'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 2 years ago · Improve this answer