mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 19:04:06 -06:00
Remove Search Icon and Date on index page
This commit is contained in:
parent
e7b1cec29d
commit
8601d174e7
@ -5,7 +5,7 @@ import readingTime from "reading-time"
|
||||
export default (() => {
|
||||
function ContentMetadata({ cfg, fileData, displayClass }: QuartzComponentProps) {
|
||||
const text = fileData.text
|
||||
if (text) {
|
||||
if (text && fileData.frontmatter.title != "Home") {
|
||||
const segments: string[] = []
|
||||
const { text: timeTaken, words: _words } = readingTime(text)
|
||||
|
||||
|
||||
@ -10,20 +10,20 @@ export default (() => {
|
||||
<div id="search-icon">
|
||||
<p>Search</p>
|
||||
<div></div>
|
||||
<svg
|
||||
tabIndex={0}
|
||||
aria-labelledby="title desc"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 19.9 19.7"
|
||||
>
|
||||
<title id="title">Search</title>
|
||||
<desc id="desc">Search</desc>
|
||||
<g class="search-path" fill="none">
|
||||
<path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4" />
|
||||
<circle cx="8" cy="8" r="7" />
|
||||
</g>
|
||||
</svg>
|
||||
{/* <svg */}
|
||||
{/* tabIndex={0} */}
|
||||
{/* aria-labelledby="title desc" */}
|
||||
{/* role="img" */}
|
||||
{/* xmlns="http://www.w3.org/2000/svg" */}
|
||||
{/* viewBox="0 0 19.9 19.7" */}
|
||||
{/* > */}
|
||||
{/* <title id="title">Search</title> */}
|
||||
{/* <desc id="desc">Search</desc> */}
|
||||
{/* <g class="search-path" fill="none"> */}
|
||||
{/* <path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4" /> */}
|
||||
{/* <circle cx="8" cy="8" r="7" /> */}
|
||||
{/* </g> */}
|
||||
{/* </svg> */}
|
||||
</div>
|
||||
<div id="search-container">
|
||||
<div id="search-space">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user