fix(tag): move hash to sass styling only (#930)
This commit is contained in:
		@@ -63,7 +63,7 @@ export const PageList: QuartzComponent = ({ cfg, fileData, allFiles, limit }: Pr
 | 
			
		||||
                      class="internal tag-link"
 | 
			
		||||
                      href={resolveRelative(fileData.slug!, `tags/${tag}` as FullSlug)}
 | 
			
		||||
                    >
 | 
			
		||||
                      #{tag}
 | 
			
		||||
                      {tag}
 | 
			
		||||
                    </a>
 | 
			
		||||
                  </li>
 | 
			
		||||
                ))}
 | 
			
		||||
 
 | 
			
		||||
@@ -63,7 +63,7 @@ export default ((userOpts?: Partial<Options>) => {
 | 
			
		||||
                          class="internal tag-link"
 | 
			
		||||
                          href={resolveRelative(fileData.slug!, `tags/${tag}` as FullSlug)}
 | 
			
		||||
                        >
 | 
			
		||||
                          #{tag}
 | 
			
		||||
                          {tag}
 | 
			
		||||
                        </a>
 | 
			
		||||
                      </li>
 | 
			
		||||
                    ))}
 | 
			
		||||
 
 | 
			
		||||
@@ -9,12 +9,11 @@ const TagList: QuartzComponent = ({ fileData, displayClass }: QuartzComponentPro
 | 
			
		||||
    return (
 | 
			
		||||
      <ul class={classNames(displayClass, "tags")}>
 | 
			
		||||
        {tags.map((tag) => {
 | 
			
		||||
          const display = `#${tag}`
 | 
			
		||||
          const linkDest = baseDir + `/tags/${slugTag(tag)}`
 | 
			
		||||
          return (
 | 
			
		||||
            <li>
 | 
			
		||||
              <a href={linkDest} class="internal tag-link">
 | 
			
		||||
                {display}
 | 
			
		||||
                {tag}
 | 
			
		||||
              </a>
 | 
			
		||||
            </li>
 | 
			
		||||
          )
 | 
			
		||||
 
 | 
			
		||||
@@ -328,7 +328,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
 | 
			
		||||
                  children: [
 | 
			
		||||
                    {
 | 
			
		||||
                      type: "text",
 | 
			
		||||
                      value: `#${tag}`,
 | 
			
		||||
                      value: tag,
 | 
			
		||||
                    },
 | 
			
		||||
                  ],
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
@@ -79,6 +79,11 @@ a {
 | 
			
		||||
      border-radius: 0;
 | 
			
		||||
      padding: 0;
 | 
			
		||||
    }
 | 
			
		||||
    &.tag-link {
 | 
			
		||||
      &::before {
 | 
			
		||||
        content: "#";
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &.external .external-icon {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user