1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2025-06-16 01:36:40 +00:00

Compare commits

..

No commits in common. "f1e6d516e637b58c4d687d5fac0ce349627593b8" and "524209f2841cd20a6ce6816821adce86cb240c19" have entirely different histories.

7 changed files with 7 additions and 17 deletions

View File

@ -5,7 +5,7 @@ pages:
- if: '$CI_COMMIT_REF_NAME == "v4"'
before_script:
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/".insteadOf "git@gitlab.com:"
- git clone git@gitlab.com:Anson-Projects/brain.git content
- git clone --depth 1 git@gitlab.com:Anson-Projects/brain.git content
- hash -r
- npm ci --cache .npm --prefer-offline
script:

View File

@ -45,8 +45,6 @@ afterBody: [
category: 'Announcements',
// from data-category-id
categoryId: 'DIC_kwDOFxRnmM4B-Xg6',
// from data-lang
lang: 'en'
}
}),
],
@ -92,10 +90,6 @@ type Options = {
// where to put the comment input box relative to the comments
// defaults to 'bottom'
inputPosition?: "top" | "bottom"
// set your preference language here
// defaults to 'en'
lang?: string
}
}
```

View File

@ -68,7 +68,7 @@ const config: QuartzConfig = {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "git"],
priority: ["frontmatter", "git", "filesystem"],
}),
Plugin.SyntaxHighlighting({
theme: {

View File

@ -125,10 +125,9 @@ async function startWatching(
ctx,
mut,
contentMap,
ignored: (fp) => {
const pathStr = toPosixPath(fp.toString())
if (pathStr.startsWith(".git/")) return true
if (gitIgnoredMatcher(pathStr)) return true
ignored: (path) => {
if (gitIgnoredMatcher(path)) return true
const pathStr = path.toString()
for (const pattern of cfg.configuration.ignorePatterns) {
if (minimatch(pathStr, pattern)) {
return true

View File

@ -17,7 +17,6 @@ type Options = {
strict?: boolean
reactionsEnabled?: boolean
inputPosition?: "top" | "bottom"
lang?: string
}
}
@ -51,7 +50,6 @@ export default ((opts: Options) => {
data-theme-url={
opts.options.themeUrl ?? `https://${cfg.baseUrl ?? "example.com"}/static/giscus`
}
data-lang={opts.options.lang ?? "en"}
></div>
)
}

View File

@ -18,7 +18,7 @@ interface Options {
}
const defaultOptions = (cfg: GlobalConfiguration): Options => ({
limit: 5,
limit: 3,
linkToMore: false,
showTags: true,
filter: () => true,

View File

@ -55,7 +55,6 @@ type GiscusElement = Omit<HTMLElement, "dataset"> & {
strict: string
reactionsEnabled: string
inputPosition: "top" | "bottom"
lang: string
}
}
@ -79,7 +78,7 @@ document.addEventListener("nav", () => {
giscusScript.setAttribute("data-strict", giscusContainer.dataset.strict)
giscusScript.setAttribute("data-reactions-enabled", giscusContainer.dataset.reactionsEnabled)
giscusScript.setAttribute("data-input-position", giscusContainer.dataset.inputPosition)
giscusScript.setAttribute("data-lang", giscusContainer.dataset.lang)
const theme = document.documentElement.getAttribute("saved-theme")
if (theme) {
giscusScript.setAttribute("data-theme", getThemeUrl(getThemeName(theme)))