Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hugoarregui/awful-blog

A blog egg for Awful
https://github.com/hugoarregui/awful-blog

Last synced: about 2 months ago
JSON representation

A blog egg for Awful

Awesome Lists containing this project

README

        

# awful-blog

A blog egg for Awful. A blog is a just a collection of entries. A new entry can be created using the make-entry procedure:

[procedure] (make-entry (title resource #!key url tags type extra))

- title: entry title
- resource: if type == redirect, resource is the redirect url,
otherwise it should point to a file.
- url: url in which the entry will be mounted
- tags: entry tags (usually, a list of symbols)
- type: types supported by default are: text, markdown, html, redirect, shtml
- extra: a list extra data

## Index

A very common use case (for me at least) is to define a scm file with an
"index", that is: a scheme file where the entries are statically defined.

There is a syntax sugar to do that:

[macro] (branch ((entry title: url: resource: | branch ) ...)
[base-dir: ] [base-url: ] [tags: type.

#### entry->sxml

[parameter] entry->sxml

entry->sxml conversion procedure, default: entry->sxml/default

### Procedures

#### make-entry

[procedure] (make-entry (title resource #!key url tags type extra))

Creates a new entry

#### define-entry-page

[procedure] (define-entry-page mount-url entry)

Defines an awful page from an entry.

#### filter-entries-by-tag

[procedure] (filter-entries-by-tag entries tags)

#### index-url

[procedure] (index-url mount-url entry)

Returns the entry url at which the index should point to.

#### text-entry->sxml

[procedure] (text-entry->sxml entry)

#### markdown-entry->sxml

[procedure] (markdown-entry->sxml entry)

#### entry->sxml/default

[procedure] (entry->sxml/default entry)

#### html-entry->sxml

[procedure] (html-entry->sxml entry)

#### shtml-entry->sxml

[procedure] (shtml-entry->sxml entry)

#### tsv->sxml

[procedure] (tsv->sxml entry)

### Macros

#### branch

[macro] (branch ((entry title: url: resource: | branch ) ...)
[base-dir: ] [base-url: ] [tags: