Skip to content

Commit eb8d355

Browse files
committed
add link to footer and update the icon media type again
1 parent 5e52fc6 commit eb8d355

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

pyvecorg/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ def run(self, *args, **kwargs):
2121

2222

2323
app = Flask('pyvecorg')
24+
app.config['JSON_AS_ASCII'] = False
25+
2426

2527
from pyvecorg import views
2628
from pyvecorg import templating
2729

30+
2831
__all__ = ['app', 'views', 'templating']

pyvecorg/data/meta.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ downloads:
6868
resources:
6969
cs: grafika
7070
en: resources
71+
json_data:
72+
cs: tato stránka jako JSON
73+
en: this page as JSON

pyvecorg/templates/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55

6-
<link rel="shortcut icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
6+
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="{{ url_for('static', filename='favicon.ico') }}">
77
<link rel="alternate" type="application/json" href="{{ url_for('api', lang=lang) }}">
88

99
<meta property="og:image" content="{{ url_for('static', filename='img/cover.jpg', _external=True) }}">
@@ -242,8 +242,13 @@ <h3>{{ meta.downloads.heading }}</h3>
242242
<i class="fa fa-file-text-o" aria-hidden="true"></i>
243243
<a href="{{ url_for('static', filename='charter/stanovy.rtf') }}">{{ meta.downloads.charter }}.rtf</a>
244244

245+
<br>
246+
245247
<i class="fa fa-file-image-o" aria-hidden="true"></i>
246248
<a href="https://github.com/pyvec/resources">{{ meta.downloads.resources }}</a>
249+
250+
<i class="fa fa-file-code-o" aria-hidden="true"></i>
251+
<a href="{{ url_for('api', lang=lang) }}">{{ meta.downloads.json_data }}</a>
247252
</p>
248253
</div>
249254
<div class="w-100 d-block d-md-none"></div>

pyvecorg/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
@app.route('/favicon.ico')
1515
def favicon():
1616
static = os.path.join(app.root_path, 'static')
17-
return send_from_directory(static, 'favicon.ico', mimetype='image/x-icon')
17+
return send_from_directory(static, 'favicon.ico',
18+
mimetype='image/vnd.microsoft.icon')
1819

1920

2021
@app.route('/')

0 commit comments

Comments
 (0)