diff --git a/blog.json b/blog.json index 00f5215..dfb1f23 100644 --- a/blog.json +++ b/blog.json @@ -133,6 +133,15 @@ "top-tags": 64, "legal": "Legal disclaimer: The content of this blog post is my personal opinion, experience, and thoughts as an individual sharing her perspective on this topic. I am not a professional or expert in this area, and the information provided in this blog post is for general informational, educational, entertainment, and recreational purposes only. Accuracy is strived for, but no warranty is given in respect to the reliability or completeness of such content, express or implied. Your acceptance of any reliance on any part of such content from the blog is entirely at your own risk. Under no circumstances shall I, and any of my representatives be held liable for damages arising from access and use of the blog post or linked sites and sources. Furthermore, there might be some links from this blog post to other websites; I have no control over those and do not endorse their content. You are responsible for your actions and subsequent results in using this material. This disclaimer is provided as per the legal basis underlying https://ari.lt/legal and should be considered in further reference to privacy, data security, and liability. Your use of this blog post acknowledges your acceptance of the conditions, and exempts me from any liability that comes from any possible inaccuracy, incompleteness, unreliability, inconsistencies, (un)availability, or any other errors in the information provided herein.", "posts": { + "wfh": { + "title": "wfh", + "description": "wfeh", + "content": "<@:b97a4bd25804d1315833a59d353c7af1716c1c55a811f05dcd35460d73f79b84>", + "keywords": [ + "wfeu" + ], + "created": 1734217062.055763 + }, "install-lineageos-181-xiaomi-redmi-go-tiare": { "title": "How to install LineageOS 18.1 on Xiaomi Redmi GO (Tiare)", "description": "In this blog post, I walk you through a process of installing LineageOS 18.1 with Magisk on Redmi GO (Tiare). I cover various things like recovery, installing, and rooting LineageOS, and later I teach you how to get more swap space for better performance.", diff --git a/scripts/blog.py b/scripts/blog.py index 25139b8..9c371f0 100755 --- a/scripts/blog.py +++ b/scripts/blog.py @@ -765,7 +765,12 @@ def parse_inline_media_embed( {"type": "linebreak"}, { "type": "emphasis", - "raw": f"{mdx['alt']} | \"{mdx['title']}\" by {mdx['credit']} ({mdx['license']}). Purpose: {html_escape(mdx['purpose'])}.", + "raw": f"{mdx['alt']} | \"{mdx['title']}\" by {mdx['credit']} ({mdx['license']}). Purpose: {html_escape(mdx['purpose'])}. Uploaded on {datetime.datetime.utcfromtimestamp(mdx['created']).strftime('%a, %d %b %Y %H:%M:%S GMT')}. ", + }, + { + "type": "link", + "children": [{"type": "text", "raw": f"(raw media here)"}], + "attrs": {"url": source}, }, ], "attrs": {"classes": "media"}, @@ -1673,7 +1678,7 @@ def media(config: dict[str, typing.Any]) -> int: shutil.copy(path, fpath) if ext in {"jpeg", "png"}: - quality_s: str = iinput("image quality % (1-100)") + quality_s: str = iinput("image quality % (1-100)", "100") try: quality: int = int(quality_s) @@ -1712,6 +1717,7 @@ def media(config: dict[str, typing.Any]) -> int: "credit": credit, "ext": ext, "mime": mime, + "created": datetime.datetime.utcnow().timestamp(), } )