summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOscar Benedito <oscar@oscarbenedito.com>2020-06-20 02:16:34 +0200
committerOscar Benedito <oscar@oscarbenedito.com>2020-06-22 22:06:27 +0200
commit3c1a822f60e08f2ad2f9920984b5d7f948367101 (patch)
tree16dd15a63f09f89be70b7bf3b71b595be4359f33
parent467dfeb8f4bf2dd1ddb69e5c9592147acb425aab (diff)
favicon: png to ico
-rw-r--r--Makefile6
-rwxr-xr-xexample_create.sh4
-rw-r--r--favicon.icobin0 -> 38078 bytes
-rw-r--r--favicon.pngbin505 -> 0 bytes
-rw-r--r--stagit-index.12
-rw-r--r--stagit-index.c2
-rw-r--r--stagit.12
-rw-r--r--stagit.c2
8 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index d5f4876..2c8b1f8 100644
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ dist:
rm -rf ${NAME}-${VERSION}
mkdir -p ${NAME}-${VERSION}
cp -f ${MAN1} ${HDR} ${SRC} ${COMPATSRC} ${DOC} \
- Makefile favicon.png logo.png style.css \
+ Makefile favicon.ico logo.png style.css \
example_create.sh example_post-receive.sh \
${NAME}-${VERSION}
# make tarball
@@ -80,7 +80,7 @@ install: all
# installing example files.
mkdir -p ${DESTDIR}${DOCPREFIX}
cp -f style.css\
- favicon.png\
+ favicon.ico\
logo.png\
example_create.sh\
example_post-receive.sh\
@@ -97,7 +97,7 @@ uninstall:
# removing example files.
rm -f \
${DESTDIR}${DOCPREFIX}/style.css\
- ${DESTDIR}${DOCPREFIX}/favicon.png\
+ ${DESTDIR}${DOCPREFIX}/favicon.ico\
${DESTDIR}${DOCPREFIX}/logo.png\
${DESTDIR}${DOCPREFIX}/example_create.sh\
${DESTDIR}${DOCPREFIX}/example_post-receive.sh\
diff --git a/example_create.sh b/example_create.sh
index cf16e1d..e1adbe1 100755
--- a/example_create.sh
+++ b/example_create.sh
@@ -3,7 +3,7 @@
# - Makes static pages for each repository directory.
#
# NOTE, things to do manually (once) before running this script:
-# - copy style.css, logo.png and favicon.png manually, a style.css example
+# - copy style.css, logo.png and favicon.ico manually, a style.css example
# is included.
#
# - write clone url, for example "git://git.codemadness.org/dir" to the "url"
@@ -37,7 +37,7 @@ for dir in "${reposdir}/"*/; do
ln -sf log.html index.html
ln -sf ../style.css style.css
ln -sf ../logo.png logo.png
- ln -sf ../favicon.png favicon.png
+ ln -sf ../favicon.ico favicon.ico
echo "done"
done
diff --git a/favicon.ico b/favicon.ico
new file mode 100644
index 0000000..0fcd76a
--- /dev/null
+++ b/favicon.ico
Binary files differ
diff --git a/favicon.png b/favicon.png
deleted file mode 100644
index a7bc302..0000000
--- a/favicon.png
+++ /dev/null
Binary files differ
diff --git a/stagit-index.1 b/stagit-index.1
index b4787a8..44e13e0 100644
--- a/stagit-index.1
+++ b/stagit-index.1
@@ -29,7 +29,7 @@ owner of repository
.Pp
For changing the style of the page you can use the following files:
.Bl -tag -width Ds
-.It favicon.png
+.It favicon.ico
favicon image.
.It logo.png
32x32 logo.
diff --git a/stagit-index.c b/stagit-index.c
index 2b243ec..3e895c5 100644
--- a/stagit-index.c
+++ b/stagit-index.c
@@ -68,7 +68,7 @@ writeheader(FILE *fp)
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"
"<title>", fp);
xmlencode(fp, description, strlen(description));
- fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);
+ fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.ico\" />\n", relpath);
fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
fputs("</head>\n<body>\n", fp);
fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n"
diff --git a/stagit.1 b/stagit.1
index 360f716..ece3608 100644
--- a/stagit.1
+++ b/stagit.1
@@ -94,7 +94,7 @@ exists in HEAD a direct link in the menu is made.
.Pp
For changing the style of the page you can use the following files:
.Bl -tag -width Ds
-.It favicon.png
+.It favicon.ico
favicon image.
.It logo.png
32x32 logo.
diff --git a/stagit.c b/stagit.c
index 7ff036f..6891bd4 100644
--- a/stagit.c
+++ b/stagit.c
@@ -352,7 +352,7 @@ writeheader(FILE *fp, const char *title)
if (description[0])
fputs(" - ", fp);
xmlencode(fp, description, strlen(description));
- fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);
+ fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.ico\" />\n", relpath);
fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed\" href=\"%satom.xml\" />\n",
name, relpath);
fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);