diff --git a/src/parser/parser.ts b/src/parser/parser.ts index 3160ddbb..3fadbee3 100644 --- a/src/parser/parser.ts +++ b/src/parser/parser.ts @@ -13,8 +13,8 @@ const pathHeading: Renderer = (path: string) => `# \`${path.replace(homedir(), ' function wrap(contentType: string, content: string, linkPath?: string): string { let link = ''; - if (typeof linkPath !== 'undefined') { - link = `\n
\n◂ ${ + if (linkPath) { + link = `\n
\n ${ pbasename(linkPath) || '/' }\n
`; } diff --git a/static/style.css b/static/style.css index 32093baa..c36e34bf 100644 --- a/static/style.css +++ b/static/style.css @@ -61,6 +61,7 @@ h3:hover a.header-anchor, h4:hover a.header-anchor, h5:hover a.header-anchor, h6:hover a.header-anchor { opacity: 1; } +a#top-nav-up:before { content: '◂'} /* -------------------------------------------------------------------------- * TABLES ------------------------------------------------------------------- */