Skip to content

Commit cede26a

Browse files
committed
Add apple touch icons
1 parent 00994b1 commit cede26a

File tree

8 files changed

+13
-2
lines changed

8 files changed

+13
-2
lines changed

playbook.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
postgresql_databases:
2222
- name: pythonchina
2323

24-
zerqu_server_name: beta.python-china.org
2524
zerqu_site_name: Python China
26-
zerqu_site_url: "http://beta.python-china.org"
2725
zerqu_site_styles:
2826
- //dn-python.qbox.me/qingcheng/20150810.f4f36e.css
2927
zerqu_site_scripts:
Loading
Loading
958 Bytes
Loading

roles/zerqu/files/public/favicon.ico

2.74 KB
Binary file not shown.

roles/zerqu/files/public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-Agent: *
2+
Disallow: /app

roles/zerqu/tasks/install.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@
1616
- "raven==5.5.0"
1717
- "newrelic==2.54.0.41"
1818
- "gevent==1.0.2"
19+
20+
- name: Copy public files
21+
copy: src={{ item }} dest={{ zerqu_public_dir }}/
22+
with_fileglob:
23+
- public/*.png
24+
- public/*.ico
25+
- public/*.txt

roles/zerqu/templates/zerqu_conf.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ SITE_CANONICAL_URL = '{{ zerqu_site_seo_url }}'
1010
SITE_DESCRIPTION = '{{ zerqu_site_description }}'
1111
SITE_TWITTER = 'pythoncn'
1212
SITE_HEADER = '''
13+
<meta name="apple-mobile-web-app-capable" content="yes">
14+
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76.png">
15+
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120.png">
16+
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152.png">
1317
{% for src in zerqu_site_styles %}
1418
<link rel="stylesheet" href="{{ src }}">
1519
{% endfor %}

0 commit comments

Comments
 (0)