Browse Source

Add apple touch icon support and configuration option

pull/40/head
Benjamin Southall 5 years ago
parent
commit
1c47bf85a0
  1. 3
      inc/config.php
  2. 1
      templates/header.html

3
inc/config.php

@ -1233,6 +1233,9 @@
// Website favicon. // Website favicon.
// $config['url_favicon'] = '/favicon.gif'; // $config['url_favicon'] = '/favicon.gif';
// Website Apple touch icon.
// $config['url_appletouchicon'] = '/favicon.gif';
// Try not to build pages when we shouldn't have to. // Try not to build pages when we shouldn't have to.
$config['try_smarter'] = true; $config['try_smarter'] = true;

1
templates/header.html

@ -1,5 +1,6 @@
<link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}"> <link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}">
{% if config.url_favicon %}<link rel="shortcut icon" href="{{ config.url_favicon }}">{% endif %} {% if config.url_favicon %}<link rel="shortcut icon" href="{{ config.url_favicon }}">{% endif %}
{% if config.url_appletouchicon %}<link rel=apple-touch-icon" href="{{ config.url_appletouchicon }}">{% endif %}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
{% if config.meta_keywords %}<meta name="keywords" content="{{ config.meta_keywords }}">{% endif %} {% if config.meta_keywords %}<meta name="keywords" content="{{ config.meta_keywords }}">{% endif %}

Loading…
Cancel
Save