You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/digging-deeper/customization.md
+23-8Lines changed: 23 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,21 +124,29 @@ Here are the default settings:
124
124
125
125
### Authors
126
126
127
-
Hyde has support for adding authors in front matter, for example to automatically add a link to your website or social media profiles.
128
-
However, it's tedious to have to add those to each and every post you make, and keeping them updated is even harder.
127
+
Hyde supports adding authors to blog posts, allowing you to automatically include information like display names and website links.
128
+
We even support fields for avatars, biographies, and social media profiles, which you can use in your custom Blade templates.
129
129
130
+
While you can set all this data directly in the front matter, that quickly becomes tedious and hard to maintain.
130
131
Instead, you can predefine authors in the Hyde config. When writing posts, just specify the username in the front matter,
131
132
and the rest of the data will be pulled from a matching entry found in the configuration file.
132
133
133
-
#### Example
134
+
#### Configuration
135
+
136
+
Authors are defined in the `config/hyde.php` file under the `authors` key. Each author is keyed by their username and configured using the `Author::create()` method:
But you only have to specify the username to get all the other data.
156
169
157
170
```yaml
158
171
author: mr_hyde
159
172
```
160
173
174
+
If you want to override some of the data for a specific post, you can do so in the front matter. Additionally, the front matter method is great for guest authors or one-off posts.
175
+
161
176
### Footer
162
177
163
178
Most websites have a footer with copyright details and contact information. You probably want to change the Markdown to include your information, though you are of course welcome to keep the default attribution link!
0 commit comments