Set up a fresh Statamic site
This commit is contained in:
8
resources/blueprints/assets/assets.yaml
Normal file
8
resources/blueprints/assets/assets.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
title: Asset
|
||||
fields:
|
||||
-
|
||||
handle: alt
|
||||
field:
|
||||
display: 'Alt Text'
|
||||
type: text
|
||||
instructions: 'Description of the image'
|
||||
22
resources/blueprints/default.yaml
Normal file
22
resources/blueprints/default.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
title: Default
|
||||
fields:
|
||||
-
|
||||
handle: content
|
||||
field:
|
||||
type: markdown
|
||||
display: Content
|
||||
localizable: true
|
||||
-
|
||||
handle: author
|
||||
field:
|
||||
type: users
|
||||
display: Author
|
||||
default: current
|
||||
localizable: true
|
||||
max_items: 1
|
||||
-
|
||||
handle: template
|
||||
field:
|
||||
type: template
|
||||
display: Template
|
||||
localizable: true
|
||||
29
resources/blueprints/user.yaml
Normal file
29
resources/blueprints/user.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
title: User
|
||||
fields:
|
||||
-
|
||||
handle: name
|
||||
field:
|
||||
type: text
|
||||
display: Name
|
||||
-
|
||||
handle: email
|
||||
field:
|
||||
type: text
|
||||
input: email
|
||||
display: Email Address
|
||||
-
|
||||
handle: roles
|
||||
field:
|
||||
type: user_roles
|
||||
width: 50
|
||||
-
|
||||
handle: groups
|
||||
field:
|
||||
type: user_groups
|
||||
width: 50
|
||||
-
|
||||
handle: avatar
|
||||
field:
|
||||
type: assets
|
||||
max_files: 1
|
||||
container: assets
|
||||
1
resources/css/cp.css
Normal file
1
resources/css/cp.css
Normal file
@ -0,0 +1 @@
|
||||
/* This is all you. */
|
||||
4
resources/css/site.css
Normal file
4
resources/css/site.css
Normal file
@ -0,0 +1,4 @@
|
||||
@import "tailwindcss";
|
||||
@plugin "@tailwindcss/typography";
|
||||
@source "../views";
|
||||
@source "../../content";
|
||||
15
resources/js/components/fieldtypes/ExampleFieldtype.vue
Normal file
15
resources/js/components/fieldtypes/ExampleFieldtype.vue
Normal file
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div class="example-fieldtype-container">
|
||||
<text-input :value="value" @input="update" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// Learn more at https://statamic.dev/extending/fieldtypes/
|
||||
export default {
|
||||
mixins: [Fieldtype],
|
||||
data() {
|
||||
return {}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
14
resources/js/cp.js
Normal file
14
resources/js/cp.js
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* When extending the control panel, be sure to uncomment the necessary code for your build process:
|
||||
* https://statamic.dev/extending/control-panel
|
||||
*/
|
||||
|
||||
/** Example Fieldtype
|
||||
|
||||
import ExampleFieldtype from './components/fieldtypes/ExampleFieldtype.vue';
|
||||
|
||||
Statamic.booting(() => {
|
||||
Statamic.$components.register('example-fieldtype', ExampleFieldtype);
|
||||
});
|
||||
|
||||
*/
|
||||
1
resources/js/site.js
Normal file
1
resources/js/site.js
Normal file
@ -0,0 +1 @@
|
||||
// This is all you.
|
||||
4
resources/users/groups.yaml
Normal file
4
resources/users/groups.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
# admin:
|
||||
# title: Administrators
|
||||
# roles:
|
||||
# - admin
|
||||
4
resources/users/roles.yaml
Normal file
4
resources/users/roles.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
# admin:
|
||||
# title: Administrator
|
||||
# permissions:
|
||||
# - super
|
||||
1
resources/views/default.antlers.html
Normal file
1
resources/views/default.antlers.html
Normal file
@ -0,0 +1 @@
|
||||
{{ content }}
|
||||
1
resources/views/errors/404.antlers.html
Normal file
1
resources/views/errors/404.antlers.html
Normal file
@ -0,0 +1 @@
|
||||
<p>404 Page not found.</p>
|
||||
17
resources/views/home.antlers.html
Normal file
17
resources/views/home.antlers.html
Normal file
File diff suppressed because one or more lines are too long
15
resources/views/layout.antlers.html
Normal file
15
resources/views/layout.antlers.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ site:short_locale }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ title ?? site:name }}</title>
|
||||
{{ vite src="resources/js/site.js|resources/css/site.css" }}
|
||||
</head>
|
||||
<body class="bg-slate-100 dark:bg-gray-800 font-sans leading-normal text-slate-800 dark:text-gray-400">
|
||||
<div class="mx-auto px-2 lg:min-h-screen flex flex-col items-center justify-center">
|
||||
{{ template_content }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user