mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
Merge pull request #435 from cjeller1592/lang-metadata
Add conditional for preserving lang metadata
This commit is contained in:
commit
e58e457b25
1 changed files with 7 additions and 2 deletions
|
@ -194,8 +194,13 @@
|
|||
body: post.content,
|
||||
title: post.title,
|
||||
font: font,
|
||||
{{ if or .Post.Slug .Post.Id }}
|
||||
};
|
||||
{{ else }}
|
||||
lang: lang
|
||||
};
|
||||
{{ end }}
|
||||
|
||||
{{ if .Post.Slug }}
|
||||
var url = "/api/collections/{{.EditCollection.Alias}}/posts/{{.Post.Id}}";
|
||||
{{ else if .Post.Id }}
|
||||
|
|
Loading…
Reference in a new issue