stagit-fork

static git page generator - fork with some customisations
git clone https://git.ortlepp.eu/stagit-fork.git/
Log | Files | Refs | README | LICENSE

commit 27ed596c480a0feed503cc9b3efa98094f6db8ec
parent 6537d1b01a2da2f2e406f72802c0b21c2e8fd182
Author: Thorsten Ortlepp <post@ortlepp.eu>
Date:   Sat, 29 Feb 2020 15:49:19 +0100

Added meta element for viewport

Diffstat:
Mstagit-index.c | 1+
Mstagit.c | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -66,6 +66,7 @@ writeheader(FILE *fp) fputs("<!DOCTYPE html>\n" "<html>\n<head>\n" "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" + "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n" "<title>", fp); xmlencode(fp, description, strlen(description)); fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath); diff --git a/stagit.c b/stagit.c @@ -344,6 +344,7 @@ writeheader(FILE *fp, const char *title) fputs("<!DOCTYPE html>\n" "<html>\n<head>\n" "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" + "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n" "<title>", fp); xmlencode(fp, title, strlen(title)); if (title[0] && strippedname[0])