From: Vladimír Vondruš Date: Tue, 16 Jan 2018 23:20:06 +0000 (+0100) Subject: site: added favicon. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=a21253c47c9e5a5791f90cd09ced51416d997ffd;p=blog.git site: added favicon. --- diff --git a/artwork/README.rst b/artwork/README.rst new file mode 100644 index 00000000..9a324779 --- /dev/null +++ b/artwork/README.rst @@ -0,0 +1,11 @@ +Artwork HOWTO +############# + +favicon.svg +=========== + +Export as 16x16 PNG and convert to an ``*.ico``: + +.. code:: sh + + convert favicon.png favicon.ico diff --git a/artwork/favicon.svg b/artwork/favicon.svg new file mode 100644 index 00000000..f904a9c7 --- /dev/null +++ b/artwork/favicon.svg @@ -0,0 +1,80 @@ + + + + + + + + + + image/svg+xml + + + + + + + + m + + diff --git a/doc/static/favicon.ico b/doc/static/favicon.ico new file mode 100644 index 00000000..12fd761d Binary files /dev/null and b/doc/static/favicon.ico differ diff --git a/site/pelicanconf.py b/site/pelicanconf.py index cbfa18a6..7b043ce3 100644 --- a/site/pelicanconf.py +++ b/site/pelicanconf.py @@ -57,6 +57,8 @@ AUTHOR_FEED_RSS = None M_BLOG_NAME = "m.css example articles" M_BLOG_URL = 'examples/' +M_FAVICON = ('favicon.ico', 'image/x-icon') + M_SOCIAL_TWITTER_SITE = '@czmosra' M_SOCIAL_TWITTER_SITE_ID = 1537427036 M_SOCIAL_IMAGE = 'static/site.jpg' @@ -126,6 +128,7 @@ M_FINE_PRINT = """ DEFAULT_PAGINATION = 10 STATIC_PATHS = ['static'] +EXTRA_PATH_METADATA = {'static/favicon.ico': {'path': 'favicon.ico'}} PLUGIN_PATHS = ['../pelican-plugins'] PLUGINS = ['m.abbr',