Remove Search Icon and Date on index page

This commit is contained in:
Vineeth Voruganti 2023-12-14 18:29:59 -05:00
parent e7b1cec29d
commit 8601d174e7
2 changed files with 15 additions and 15 deletions

View File

@ -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)

View File

@ -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">