removed backend admin thing

This commit is contained in:
suroh 2023-10-26 12:31:51 +02:00
parent d260f97bfa
commit 0fcb393275
3 changed files with 0 additions and 81 deletions

View File

@ -9,22 +9,16 @@
<meta name="generator" content="{{ site.generator }}">
<!-- styles -->
<link rel="stylesheet" href="/assets/css/main.css">
<!-- javascript -->
<script src="/assets/js/script.js" type="module"></script>
<!-- tracking -->
<script async defer data-website-id="f24934aa-ee11-49ee-993f-a64b8df6a01c"
src="https://analytics.suroh.tk/umami.js"></script>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
<div id="wrapper">
{% include 'nav.njk' %}
@ -32,16 +26,4 @@
{% block footer %}{% endblock %}
</div>
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("init", user => {
if (!user) {
window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/";
});
}
});
}
</script>
</body>

View File

@ -1,45 +0,0 @@
backend:
name: gitea
repo: suroh/work.suroh.tk
app_id: 7bfaec5d-9c01-49bc-8c3c-d38ad5c7b16a
api_root: https://git.suroh.tk/api/v1
base_url: https://git.suroh.tk
site_domain: work.suroh.tk
branch: main
media_folder: "assets/media"
public_folder: "/assets/media"
# Please run "npx netlify-cms-proxy-server" for local backend
local_backend: false
collections:
- label: "work"
name: "work"
folder: "_content/work"
create: true
fields:
- { label: "title", name: "title", widget: "string" }
- { label: "layout", name: "layout", widget: "hidden", default: "page.njk" }
- { label: "body", name: "body", widget: "markdown" }
- { label: "feature image", name: "imgFeat", widget: "image", media_folder: "images" }
- { label: "gallery", name: "gallery", widget: "image", allow_multiple: true, media_folder: "images" }
- label: "audio"
name: "audio"
folder: "_content/audio"
create: true
fields:
- { label: "title", name: "title", widget: "string" }
- { label: "layout", name: "layout", widget: "hidden", default: "page.njk" }
- { label: "body", name: "body", widget: "markdown" }
- { label: "feature image", name: "imgFeat", widget: "image", media_folder: "images" }
- { label: "gallery", name: "gallery", widget: "image", allow_multiple: true, media_folder: "images" }
- label: "Settings"
name: "settings"
editor:
preview: false
files:
- label: "Meta Settings"
name: "settings"
file: "src/_data/settings.yaml"
fields:
- { label: Name, name: name, widget: string }
- { label: Author, name: author, widget: string }
- { label: URL, name: url, widget: string }

View File

@ -1,18 +0,0 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<title>Content Manager</title>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
<!-- Include the script that builds the page and powers Decap CMS -->
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>