Skip to content

Commit

Permalink
Merge pull request allinurl#1437 from dragonandy/master
Browse files Browse the repository at this point in the history
Add base64 encoded favicon to html output
  • Loading branch information
allinurl authored May 6, 2019
2 parents d18dc62 + 123c9e7 commit ecd9178
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,16 @@ print_html_header (FILE * fp)
"<meta name='viewport' content='width=device-width, initial-scale=1'>"
"<meta name='robots' content='noindex, nofollow'>", _(DOC_LANG));

/* Output base64 encoded goaccess favicon.ico*/
fprintf (fp, "<link rel='icon' href='data:image/x-icon;base64,AAABAAEA"
"EBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAA"
"AAAAADGxsYAWFhYABwcHABfAP8A/9dfAADXrwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAIiIiIiIiIiIjMlUkQgAiIiIiIiIiIiIiIzJVJEIAAAIiIiI"
"iIiIiIiMyVSRCAAIiIiIiIiIiIiIRERERERERERERERERERERIiIiIiIiIiIgACVVUiIi"
"IiIiIiIiIiIiIAAlVVIiIiIiIiIiIiIiIhEREREREREREREREREREREAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AA' type='image/x-icon' />");

print_html_title (fp);

fprintf (fp, "<style>%s</style>", fa_css);
Expand Down

0 comments on commit ecd9178

Please sign in to comment.