Browse Source

Add ID (slug) to the API response

master
bake 2 months ago
parent
commit
deef76ce9d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      themes/fussel.theme/layouts/mate/single.json

+ 2
- 1
themes/fussel.theme/layouts/mate/single.json View File

@@ -1,6 +1,7 @@
{{ define "response" }}
{
"name": {{ .Title | jsonify }}
"id": {{ path.Base .Permalink | jsonify }}
,"name": {{ .Title | jsonify }}
{{ if .Params.Caffeine }}
,"caffeine": {
"content": {{ .Params.Caffeine | jsonify }}

Loading…
Cancel
Save