Fiction work.
- Remove the first
<script>
tag and everything in it inflask/application/templates/base.html
- Edit the Chapter 4 and remove the link to longpage. Replace it with a "visit tomorrow for the next installment of new chapters"
- SSH into prod and delete the longpage directory.
ssh prod; cd /apps/fiction/coup; rm -fr longpage
- Also remove password protection (see instructions at the bottom of this file)
- Edit
flask/application/thesite.py
and delete lines 43-56. This gets rid of the longpage code and makes sure we don't see it again. - Deploy!
cd flask; ./deploy.bash; ./deploy.bash --server prod
- Edit
flask/application/__init__.py
- Add the chapters you want to launch to the second
app.chapters = ['01'...
list. - Add the date the chapters will launch to the particular chapter records in
flask/application/chapters.json
- Save and deploy
- Open
flask/application/chapters.json
- Find the json item that corresponds with the page metadata you want to edit.
- Edit, save, deploy.
The social share buttons are hard-coded. Large in-color links go below the <h1>
in each chapter and on the homepage. You may have to crop and produce the graphics and add them to the repo yourself.
There's a new file in application/templates/includes/social.html -- the fb and twitter markup goes in there.
To add them to each page, use this template tag: {% include 'includes/social.html' %}
The facebook button should link to https://www.facebook.com/sharer.php?u=http://interactive.nydailynews.com/fiction/coup/
The twitter button should link to http://twitter.com/share?url=http://nydn.us/coup&text=The%20story%20of%20how%20Mike%20Pence,%20Rick%20Perry's%20dance%20leotard,%20and%20Ivanka%20save%20America%20from%20Donald%20Trump%20#thetrumpcoup
- Edit
flask/application/templates/base.html
- Find the line with
site.css
- Append or edit the URL parameter on
site.css
so it looks something likesite.css?v2
(or v3, v4 etc.)
- SSH in to prod
cd /apps/fiction/coup/
rm .htaccess; rm .htpasswd
This is a Flask app, which uses the Jinja templating language.