Skip to content

Commit

Permalink
Add robots.txt and move page icons to the public dir
Browse files Browse the repository at this point in the history
Certain static assets such as the page's favicon were moved to the public directory. This is where assets will get built to in non-development settings.

A proper web server will be able to serve them directly now. It also sets the stage for where our custom error templates will be stored in the future.
  • Loading branch information
nickjj committed Jun 19, 2015
1 parent c6ff7b0 commit 7cc104e
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 6 deletions.
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ __pycache__/
# Distribution / packaging
node_modules/
bin/
build/
develop-eggs/
dist/
eggs/
Expand Down Expand Up @@ -49,6 +48,19 @@ docs/_build/
tmtags

# App ignores.
build/manifest.json
build/public/*
!build/public/robots.txt
!build/public/404.html
!build/public/500.html
!build/public/502.html
!build/public/apple-touch-icon.png
!build/public/chrome-touch-icon-192x192.png
!build/public/favicon.ico
!build/public/icon-128x128.png
!build/public/ms-touch-icon-144x144-precomposed.png


instance/settings.py
celerybeat.pid
celerybeat-schedule
Expand Down
Binary file added build/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/public/chrome-touch-icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/public/favicon.ico
Binary file not shown.
Binary file added build/public/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions build/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
#
# To ban all spiders from the entire site uncomment the next two lines:
# User-agent: *
# Disallow: /
Binary file removed catwatch/assets/images/touch/apple-touch-icon.png
Binary file not shown.
Binary file not shown.
Binary file removed catwatch/assets/images/touch/icon-128x128.png
Binary file not shown.
Binary file not shown.
12 changes: 7 additions & 5 deletions catwatch/templates/layouts/base.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,23 @@
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="{{ self.title() }}">
<meta name="theme-color" content="#3372DF">
<link rel="icon" sizes="192x192"
href="{{ asset_url_for('images/touch/chrome-touch-icon-192x192.png') }}">
<link rel="icon" sizes="192x192" href="chrome-touch-icon-192x192.png">

<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="{{ self.title() }}">
<link rel="apple-touch-icon"
href="{{ asset_url_for('images/touch/apple-touch-icon.png') }}">
<link rel="apple-touch-icon" href="apple-touch-icon.png">

<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage"
content="{{ asset_url_for('images/touch/ms-touch-icon-144x144-precomposed.png') }}">
content="ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">

<!-- Default icon -->
<link href="favicon.ico" rel="icon" type="image/x-icon"/>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>

<meta name="csrf-token" content="{{ csrf_token() }}">

<!-- Static assets -->
Expand Down

0 comments on commit 7cc104e

Please sign in to comment.