1
0
Fork 0
Commit graph

155 commits

Author SHA1 Message Date
7e4d5611c1 Add some classes to the projects table
These classes should make all the tables look the same, the other way
was messy.
2012-09-16 15:43:01 +02:00
d71be13c37 Move git-last-update to git.scm 2012-09-16 15:42:25 +02:00
10e7025d6f Add git-last-update
Checks to see how long ago the last update was, returns a string
representing the relative time period.
2012-09-16 15:41:51 +02:00
bfed5ed044 Don't let expanduser fail on absolute path 2012-09-16 15:31:30 +02:00
8d15d4e7f9 Correctly show description and update time for all
Not just to top-level projects anymore.
2012-09-11 22:28:49 +02:00
619d4678ba Hide the `.git' suffix from projects 2012-09-11 22:22:35 +02:00
3c72a6ffb2 Only show permitted projects and subdirs
Permitted in this context means read access for projects and
execute (list) access for sub directories.
2012-09-11 22:21:14 +02:00
cf5d90a257 Show subfolders separately
Recurse into subfolders when showing project list.
2012-09-11 21:44:34 +02:00
d2f68a3423 Condense and stripe projects table 2012-09-11 21:06:45 +02:00
d19ca0430e Add simple project list 2012-09-11 18:32:27 +02:00
5c7f24773c Merge branch 'bootstrap' into personal 2012-09-10 11:08:48 +02:00
be1d54ad32 Bootstrap change page 2012-09-10 11:05:43 +02:00
5366157a75 Remove sidebar-ul 2012-09-10 11:03:49 +02:00
4258614af9 Bootstrap admin page 2012-09-10 10:58:32 +02:00
35c56844aa Bootstrap post page 2012-09-10 10:13:57 +02:00
b6faf6fded Turn footer into small
* tekuti/template.scm (templatize): Replace `div.footer' with
  `p small', looks more like fine-print.
2012-09-09 01:30:21 +02:00
e9087b948c Turn footer into small
* tekuti/template.scm (templatize): Replace `div.footer' with
  `p small', looks more like fine-print.
2012-09-09 01:27:53 +02:00
d66887ef56 Add separate index page
Move the old blog list to `/blog/'

* tekuti/config.scm (*index-content*): New configuration, SXML
  contents of the index page.  Should be overridden in any usual way.

* tekuti/page.scm (page-blog): Renamed from `page-index'.
  (page-index): New page.  Just returns `*index-content*'.

* tekuti/web.scm (choose-handler): Send `/blog/' to `page-blog'.
2012-09-09 01:26:33 +02:00
c32c4f6240 Add horizontal ellipsis to parsed entities 2012-08-26 01:26:24 +02:00
99d03989b5 Return sidebar-ul, still needed. Oops 2012-08-25 21:39:42 +02:00
6030bc2cdc Improve the look of the post meta info
* tekuti/page-helpers.scm (show-post): Show meta info in the `h1' in a
  `small' block, not in a `h3'.
2012-08-25 21:32:15 +02:00
428ea7c3b0 Improve bootstrappiness of sidebar
* tekuti/page-helpers.scm: Don't put the sidebar in a `ul'.
  (main-sidebar): Remove the image after "subscribe".  Add a search
  icon next to the search bar.  Don't put the tags cloud in a `ul'.
2012-08-25 21:31:04 +02:00
138c65c01b Basic bootstrap layout
* tekuti/config.scm (*bootstrap-base*): New setting.  This variable
  should be a relative or absolute URL to the location of the
  bootstrap base, where the `css', `img' and `js' directories
  containing the correct files.

