Commit graph

95 commits

Author SHA1 Message Date
Peter Molnar
e133e8ceaf - code cleanup and minor refactoring
- removed imghdr that is about to be deprecated and replaced it with filetype
- removed lxml include and with that the oembed parts I ended up never using
2019-05-23 09:06:34 +01:00
Peter Molnar
5693585695 cleaned up syndication copy fetcher 2019-05-22 20:54:10 +01:00
Peter Molnar
1a80fa5456 opensearch merge with search, because it makes more sense 2019-05-22 13:17:22 +01:00
Peter Molnar
e18582840e adding opensearch (xml description j2 template, RSS+XML search results PHP) 2019-05-22 10:15:21 +01:00
Peter Molnar
32bf4994e7 fetch and display u-syndication in case of webmention.io and brid.gy publish can be asked to provide the endpoint 2019-05-05 13:04:36 +01:00
Peter Molnar
8505789e1a fixes to skip webmentions when post is_future; better regex match for markdown images, though it's not utilized yet 2019-04-29 09:33:21 +01:00
Peter Molnar
f196b26b79 - README entry about liveserver rsync+ssh sync
- fail to run if keys.py is missing
- try-catch for sync because it's optional
w
2019-04-10 09:37:24 +01:00
Peter Molnar
1f4a864d59 - url / error cleanup in Home
- 'noping' setting to create ping files, but don't actually send webmentions
- watermark size back to older setting
- changed sharpend in unsharp mask settings
- added is_photos setting which applies if all images are photos
2019-04-10 09:27:37 +01:00
Melroy van den Berg
5f9b0fc625 Add several bugs & improve readme 2019-04-09 22:34:03 +02:00
Peter Molnar
5c39f7e57a old photo publish date for phots that were published somewhere in the past but I don't have an exact date for them 2019-03-24 15:26:55 +00:00
Peter Molnar
5a5723aecc jsonfeed and gopher fixes 2019-03-22 15:49:24 +00:00
Peter Molnar
9f73a9b111 - gopher? gopher.
- no js needed button
- removed donation, I'll figure out something better, sometimes, in the future
- text/plain alternate, also for gopher
- better Pandoc subclassing
- bye message
- first image becomes OG image
- removed duplicate reply symbol
- DAT .well-known prepare, not active
- oembed singular vars, should they ever be needed
- fixed target lookup for webmentions so it works both with index.html or with path only
2019-02-25 22:40:01 +00:00
Peter Molnar
67662b69e9 - nojs banner
- relative url in search
- removed header icon from category
2019-02-17 20:17:35 +00:00
Peter Molnar
9a5c4708d2 - relative urls!
- got rid of bleach and reacji detection, nobody is using it
- removed google vision and google text classification
- 410 for ^/tag and ^/comment
- 80x15 SVG bottom banners
- better code syntax hightlight CSS
2019-02-16 00:14:12 +00:00
Peter Molnar
f47ed93fa0 once more with feeling: on-the-fly representation is schema.org json-ld for everything,
becase it's easy to write, forces me to use some sort of structure, and it might come handy.

