test handling alt from post request
This commit is contained in:
parent
d1e0106373
commit
01ff701fef
|
@ -344,7 +344,12 @@ def process_multipart_post():
|
||||||
if "thumbnail" not in frontmatter:
|
if "thumbnail" not in frontmatter:
|
||||||
frontmatter["thumbnail"] = photo_url
|
frontmatter["thumbnail"] = photo_url
|
||||||
|
|
||||||
frontmatter["photo"].append(photo_url)
|
if "mp-photo-alt[]" in request.form:
|
||||||
|
alt = request.form["mp-photo-alt[]"][i]
|
||||||
|
else:
|
||||||
|
alt = ""
|
||||||
|
|
||||||
|
frontmatter["photo"].append({"value": photo_url, "alt": alt})
|
||||||
|
|
||||||
# docstr += f'\n\n<img src="{photo_url}" class="u-photo" />'
|
# docstr += f'\n\n<img src="{photo_url}" class="u-photo" />'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue