-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.md.20201101-11:02:35.bak
139 lines (97 loc) · 2.45 KB
/
README.md.20201101-11:02:35.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<a href="https://photon-platform.net/">
<img src="https://photon-platform.net/user/images/photon-logo-banner.png" alt="photon" title="photon" align="right" height="120" />
</a>
# photon ✴ Person
## v0.1.0
> templates and styles for person content
---
![GitHub release](https://img.shields.io/github/v/tag/photon-platform/grav-theme-photon)
- [configuration](#configuration)
- [templates](#templates)
- [scaffolds](#scaffolds)
- [scss](#scss)
- [assets](#assets)
- [languages](#languages)
# configuration
blueprints.yaml
fields:
- enabled
- built_in_css
- built_in_js
Before configuring this plugin, you should copy the `user/plugins/photon-person/photon-person.yaml` to `user/config/plugins/photon-person.yaml` and only edit that copy.
Here is the default configuration and an explanation of available options:
```
enabled: true
built_in_css: true
built_in_js: true
description: Custom Text added by the **photon-person** plugin (disable plugin to remove)
```
Note that if you use the admin plugin, a file with your configuration, and named photon-person.yaml will be saved in the `user/config/plugins/` folder once the configuration is saved in the admin.
# blueprints
```sh
blueprints
└── person.yaml
```
### Person
person.yaml
extends: article
fields:
- header.data.person
- .@type
- .givenName
- .familyName
- .email
- .telephone
- .url
- header.data.person.address
- header.data.person.address.streetAddress
- header.data.person.address.postOfficeBoxNumber
- header.data.person.address.addressLocality
- header.data.person.address.addressRegion
- header.data.person.address.postalCode
- header.data.person.address.addressCountry
# templates
```sh
templates
├── _articles
│ ├── person-excerpt.html.twig
│ └── person.html.twig
├── _json-ld
│ └── person.html.twig
└── person.html.twig
```
# scaffolds
```sh
scaffolds
└── person.md
```
# scss
```sh
scss
├── articles
│ └── _person.scss
├── templates
│ └── _person.scss
└── person.scss
```
# assets
```sh
assets
├── person.css
├── person.css.map
└── person.js
```
# languages
```sh
languages
└── en.yaml
```
## Installation
- all photon plugins are installed as git submodules. More on that later.
## Configuration
## Usage
Select template type when creating a new page
## Credits
## To Do
- [ ] Future plans, if any
copyright © 2020