mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 03:14: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 (() => {
|
export default (() => {
|
||||||
function ContentMetadata({ cfg, fileData, displayClass }: QuartzComponentProps) {
|
function ContentMetadata({ cfg, fileData, displayClass }: QuartzComponentProps) {
|
||||||
const text = fileData.text
|
const text = fileData.text
|
||||||
if (text) {
|
if (text && fileData.frontmatter.title != "Home") {
|
||||||
const segments: string[] = []
|
const segments: string[] = []
|
||||||
const { text: timeTaken, words: _words } = readingTime(text)
|
const { text: timeTaken, words: _words } = readingTime(text)
|
||||||
|
|
||||||
|
|||||||
@ -10,20 +10,20 @@ export default (() => {
|
|||||||
<div id="search-icon">
|
<div id="search-icon">
|
||||||
<p>Search</p>
|
<p>Search</p>
|
||||||
<div></div>
|
<div></div>
|
||||||
<svg
|
{/* <svg */}
|
||||||
tabIndex={0}
|
{/* tabIndex={0} */}
|
||||||
aria-labelledby="title desc"
|
{/* aria-labelledby="title desc" */}
|
||||||
role="img"
|
{/* role="img" */}
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
{/* xmlns="http://www.w3.org/2000/svg" */}
|
||||||
viewBox="0 0 19.9 19.7"
|
{/* viewBox="0 0 19.9 19.7" */}
|
||||||
>
|
{/* > */}
|
||||||
<title id="title">Search</title>
|
{/* <title id="title">Search</title> */}
|
||||||
<desc id="desc">Search</desc>
|
{/* <desc id="desc">Search</desc> */}
|
||||||
<g class="search-path" fill="none">
|
{/* <g class="search-path" fill="none"> */}
|
||||||
<path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4" />
|
{/* <path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4" /> */}
|
||||||
<circle cx="8" cy="8" r="7" />
|
{/* <circle cx="8" cy="8" r="7" /> */}
|
||||||
</g>
|
{/* </g> */}
|
||||||
</svg>
|
{/* </svg> */}
|
||||||
</div>
|
</div>
|
||||||
<div id="search-container">
|
<div id="search-container">
|
||||||
<div id="search-space">
|
<div id="search-space">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user