Skip to content

Commit

Permalink
add link to footer and update the icon media type again
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Aug 9, 2018
1 parent 5e52fc6 commit eb8d355
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pyvecorg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ def run(self, *args, **kwargs):


app = Flask('pyvecorg')
app.config['JSON_AS_ASCII'] = False


from pyvecorg import views
from pyvecorg import templating


__all__ = ['app', 'views', 'templating']
3 changes: 3 additions & 0 deletions pyvecorg/data/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ downloads:
resources:
cs: grafika
en: resources
json_data:
cs: tato stránka jako JSON
en: this page as JSON
7 changes: 6 additions & 1 deletion pyvecorg/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">

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

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

<br>

<i class="fa fa-file-image-o" aria-hidden="true"></i>
<a href="https://github.com/pyvec/resources">{{ meta.downloads.resources }}</a>

<i class="fa fa-file-code-o" aria-hidden="true"></i>
<a href="{{ url_for('api', lang=lang) }}">{{ meta.downloads.json_data }}</a>
</p>
</div>
<div class="w-100 d-block d-md-none"></div>
Expand Down
3 changes: 2 additions & 1 deletion pyvecorg/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
@app.route('/favicon.ico')
def favicon():
static = os.path.join(app.root_path, 'static')
return send_from_directory(static, 'favicon.ico', mimetype='image/x-icon')
return send_from_directory(static, 'favicon.ico',
mimetype='image/vnd.microsoft.icon')


@app.route('/')
Expand Down

0 comments on commit eb8d355

Please sign in to comment.