Skip to main content
Module

x/none/testdata/my_blog.ts

Minimal boilerplate blogging.
Latest
File
import blog, { redirects } from "../src/none.tsx";
blog({ author: "Dino", title: "My Blog", description: "The blog description.", avatar: "/cat.png", avatarClass: "rounded-full", favicon: "/cat.png", readtime: true, scripts: [ ` (function() { var ga = document.createElement('script'); ga.src = 'https://www.googletagmanager.com/gtag/js?id=G-10D6YDNQ9J'; ga.async = true; document.head.appendChild(ga); })(); `, ` window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-10D6YDNQ9J'); `, ` var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?d47c012aa2838250165b44d65f898c3b"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); `, ], links: [ { title: "bot@deno.com", url: "mailto:bot@deno.com" }, { title: "GitHub", url: "https://github.com/denobot" }, { title: "Twitter", url: "https://twitter.com/denobot" }, { title: "Mastodon", url: "https://mstdn.social/@Fatpandac" }, { title: "Telegram", url: "https://t.me/fatpandac" }, ], middlewares: [ redirects({ "/docs/other": "", "/blog": "/", }), ],});