Soitora 2255fd663b Fix redirects (#573)
* Fix redirects, maybe?

Maybe fix redirects?

* Change how pages are redirected

* Remove 'redirect-frontmatter' reference

* Try another method of making routes

* Try dehydration

* Update package-lock after rebase
2021-03-18 14:01:36 +01:00

133 lines
2.3 KiB
JavaScript

module.exports = [
[
"@mr-hope/vuepress-plugin-sitemap",
{
hostname: "https://tachiyomi.org",
},
],
[
"@vuepress/last-updated",
{
transformer: (timestamp, lang) => {
const moment = require("moment");
moment.locale(lang);
return moment(timestamp).fromNow();
},
},
],
[
"vuepress-plugin-robots",
{
host: "https://tachiyomi.org",
allowAll: true,
sitemap: "/sitemap.xml",
},
],
["@vuepress/back-to-top"],
[
"@vuepress/google-analytics",
{
ga: "UA-148212082-1",
},
],
["vuepress-plugin-dehydrate"],
[
"@vuepress/active-header-links",
{
sidebarLinkSelector: ".sidebar-link",
headerAnchorSelector: ".header-anchor",
},
],
[
"@vuepress/pwa",
{
serviceWorker: false,
},
],
[
"vuepress-plugin-clean-urls",
{
normalSuffix: "/",
},
],
[
"vuepress-plugin-zooming",
{
selector: ".theme-default-content img.zoomable",
delay: 1000,
options: {
bgColor: "black",
bgOpacity: "0.8",
},
},
],
["vuepress-plugin-element-ui"],
[
"vuepress-plugin-container",
{
type: "c-tip",
before: (info) => `<div class="custom-block c-tip"><h4 class="c-title">${info}</h4>`,
after: "</div>",
defaultTitle: "",
},
],
[
"vuepress-plugin-container",
{
type: "c-warning",
before: (info) => `<div class="custom-block c-warning"><h4 class="c-title">${info}</h4>`,
after: "</div>",
defaultTitle: "",
},
],
[
"vuepress-plugin-container",
{
type: "c-danger",
before: (info) => `<div class="custom-block c-danger"><h4 class="c-title">${info}</h4>`,
after: "</div>",
defaultTitle: "",
},
],
[
"vuepress-plugin-container",
{
type: "expander",
before: (info) => `<details class="expander"><summary class="expansion">${info}</summary>`,
after: "</details>",
},
],
[
"vuepress-plugin-container",
{
type: "guide",
before: (info) => `<div class="guide"><p class="title">${info}</p>`,
after: "</div>",
},
],
[
"vuepress-plugin-container",
{
type: "videolink",
before: "<div class='videolink'>",
after: "</div>",
},
],
[
"vuepress-plugin-container",
{
type: "guide-empty",
before: "<div class='guide g-empty'>",
after: "</div>",
},
],
[
"vuepress-plugin-container",
{
type: "note",
before: "<div class='note'><p>",
after: "</div></p>",
},
],
];