* tekuti/page.scm (page-index): Place the `main-sidebar' in a column
  next to the main text instead of above it.

* tekuti/template.scm (templatize): Make the template more
  bootstrappy.
2012-08-25 18:22:28 +02:00
Andy Wingo
a08ae0c9a7 make urlish? less -ish
* tekuti/util.scm (urlish?): Use string->uri.
2012-06-03 23:49:14 +02:00
Andy Wingo
085b4c76ef faster git-rev-parse
* tekuti/git.scm (git-rev-parse): Try to read the ref ourselves, first.
  Fall back to using git if that doesn't work (for example, if it's a
  packed ref).
2012-02-15 22:31:54 +01:00
Andy Wingo
8034123827 no sxml, no body
* tekuti/page-helpers.scm (respond): Give no body if there is no SXML.
  Fixes perhaps spurious errors raised by Guile's web server.
2012-02-14 17:29:08 +01:00
Andy Wingo
82c7790016 remove trailing whitespace 2012-02-12 20:48:50 +01:00
Andy Wingo
29a6144123 handle HEAD requests (requires Guile from today)
* tekuti/request.scm (request-path-case): Dispatch HEAD requests as GET
  requests, relying on new Guile web servers to elide the HEAD body.
2012-02-12 13:46:22 +01:00
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
Andy Wingo
f89e4b128b better errors when reindexing
* tekuti/index.scm (maybe-reindex): Reindex within a
  call-with-error-handling.
2012-02-11 18:38:21 +01:00
Andy Wingo
7a1944b240 per-tag feed links
* tekuti/page.scm (page-show-tag): Add a feed link here.
2011-04-26 15:39:06 +02:00
Andy Wingo
62a351d8d5 optimization for with=foo
* tekuti/page.scm (page-feed-atom): Reduce "with=unknown" to nothing.
2011-04-26 15:12:05 +02:00
Andy Wingo
cee672f117 multiple with query args add tags to the set
* tekuti/page.scm (page-feed-atom): Reimplement more clearly, and give
  "with" inclusionary meaning.
2011-04-25 20:30:57 +02:00
Andy Wingo
08e1e58f1f add ?with=guile&without=gnu
* tekuti/page.scm (page-feed-atom): Reimplement Brian's thing with
  "with" and "without" query args, to allow for multiple tags to be
  included or excluded.

* tekuti/request.scm (request-query-ref-all): New helper.
2011-04-25 20:06:11 +02:00
Andy Wingo
26216a593a with-i/o procedures close their ports
* tekuti/util.scm (with-output-to-string*, with-input-from-string*): New
  hacky helpers, which close the port before returning the string or
  result.  Hopefully reduce pressure on the GC.
  (shell:quote):
* tekuti/git.scm (git-commit-reverse-operations, with-output-to-blob*)
  (with-input-from-blob*):
* tekuti/filters.scm (wordpress->sxml): Use the string* procedures.
2011-04-25 19:10:07 +02:00
Brian Gough
a4bad7a561 add atom feeds for tags 2011-04-25 19:05:49 +02:00
Andy Wingo
efc25df8f4 don't bother allocating iconv info on pipe
* tekuti/git.scm (run): Don't set encoding on pipe, as we just use
  bytevector io anyway.
2011-02-22 23:52:11 +01:00
Andy Wingo
a05d9a5df8 use ice-9 binary-ports
* tekuti/git.scm:
* tekuti/request.scm: Use ice-9 binary-ports instead of (rnrs io
  ports).
2011-02-22 22:21:30 +01:00
Andy Wingo
1636c96f9f remove obsolete (tekuti url)
* tekuti/url.scm: Remove.
* Makefile.am: Remove url.scm

* tekuti/post.scm: Remove reference to (tekuti url).
  (parse-post-data): Use uri-encode.
2011-02-22 22:19:30 +01:00
Aleix Conchillo Flaque
800e7d9a05 do not remove numbers and s/./-/ in post keys 2011-02-18 23:36:10 +01:00
Andy Wingo
fce14fbddf s/unparse-uri/uri->string/ 2011-02-18 23:34:57 +01:00
Aleix Conchillo Flaque
2a87435f81 fixes due to (web http) updates 2011-02-18 23:34:27 +01:00
Andy Wingo
a357b2a0dc support for deleting post comments 2011-02-18 23:34:17 +01:00
Andy Wingo
9ec70ebff5 add support for deleting posts 2011-02-18 23:31:42 +01:00
Aleix Conchillo Flaque
66e04753f6 wordpress-xmlrpc: added usage help 2011-02-18 23:28:46 +01:00
Aleix Conchillo Flaque
cffa7dea90 wordpress-xmlrpc: more youtube/googlevideo updates 2011-02-18 23:27:50 +01:00
Aleix Conchillo Flaque
612577eca9 inform the user of malformed xhtml internal error when publishing 2011-02-18 23:27:45 +01:00
Aleix Conchillo Flaque
0dee43b2a0 wordpress-xmlrpc: use video.google.com instead of .es 2011-02-18 23:26:18 +01:00
Aleix Conchillo Flaque
199ad57615 wordpress-xmlrpc: fix googlevideo and youtube urls 2011-02-18 23:26:13 +01:00
Aleix Conchillo Flaque
606ecad873 wordpress-xmlrpc: fix media html tags (again) 2011-02-18 23:26:09 +01:00