1
0
Fork 0
Fork/mirror of Andy Wingo's tekuti
Find a file
Andy Wingo afec0daa99 stop hitting git when fetching post metadata
Inspired by a patch from Aleix Conchillo Flaqué.  Thanks, Aleix!

* tekuti/index.scm (index-specs):
* tekuti/post.scm (reindex-posts, reindex-posts-by-date): Change to have
  the "posts" index be a hash table mapping key -> post.
  "posts-by-date" is a list of keys, from newest to oldest.
  (post-from-git): This is what post-from-key was.
  (post-from-key): New function, pulls out a post from the posts hash
  table.
  (munge-post): Use post-from-git.
  (delete-post): Take the post directly.
  (latest-posts): New awesome helper for fetching the lastest N posts
  that match some predicates.

* tekuti/page-helpers.scm (find-posts-matching): Adapt to post-from-key
  change.
  (published-posts): Remove, replaced with latest-posts.

* tekuti/page.scm (page-admin, page-admin-posts, page-admin-post)
  (page-archives, page-feed-atom): Use the new latest-posts helper.
  (page-admin-delete-post, page-admin-delete-comment, page-show-post)
  (page-new-comment, page-show-tag): Adapt to post-from-key change.

* tekuti/tags.scm (compute-related-posts, compute-related-tags): Adapt
  to post-from-key change.
  (reindex-tags): Use latest-posts.
2012-02-11 18:54:51 +01:00
src src/tekuti is a shell script 2010-11-24 21:37:27 +01:00
tekuti stop hitting git when fetching post metadata 2012-02-11 18:54:51 +01:00
.gitignore autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
acinclude.m4 autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
AUTHORS autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
ChangeLog autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
configure.ac autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
COPYING autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
env.in autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
Makefile.am remove obsolete (tekuti url) 2011-02-22 22:19:30 +01:00
NEWS autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
README autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
wordpress-to-dir.py Change wordpress import to use the newer wordpress database layout. 2010-11-15 22:05:15 +01:00
wordpress-xmlrpc-to-dir.py do not remove numbers and s/./-/ in post keys 2011-02-18 23:36:10 +01:00