question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem about <title> of the web page.

See original GitHub issue

Bug Report

This is a question, and I’m a rookie user.

Steps to reproduce

  • In the index.html, wrote <title>demo</title>.
  • And the markdown file is named doc.md.

What is current behaviour

  • If I have a _sidebar.md, the <title> will display doc - demo.
  • If I set loadSidebar: false, the <title> will display demo, not doc. When I shared many pages, they all named demo, cannot be distinguished.

What is the expected behaviour

  1. I wish the <title> can display doc, while loadSidebar: false.
  2. Can there be an option, display <title> as doc, without - demo. Even if I wrote nothing in <title></title> of the index.html, it will still display doc - .

Other relevant information

    window.$docsify = {
        name: 'demo',
        repo: '',
        maxLevel: 6, 
        auto2top: true, 
        homepage: 'HOME.md',  

        // ========== sidebar
        loadSidebar: false,
        subMaxLevel: 3,
        logo: 'icon.png',
        autoHeader: true,

        // ========== search
        search: {
            noData: {
                '/': 'No results!'
            },
            paths: 'auto',
            placeholder: {
                '/': 'Search'
            }
        },

        formatUpdated: '{YYYY}-{MM}-{DD} {HH}:{mm}',
    }
  • Bug does still occur when all/other plugins are disabled?

  • Your OS:

  • Node.js version:

  • npm/yarn version:

  • Browser version:

  • Docsify version:

  • Docsify plugins:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
anikethsahacommented, Mar 12, 2020

THanks for taking time !

I hope “display the doc name/first header as page title” can be a feature.

This needs a discussion as this might conflict with the homepage title which needs to be the title passed (eg demo for your case) otherwise it would be demo - demo.

0reactions
stale[bot]commented, May 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Common SEO Mistakes with Web Page Titles - WebFX
1. Not Having a Title · 2. Page Titles That Are Too Short or Too Long · 3. Keyword Cannibalization · 4. Using...
Read more >
How do I solve website page title error? - Marketing - SitePoint
I have a website dermaclinix.in. This site made with WordPress. When I checked the page source, then page title looking fine (Best Hair ......
Read more >
51. Webpage has multiple title elements or no title element
Description: Webpages should have a single title. It is incorrect for a webpage to either have no title or to have multiple titles....
Read more >
Page Title accessibility failures - AccessibilityOz
For example, screen readers announce the page TITLE when they load web pages. When used correctly, the TITLE element is an important tool...
Read more >
When Google Gets It Wrong By Changing The Titles Of Web ...
Google doesn't always use the HTML title tag of a web page, choosing instead to ... Listing the wrong site first is a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found