M content/2020/05/dont-woof/themanwhoistallishappy.svg => content/2020/05/dont-woof/themanwhoistallishappy.svg +1 -1
@@ 221,4 221,4 @@
font-style: normal;
font-weight: 400;
unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}</style></defs></svg>>
\ No newline at end of file
+}</style></defs></svg>
M fucko/boingo.py => fucko/boingo.py +8 -11
@@ 113,6 113,7 @@ def serve(host, port, show):
content,
project_root / "templates",
project_root / "static",
+ # Watch `out` for hot code reloading, but do not trigger rebuilds ...
out,
]
rebuild_subp = None
@@ 173,17 174,13 @@ def serve(host, port, show):
for event, mask in events:
if event is rwatch_key:
- if events := rwatch.read_events():
- logger.debug("rwatch noticed, rebuilding soon ...")
- rebuild_at = monotonic_ns() + debounce_ns
-
- for event in events:
- path = rwatch.event_path(event)
- logger.debug(
- "watch", path=path, wow=path.is_relative_to(out)
- )
- if path.is_relative_to(out):
- continuum.put_noblock(path.relative_to(out))
+ for watched in rwatch.read_events():
+ path = rwatch.event_path(watched)
+ if path.is_relative_to(out):
+ continuum.put_noblock(path.relative_to(out))
+ else:
+ logger.debug("source modified, rebuilding soon", path=path)
+ rebuild_at = monotonic_ns() + debounce_ns
elif event is httpd_key:
httpd._handle_request_noblock()
M templates/post.html => templates/post.html +1 -1
@@ 10,7 10,7 @@
<%self:meta property="og:title" content="${meta['title']}"/>
% endif
% if 'image' in meta:
- <%self:meta property="og:image" content="${SITE.url}/${str(meta['rstpath'].parent.stem)}/${meta['image']}"/>
+ <%self:meta property="og:image" content="${SITE.url}/${str(meta['rstpath'].parent / meta['image'])}"/>
<%self:meta property="og:image:alt"/>
% endif
% if 'summary' in meta: