fix some stuff
This commit is contained in:
parent
b483ebf869
commit
7e9aa77769
2
run.sh
2
run.sh
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
FLASK_APP=microcosm.wsgi:app flask run --port 10183
|
FLASK_APP=microcosm.wsgi:app poetry run flask run --port 10183
|
||||||
|
|
|
@ -353,7 +353,7 @@ def process_multipart_post():
|
||||||
|
|
||||||
frontmatter["photo"].append(photo_url)
|
frontmatter["photo"].append(photo_url)
|
||||||
|
|
||||||
docstr += f'\n\n<img src="{photo_url}" class="u-photo" />'
|
#docstr += f'\n\n<img src="{photo_url}" class="u-photo" />'
|
||||||
|
|
||||||
docstr += f"\n\n {doc['content']}"
|
docstr += f"\n\n {doc['content']}"
|
||||||
|
|
||||||
|
@ -373,8 +373,8 @@ def process_multipart_post():
|
||||||
frontmatter["thumbnail"] = photo_objects[0][0]
|
frontmatter["thumbnail"] = photo_objects[0][0]
|
||||||
|
|
||||||
docstr = ""
|
docstr = ""
|
||||||
for photo in photo_objects:
|
#for photo in photo_objects:
|
||||||
docstr += f"<img src=\"{photo[0]}\" alt=\"{photo[1]}\" class=\"u-photo\" /> \n\n {doc['content']}"
|
# docstr += f"<img src=\"{photo[0]}\" alt=\"{photo[1]}\" class=\"u-photo\" /> \n\n {doc['content']}"
|
||||||
else:
|
else:
|
||||||
docstr = doc.get("content", "") if "content" in doc else ""
|
docstr = doc.get("content", "") if "content" in doc else ""
|
||||||
|
|
||||||
|
@ -448,8 +448,8 @@ def process_json_post():
|
||||||
]
|
]
|
||||||
frontmatter["thumbnail"] = frontmatter["photo"][0]["value"]
|
frontmatter["thumbnail"] = frontmatter["photo"][0]["value"]
|
||||||
docstr = ""
|
docstr = ""
|
||||||
for photo in photo_objects:
|
#for photo in photo_objects:
|
||||||
docstr += f'<img src="{photo[0]}" alt="{photo[1]}" class="u-photo" /> \n\n'
|
# docstr += f'<img src="{photo[0]}" alt="{photo[1]}" class="u-photo" /> \n\n'
|
||||||
|
|
||||||
for content in props.get("content", []):
|
for content in props.get("content", []):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue