feedback page
This commit is contained in:
parent
885f7f54f0
commit
cf86f781e6
6
.github/single-page.py
vendored
6
.github/single-page.py
vendored
@ -1,19 +1,21 @@
|
||||
import glob
|
||||
import time
|
||||
|
||||
|
||||
def output():
|
||||
read = glob.glob("*.md")
|
||||
content = ""
|
||||
nsfw_content = ""
|
||||
for file in read:
|
||||
if file != "README.md":
|
||||
if file != "README.md" or file != "feedback.md":
|
||||
with open(file, "r") as f:
|
||||
if "nsfw" in file.lower():
|
||||
if "NSFWPiracy.md" == file:
|
||||
nsfw_content += f.read()
|
||||
continue
|
||||
content += f.read()
|
||||
return content + nsfw_content
|
||||
|
||||
|
||||
def main():
|
||||
content = output()
|
||||
with open("single-page", "w") as file:
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { defineConfig } from "vitepress";
|
||||
import UnoCSS from "unocss/vite";
|
||||
import { presetUno, presetAttributify, presetIcons } from "unocss";
|
||||
import { commitRef, meta, socials } from "./constants";
|
||||
import { commitRef, feedback, meta, socials } from "./constants";
|
||||
import { generateImages, generateMeta } from "./hooks";
|
||||
import { toggleStarredPlugin } from "./markdown/toggleStarred";
|
||||
import { base64DecodePlugin } from "./markdown/base64";
|
||||
@ -101,7 +101,7 @@ export default defineConfig({
|
||||
provider: "local",
|
||||
},
|
||||
footer: {
|
||||
message: `Made with ❤️ (rev: ${commitRef})`,
|
||||
message: `${feedback} (rev: ${commitRef})`,
|
||||
},
|
||||
outline: "deep",
|
||||
logo: "/fmhy.ico",
|
||||
|
@ -3,7 +3,7 @@ import type { DefaultTheme } from "vitepress";
|
||||
export const meta = {
|
||||
name: "FreeMediaHeckYeah",
|
||||
description: "The largest collection of free stuff on the internet!",
|
||||
hostname: process.env.CF_PAGES ? "https://fmhy.pages.dev" : "https://fmhy.netlify.app",
|
||||
hostname: "https://fmhy.pages.dev",
|
||||
keywords: ["stream", "movies", "gaming", "reading", "anime"],
|
||||
};
|
||||
|
||||
@ -13,10 +13,12 @@ export const commitRef = process.env.COMMIT_REF
|
||||
process.env.COMMIT_REF
|
||||
}">${process.env.COMMIT_REF.slice(0, 8)}</a>`
|
||||
: process.env.CF_PAGES
|
||||
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${
|
||||
process.env.CF_PAGES_COMMIT_SHA
|
||||
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
||||
: "dev";
|
||||
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${
|
||||
process.env.CF_PAGES_COMMIT_SHA
|
||||
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
||||
: "dev";
|
||||
|
||||
export const feedback = `<a href="/feedback" class="feedback-footer">Made with ❤️</a>`;
|
||||
|
||||
export const socials: DefaultTheme.SocialLink[] = [
|
||||
{ icon: "github", link: "https://github.com/fmhy/FMHYEdit" },
|
||||
|
@ -176,7 +176,6 @@
|
||||
transform: rotate(3deg) translate(0px, -4px);
|
||||
}
|
||||
|
||||
/* Remove these to get rid of the spinner */
|
||||
#nprogress .spinner {
|
||||
display: block;
|
||||
position: fixed;
|
||||
|
@ -1,3 +1,11 @@
|
||||
---
|
||||
next: false
|
||||
prev: false
|
||||
lastUpdated: false
|
||||
outline: false
|
||||
---
|
||||
### Feedback
|
||||
|
||||
**Anonymous comments, taken from reddit, discord, twitter, and our feedback system. This is why we do it. People are the motivation, equality is the goal.**
|
||||
|
||||
***
|
||||
|
Loading…
Reference in New Issue
Block a user