# my-quartz-changes Quartz changes for my https://garden.pionaiki.com website. ## Changes: File: `/quartz/components/Body.tsx`: ```TS // @ts-ignore import clipboardScript from "./scripts/clipboard.inline" import clipboardStyle from "./styles/clipboard.scss" import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" let webringdata = [] let webringmyindex = 0 let webringnext = {name: "ERROR", url: "about:blank"} let webringprev = {name: "ERROR", url: "about:blank"} fetch('https://raw.githubusercontent.com/CORTEXIMPLANT/webring/main/websites.json') .then(function(response) { return response.json(); }) .then(function(myJson) { webringdata=myJson if (webringmyindex + 1 > webringdata.length - 1) { webringnext = webringdata[0] } else { webringnext = webringdata[webringmyindex + 1] } if (webringmyindex - 1 < 0) { webringprev = webringdata[webringdata.length - 1] } else { webringprev = webringdata[webringmyindex - 1] } // OVERWRITE webringnext = {"name": "NEXT", "url": "https://webring.obeythesystem.com/page?=next"} webringprev = {"name": "PREV", "url": "https://webring.obeythesystem.com/page?=previous"} }); const Body: QuartzComponent = ({ children }: QuartzComponentProps) => { return (
) } Body.afterDOMLoaded = clipboardScript Body.css = clipboardStyle export default (() => Body) satisfies QuartzComponentConstructor ``` File: `/quartz/components/Footer.tsx`: ```TS import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" import style from "./styles/footer.scss" import { version } from "../../package.json" import { i18n } from "../i18n" interface Options { links: Record