Socket
Socket
Sign inDemoInstall

vuepress-theme-vdoing

Package Overview
Dependencies
265
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.11.1 to 1.11.2

4

index.js

@@ -241,3 +241,3 @@ const path = require('path')

listDOM += `
<${item.link ? 'a href="' + item.link + '" target="' + target + '"' : 'span'} class="card-item ${row ? 'row-' + row : ''}"
<${item.link ? 'a href="' + withBase(item.link) + '" target="' + target + '"' : 'span'} class="card-item ${row ? 'row-' + row : ''}"
style="${item.bgColor ? 'background-color:' + item.bgColor + ';--randomColor:' + item.bgColor + ';' : '--randomColor: var(--bodyBg);'}${item.textColor ? 'color:' + item.textColor + ';' : ''}"

@@ -265,3 +265,3 @@ >

<div class="card-item ${row ? 'row-' + row : ''}" >
<a href="${item.link}" target="${target}">
<a href="${withBase(item.link)}" target="${target}">
<div class="box-img" style="height: ${imgHeight}">

@@ -268,0 +268,0 @@ <img src="${withBase(item.img)}" class="no-zoom" style="object-fit: ${objectFit}">

@@ -18,3 +18,3 @@ const fs = require('fs'); // 文件模块

function setFrontmatter(sourceDir, themeConfig) {
const { isCategory, isTag, categoryText = '随笔', extendFrontmatter } = themeConfig
const { category: isCategory, tag: isTag, categoryText = '随笔', extendFrontmatter } = themeConfig
const files = readFileList(sourceDir) // 读取所有md文件数据

@@ -21,0 +21,0 @@ // 扩展自定义生成frontmatter

{
"name": "vuepress-theme-vdoing",
"version": "1.11.1",
"version": "1.11.2",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",

@@ -5,0 +5,0 @@ "author": {

@@ -13,3 +13,3 @@ export const hashRE = /#.*$/

export function getHash(path) {
const match = path ? path.match(hashRE) : ''
const match = path && path.match(hashRE)
if (match) {

@@ -16,0 +16,0 @@ return match[0]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc