Commit graph

58 commits

Author SHA1 Message Date
Peter Molnar
55cc0f3307 - webmention sending is back (only for RE: for now) via Telegraph
- removed the abomination experiment (aka microdata)
- added svg source icomoon for the possibility to extend later
- rsync moved into nasg.py itself, so the ordering of render - sync - webmentions is ok
2018-08-15 11:02:59 +01:00
Peter Molnar
fc2288c2fc - removed python markdown traces
- fixed gone_re php regexes
- better nav header layout
- follow page instead of direct RSS link
- logger in settings for nasg instead of direct logging
- prism.js only for articles with language code blocks
- added webmention.io webhook to email template
2018-08-08 09:42:42 +01:00
Peter Molnar
5ec437de8f - CSS fixes and simplifications
- prism.js inlined (only for entries with code blocks)
- pandoc is a subclass is str now
- added 'nasg' logger
- minor bugfixes
2018-08-04 09:30:26 +01:00
Peter Molnar
d3fbf2e51f Back To Pandoc
So, Python Markdown is a bottomless pit of horrors, including crippling parsing bugs,
random   out of nowhere, lack of features. It's definitely much faster, than
Pandoc, but Pandoc doesn't go full retard where there's a regex in a fenced code block,
that happens to be a regex for markdown elements.

Also added some ugly post string replacements to make Pandoc fenced code output work
with Prism:
instead of the Pandoc <pre class="codelang"><code>, Prism wants
<pre><code class="language-codelang>, so I added a regex sub, because it's 00:32.
2018-08-04 00:28:55 +01:00
Peter Molnar
96d0c238d6 Back on prismjs <https://prismjs.com/> for syntax highlighting.
While Pandoc was generating something sane, the output of CodeHilite puts silly amount of extra text and makes the HTML output completely unreadable.

In the end, it still looks like prism.js is a nice and solid solution, even if it's JS.

I'll explore other options, but so far, it's either back to Pandoc, or sticking with Prism.
2018-08-02 22:47:49 +01:00
Peter Molnar
3d68fb335c re-adding review 2018-07-31 17:20:19 +02:00
Peter Molnar
9b38f3f0e4 JSON-LD and JSONFeed, you know what? Nope. 2018-07-27 14:55:21 +01:00
Peter Molnar
2da2618a35 minor bugfixes 2018-07-25 20:29:47 +01:00
Peter Molnar
074e80289c - simplifications
- re-added future support
- fix for exists of category
- new footer
- footnote display fixes
2018-07-25 13:24:31 +01:00
Peter Molnar
eee7d8bb99 added mtime for sitemap, function for makecomments from webmention.io 2018-07-23 11:04:48 +01:00
Peter Molnar
1c17232a6a re-added enclosure for feed and webmention.io parsing for new comments before moving into rendering 2018-07-22 17:59:26 +01:00
Peter Molnar
864bb54496 re-adding index.php magic instead of nginx rules; given that I need to use php
for the search functionality, it's better to keep this contained instead of
adding one more black magic (eg. nginx rules)

Note: I've sort of exhausted client-side JS search options; the smallest index
I was able to build was still a few megabytes, way to large for my taste, hence
the SQLite FTS4 python + PHP solution. Yes, it's ugly, but it works, and PHP
is available nearly everywhere. Nearly.

Without something that can set headers properly, it's impossible to do real
HTTP 410 Gone, and even HTTP 301 or 302, so it's very likely I'm stuck with the
minimal PHP solution.
2018-07-22 14:52:32 +01:00
Peter Molnar
652d062d31 search is now PHP and is back in place 2018-07-22 11:33:59 +01:00
Peter Molnar
e16a7e3dea js search ideas based on elasticlunr.js - never going to be used, only here as a commit for future reference, if I ever need to revisit the idea of executing JS from python 2018-07-22 08:48:47 +01:00
Peter Molnar
bff9513eaf v4.0a 2018-07-20 16:45:42 +01:00
Peter Molnar
49bcb80e27 new pandoc function with a bit more sanity on usage and autopep cleanup 2018-06-29 11:40:22 +02:00
Peter Molnar
0f7eb328c0 re-licencing to LGPLv3 2018-06-24 20:02:57 +01:00
Peter Molnar
0d1663d0da dual contrast CSS 2018-06-17 17:30:50 +00:00
Peter Molnar
ab668674f4 - new panorama special case on image resizing
- new .dist config
2018-06-16 16:55:02 +00:00
Peter Molnar
af50aef4b8 panoramas are special, so treat them accordingly 2018-06-13 08:27:23 +00:00
Peter Molnar
7ea5788388 autopep8 2018-06-08 09:17:57 +00:00
Peter Molnar
ce9ddb451a before autopep 2018-06-08 09:14:39 +00:00
Peter Molnar
fe4ce23776 adding webmention update/delete support and re-adding enclosure to feed 2018-06-01 09:49:14 +00:00
Peter Molnar
5e0dc9e0d9 version 2.2.0 - mostly design cleanups 2018-04-30 19:44:04 +00:00
Peter Molnar
f84088f311 v2.1.0
- changing version numbering
- automated webmentions sending
2018-03-29 16:07:53 +00:00
Peter Molnar
a506d9d18f - added special templates option per category
- changed layout for journal/articles: single page, per year grouping
- adaptimg wide view
2018-03-28 14:19:14 +00:00
Peter Molnar
ed89984c3f readme updates, extra functions around photo inserts 2018-03-21 15:42:36 +00:00
Peter Molnar
38fdc6bd33 version 2.0 finalized 2017-12-17 17:37:32 +00:00
Peter Molnar
5d3c0b538b replacing template based feed generator with 'real' feed generator 2017-11-30 17:01:14 +00:00
Peter Molnar
aaaf494063 autopep8 2017-11-10 16:04:05 +00:00
Peter Molnar
07830313e4 cleanup commit before more lint and autopep tests 2017-11-10 15:56:45 +00:00
Peter Molnar
471cb8d214 re-adding brid.gy flickr link to photos, refined payment urls to monzo and paypal 2017-11-03 22:54:36 +00:00
Peter Molnar
b5eb93cd8c adding last.fm to archiver 2017-11-01 13:19:39 +00:00
Peter Molnar
3bef504be1 removed enclosure from rss; re-added initial steps for sending webmentions for replies; minor cleanups 2017-10-30 10:47:08 +00:00
Peter Molnar
0fc792fe00 fixing missing active page indicator in header; moved db classes to shared; fixed webmention parse error if content is missing; is_uptodate of singular based on last comment time, so singular gets re-rendered, but category not 2017-10-30 09:24:46 +00:00
Peter Molnar
e5518ba4a1 adding XRay as parser for webmentions; processing incoming webmentions; moved notify via telegram to shared 2017-10-29 19:11:01 +00:00
Peter Molnar
2711276e08 alpha3, webmentions still not put back 2017-10-28 19:08:40 +01:00
Peter Molnar
c1d44eb40b alpha2, re-added replies and reactions 2017-10-27 15:56:05 +01:00
Peter Molnar
4a699ef9f5 2.0-alpha1: tags dropped, favs dropped, bookmarks dropped, reposts dropped, better async rendering; TODO comments, websub pings, webmentions 2017-10-27 10:29:33 +01:00
Peter Molnar
8cbb86e5f8 cleanups and minor bugfixes 2017-09-20 11:16:45 +00:00
Peter Molnar
c7ab932ac7 offlinecopy moved to wget instead of python requests 2017-09-04 12:53:59 +00:00
Peter Molnar
185e9d200c orientation for images, license for everything 2017-08-02 10:32:59 +00:00
Peter Molnar
cb755d07d7 nasg class cleanup, webmention hardening 2017-07-26 10:23:06 +00:00
Peter Molnar
54464cc78a replacing licence with GPLv3 because Stallman was right; refactored search; added taxonomy indexes 2017-07-17 13:21:28 +00:00
Peter Molnar
ba08942632 merging loglevel array to shared 2017-07-05 21:09:06 +00:00
Peter Molnar
68c796f924 pesos with oauth1 and 2 working 2017-07-04 11:30:32 +00:00
Peter Molnar
70bd917de4 updated 2017-06-28 11:20:26 +00:00
Peter Molnar
7c0daa0904 code spacing cleanup + adding tagmyloc 2017-06-12 14:40:30 +00:00
Peter Molnar
6078096ee3 adding pesos code and cleanups 2017-06-12 14:17:29 +00:00
Peter Molnar
8c097971a0 making things faster, cleaning up bits and fixing problems with comments 2017-06-04 10:38:36 +00:00