bloggy 0.2.3__py3-none-any.whl → 0.2.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
bloggy/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.2.3"
1
+ __version__ = "0.2.5"
2
2
 
3
3
  from .core import app, rt, get_root_folder, get_blog_title
4
4
 
bloggy/core.py CHANGED
@@ -518,6 +518,12 @@ class ContentRenderer(FrankenRenderer):
518
518
  self.fn_counter += 1
519
519
  n, target = self.fn_counter, token.target
520
520
  content = self.footnotes.get(target, f"[Missing footnote: {target}]")
521
+ if "\n" in content:
522
+ content = content.replace("\r\n", "\n")
523
+ placeholder = "__BLOGGY_PARA_BREAK__"
524
+ content = content.replace("\n\n", f"\n{placeholder}\n")
525
+ content = content.replace("\n", "<br>\n")
526
+ content = content.replace(f"\n{placeholder}\n", "\n\n")
521
527
  rendered = mst.markdown(content, partial(ContentRenderer, img_dir=self.img_dir, current_path=self.current_path)).strip()
522
528
  if rendered.startswith('<p>') and rendered.endswith('</p>'): rendered = rendered[3:-4]
523
529
  style = "text-sm leading-relaxed border-l-2 border-amber-400 dark:border-blue-400 pl-3 text-neutral-500 dark:text-neutral-400 transition-all duration-500 w-full my-2 xl:my-0"
@@ -14,8 +14,8 @@
14
14
  .sidenote.show { display: block; float: left; clear: both; width: 95%; margin: 0.75rem 2.5%; position: relative; }
15
15
  }
16
16
  @media (min-width: 1280px) {
17
- .sidenote { display: block; float: right; clear: right; width: 14rem; margin-right: -16rem; margin-top: 0.25rem; margin-bottom: 0.75rem; }
17
+ .sidenote { display: block; float: right; clear: right; width: 18rem; margin-right: -20rem; margin-top: 0.25rem; margin-bottom: 0.75rem; }
18
18
  .sidenote.hl { background-color: rgba(221, 166, 55, 0.1); }
19
19
  .dark .sidenote.hl { background-color: rgba(96, 165, 250, 0.1); }
20
20
  }
21
-
21
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bloggy
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Summary: A lightweight, elegant blogging platform built with FastHTML
5
5
  Home-page: https://github.com/yeshwanth/bloggy
6
6
  Author: Yeshwanth
@@ -51,10 +51,16 @@ title: Bloggy
51
51
  Styles without limits
52
52
  </p>
53
53
 
54
+
54
55
  ---
55
56
 
56
57
  Bloggy is a Python‑first blogging tool: drop in Markdown, get a site instantly.
57
- Simple by default, infinitely customizable for CSS lovers.
58
+ Simple by default. Infinitely customizable for CSS lovers.[^1]
59
+
60
+ [^1]: If you're curious about how the intro was styled, [visit this page](https://github.com/sizhky/bloggy/blob/fa9a671931ad69b24139ba9d105bbadd8753b85b/custom.css#L36C1-L36C13).<br>
61
+ Check out the [Theming & CSS](bloggy%20manual/theming.md) guide for details on customizing your blog's appearance.
62
+
63
+ ---
58
64
 
59
65
  ## Quick Start
60
66
  1. Install Bloggy:
@@ -0,0 +1,13 @@
1
+ bloggy/__init__.py,sha256=CXJuJqjh0GtdZAT35gicjEu1jkgrUDE5nfMlhuiP02g,158
2
+ bloggy/build.py,sha256=m-GcYDSCtk5y-sTn1_8kOFlaGEv10GL9Uid2pgz52GQ,24218
3
+ bloggy/config.py,sha256=5lcLFgnYkk-_o6_vGK-vaNk9vPJ-kOkGbnBJ9bGIUdc,4592
4
+ bloggy/core.py,sha256=NCOncMB85gtcx6cUlozIN3PHKtYkhDQNGHZxq852Szk,101060
5
+ bloggy/main.py,sha256=_WafOavniToqpyRVVwhIavhK6UBmzbuR3YKDHWRzvDE,4093
6
+ bloggy/static/scripts.js,sha256=13OU0HVZJQRxU2GL-iWraw3Lh_IDeMlsL7cfIro_2b0,45131
7
+ bloggy/static/sidenote.css,sha256=ZzZGWMGtEtZrGb-UKc8CkQdzGsxNYgq8ojWSTnRdtuI,1047
8
+ bloggy-0.2.5.dist-info/licenses/LICENSE,sha256=xV8xoN4VOL0uw9X8RSs2IMuD_Ss_a9yAbtGNeBWZwnw,11337
9
+ bloggy-0.2.5.dist-info/METADATA,sha256=M9NFfa9rZWxIN21YMAFXedtLPWTpBK3ZlSOea2EMJmk,7970
10
+ bloggy-0.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ bloggy-0.2.5.dist-info/entry_points.txt,sha256=CNKjPiT6yMMEPbeyHXsiN0xHMwBqSo-kO3J5ClISDW4,43
12
+ bloggy-0.2.5.dist-info/top_level.txt,sha256=YjR92iFE4BhzWG-Hg2l55N0xUNv5207y-daHjWja1aI,7
13
+ bloggy-0.2.5.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- bloggy/__init__.py,sha256=762R7tMFCoJX-ZnVeI2QvBmIL8PQdPvjGmE_MUPjuOc,158
2
- bloggy/build.py,sha256=m-GcYDSCtk5y-sTn1_8kOFlaGEv10GL9Uid2pgz52GQ,24218
3
- bloggy/config.py,sha256=5lcLFgnYkk-_o6_vGK-vaNk9vPJ-kOkGbnBJ9bGIUdc,4592
4
- bloggy/core.py,sha256=YNGysvlmqcvbcTS7GhjNQTUm72sVcDuBHp-30sFEjnU,100740
5
- bloggy/main.py,sha256=_WafOavniToqpyRVVwhIavhK6UBmzbuR3YKDHWRzvDE,4093
6
- bloggy/static/scripts.js,sha256=13OU0HVZJQRxU2GL-iWraw3Lh_IDeMlsL7cfIro_2b0,45131
7
- bloggy/static/sidenote.css,sha256=11XFyPV90fL4rzXfGHgjgOegBvKDqp-d3IWgiOwRVQI,1046
8
- bloggy-0.2.3.dist-info/licenses/LICENSE,sha256=xV8xoN4VOL0uw9X8RSs2IMuD_Ss_a9yAbtGNeBWZwnw,11337
9
- bloggy-0.2.3.dist-info/METADATA,sha256=fC_kTMgPWLUNKKpSQFAi5Ql7Qpumrq0DrQRTKQ6P2N0,7657
10
- bloggy-0.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- bloggy-0.2.3.dist-info/entry_points.txt,sha256=CNKjPiT6yMMEPbeyHXsiN0xHMwBqSo-kO3J5ClISDW4,43
12
- bloggy-0.2.3.dist-info/top_level.txt,sha256=YjR92iFE4BhzWG-Hg2l55N0xUNv5207y-daHjWja1aI,7
13
- bloggy-0.2.3.dist-info/RECORD,,
File without changes