use LOGO and update video player template
This commit is contained in:
parent
77b6102e84
commit
3d8711dc38
2 changed files with 8 additions and 5 deletions
|
@ -57,6 +57,9 @@ There is a markup language which makes writing long blog posts, memex entries, e
|
||||||
// shorthand for an audio player
|
// shorthand for an audio player
|
||||||
{_/path/to/media}
|
{_/path/to/media}
|
||||||
|
|
||||||
|
// shorthand for a video player
|
||||||
|
{]id|/path/to/video|/path/to/thumbnail|fallback alt text for thumbnail image if HTML5 video is not supported}
|
||||||
|
|
||||||
// shorthand for paragraphs, can embed other markup inside it
|
// shorthand for paragraphs, can embed other markup inside it
|
||||||
{¶graph text {with a link} {@and some bold text}}
|
{¶graph text {with a link} {@and some bold text}}
|
||||||
|
|
||||||
|
@ -113,7 +116,7 @@ The following macros are available in `config.h` to customize to your liking.
|
||||||
- **TAG\_BODY\_SIZE**: max size for an individual markup body (ie, a markup token as above, minus the curly brackets and the rune), in bytes
|
- **TAG\_BODY\_SIZE**: max size for an individual markup body (ie, a markup token as above, minus the curly brackets and the rune), in bytes
|
||||||
- **NAME**: the title of the site
|
- **NAME**: the title of the site
|
||||||
- **DOMAIN**: currently unused
|
- **DOMAIN**: currently unused
|
||||||
- **LOGO**: currently unused
|
- **LOGO**: HTML to put in the header h1 verbatim
|
||||||
- **ABOUT**: HTML content for the front page, placed between `<header>` and `<nav>`
|
- **ABOUT**: HTML content for the front page, placed between `<header>` and `<nav>`
|
||||||
- **CONTACT**: the contact info line at the bottom of every page (except the front page, where it would typically already be in **@ABOUT**
|
- **CONTACT**: the contact info line at the bottom of every page (except the front page, where it would typically already be in **@ABOUT**
|
||||||
- **FOOTER**: arbitrary footer HTML
|
- **FOOTER**: arbitrary footer HTML
|
||||||
|
|
8
main.c
8
main.c
|
@ -293,7 +293,7 @@ int fpvideo(FILE* f, char* s) {
|
||||||
id,
|
id,
|
||||||
href,
|
href,
|
||||||
thumb);
|
thumb);
|
||||||
fprintf(f, "<a href='%s'>%s</a>\n", href, alt);
|
fprintf(f, "<a href='%s'><img src='%s' alt=''%s'></a>\n", href, thumb, alt);
|
||||||
fprintf(f, "</video>\n");
|
fprintf(f, "</video>\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -590,9 +590,9 @@ FILE* build(FILE* f, Lexicon* l, char* name, char* srcpath) {
|
||||||
/* header */
|
/* header */
|
||||||
fputs("<header>\n", f);
|
fputs("<header>\n", f);
|
||||||
if (ismetanav(name)) {
|
if (ismetanav(name)) {
|
||||||
fputs("<h1>" NAME "</h1>\n", f);
|
fputs("<h1>" LOGO "</h1>\n", f);
|
||||||
} else {
|
} else {
|
||||||
fputs("<h1><a href='/'>" NAME "</a></h1>\n", f);
|
fputs("<a href='/'><h1>" LOGO "</h1></a>\n", f);
|
||||||
}
|
}
|
||||||
|
|
||||||
fputs("</header>\n", f);
|
fputs("</header>\n", f);
|
||||||
|
@ -690,7 +690,7 @@ void map(Lexicon* l) {
|
||||||
fprintf(siteMap, "<ul>\n");
|
fprintf(siteMap, "<ul>\n");
|
||||||
while (i < n) {
|
while (i < n) {
|
||||||
char filepath[64], filename[64];
|
char filepath[64], filename[64];
|
||||||
if (d[i]->d_name[0] != '.') {
|
if (d[i]->d_name[0] != '.' && !scmp(d[i]->d_name, "meta.nav.htm")) {
|
||||||
scpy(d[i]->d_name, filepath, 64);
|
scpy(d[i]->d_name, filepath, 64);
|
||||||
fprintf(
|
fprintf(
|
||||||
siteMap,
|
siteMap,
|
||||||
|
|
Loading…
Reference in a new issue