However, the end HTML is microformats v1 and v2 - v1 for google, search engines, etc, v2 for anything indieweb.
2019-02-08 23:32:52 +00:00
Peter Molnar
c6755e6125 - no more microdata or RDFa in HTML: went full JSON-LD
- added og: and article: from open graph to meta
- jsonld as tmplvars for most elements
- removed unused commented code
- indention for inline CSS for readability
- merged reactions and comments into a single block
2019-02-07 19:27:15 +00:00
Peter Molnar
e730f53da8 webmention added to ping fed.brid.gy and brid.gy/flickr the proper way 2019-02-03 16:40:34 +00:00
Peter Molnar
da02d9ba95 - removed google things, for now, it's not useful
- relurl filter is ready, but not yet in use, because it's a mess
- reworked yearly archives: all page shows all years, no prev/next
- removed property= mf2 tags
- cleanups in markup
- added searchaction schema.org thing
- removed everything-the-same-size-font from style
2019-01-31 22:23:16 +01:00
Peter Molnar
ce9c806274 - theme cleanup
- menu is now coming from settings
- content block is emptied in base
- removed unused SVG icons
2019-01-21 16:10:27 +00:00
Peter Molnar
c4f56088cc redesign, new home ideas 2019-01-15 22:28:58 +01:00
Peter Molnar
b6ade60807 updated copyright date; switched from frontmatter lib to pyyaml lib + regex because frontmatter is horrible at handling unicode 2019-01-05 11:55:40 +00:00
Peter Molnar
1f8e81c380 re-adding immediate async processing; is_page added to hide a few footer metatada in page type posts; unused symbols removed, but assets updated; footer extended with a lot of extra information; kcl action replaced; 2018-12-27 19:48:06 +00:00
Peter Molnar
26c6ef77ed - now checking images against google vision api (why google, despite my despise of google, the company): vision api is the only one which is simple enough to use and their labelling is reasonable.
- checking text against google natural language api: the strict classification it offers is better, than free folksonomy, if I ever want to connect entries based on topic
unfortunately they don't support Hungarian yet.
2018-12-11 14:06:18 +00:00
Peter Molnar
a8e403ae04 After long discussions, mainly listening and reading, I'm giving up on GPL licencing and moving to Apache 2.0.
The short summary is that while I still sort of believe in what GPL stands for, reality is not that simple to immediately open source everything.

Because GPL is scary, many people avoid it, and one of the main achievements of open source should be that nobody has to reinvent the wheel.
2018-12-03 10:36:10 +00:00
Peter Molnar
de269ef39e - moved Tips from footer to bottom of each singular with an "encourage creation" header
- google vision api binding for images (not in use yet)
- konami code css preparations
- experimental gallery css
- minor code cleanups
2018-12-01 10:43:13 +00:00
Peter Molnar
9af56f89e7 asyncio loop working properly 2018-11-19 16:16:52 +00:00
Peter Molnar
ceca52dd70 - asyncio tasks execution finally are triggered by run() and not immediately, special thanks to https://www.svenknebel.de for helping me figuring it out
- svg cleanup
- adding silly webkit css search box reset
- adding extracted icomoon folder instead of a .zip
- removing pagination from flat categories
- 'follow' button gets highlighted when active
- README refactoring
2018-11-19 14:36:06 +00:00
Peter Molnar
7edea821f4 fix to prevent exception on empty content or summary 2018-11-15 14:05:55 +00:00
Peter Molnar
3bc95edebc micropub queue support added; licence now links to spdx.org and uses the identifiers from there 2018-11-10 20:49:13 +00:00
Peter Molnar
4cb7623355 making yearly pagination a bit more sensible, cleaner; adding trigger to only rebuild old archives if old posts' mtime got modified 2018-11-05 00:27:53 +01:00
Peter Molnar
10045afa09 initial support for marking up entries as events as well, mainly for trips/excursions 2018-11-04 15:45:54 +01:00
Peter Molnar
c9b28af1ab merging copy pasted code + fixing typo problem 2018-11-04 14:40:44 +01:00
Peter Molnar
5dd9cfb1f9 IWC 2018 Berlin: per year archives instead of fixed number split pagination (and a couple of w3c validator fixes) 2018-11-04 13:57:51 +01:00
Peter Molnar
6f6b4d020a various minor extras: twitter account, zapier callback hooks, twitter svg symbol, re-adding shortslug redirects because I broke them 2018-11-03 10:48:37 +01:00
Peter Molnar
2dcf04d632 Atom vs RSS... sigh... well, now I have both. 2018-10-10 22:36:48 +01:00
Peter Molnar
513052d813 - removed json-ld test thingie
- added static file copy per folder for attachments
2018-10-01 10:33:07 +01:00
Peter Molnar
1cd0308bb5 - schema.org things, again
- fixing google disagreements on what is needed in a hatom/hentry
- adding a bit of invisible contact information in json-ld to see if anything picks it up
- fixing border issue in menu css
2018-09-04 22:58:25 +02:00
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