Skip to content

Commit

Permalink
Update to fix CSS, post links, HTTPS error
Browse files Browse the repository at this point in the history
  • Loading branch information
candu committed Sep 3, 2023
1 parent 9b2e4bc commit acadaa0
Show file tree
Hide file tree
Showing 247 changed files with 667 additions and 452 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build and Deploy

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./webroot
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pyc
1 change: 0 additions & 1 deletion extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def _parse_post(line):
date_format = '%Y-%m-%dT%H:%M:%SZ'
post_date = now.strptime(post['at'], date_format)
path = os.path.join(
'biketotheearth',
'posts',
post_date.strftime('%Y'),
post_date.strftime('%m'),
Expand Down
10 changes: 5 additions & 5 deletions post.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def render(self):
<head>
<meta charset="UTF-8" />
<title>{self.getAttribute('title')}</title>
<link href='http://fonts.googleapis.com/css?family=Lusitana:400,700' rel='stylesheet' type='text/css' />
<link href='/biketotheearth/style.css' rel='stylesheet' type='text/css' />
<link href='https://fonts.googleapis.com/css?family=Lusitana:400,700' rel='stylesheet' type='text/css' />
<link href='/style.css' rel='stylesheet' type='text/css' />
</head>
<body>
{self.getChildren()}
Expand All @@ -57,7 +57,7 @@ def render(self):
return \
<div class="country" id={country}>
<div class="country-icon">
<img src={'/biketotheearth/icons/{0}.png'.format(country)} />
<img src={'/icons/{0}.png'.format(country)} />
</div>
<div class="country-name">
{country_names[country]}
Expand Down Expand Up @@ -116,7 +116,7 @@ def render_post(data):
{_link(data['next'].get('href'), 'next')}
</div>
<div class="post-link">
{_link('/biketotheearth/index.html', 'index')}
{_link('/index.html', 'index')}
</div>
</div>
post = \
Expand All @@ -129,7 +129,7 @@ def render_post(data):
<div id="country">
<div class="country-icon">
<a href={country_href}>
<img src={'/biketotheearth/icons/{0}.png'.format(data['country'])} />
<img src={'/icons/{0}.png'.format(data['country'])} />
</a>
</div>
<div class="country-name">
Expand Down
197 changes: 197 additions & 0 deletions posts.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion render.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def _write_file(html, path):
data['next'] = posts[i + 1]
data['date'] = datetime.datetime.strptime(data['date'], '%Y-%m-%dT%H:%M:%S')
_write_file(render_post(data), data['path'])
_write_file(render_index(posts), os.path.join('biketotheearth', 'index.html'))
_write_file(render_index(posts), os.path.join('index.html'))
1 change: 1 addition & 0 deletions webroot/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
biketotheearth.savageinter.net
1 change: 0 additions & 1 deletion webroot/biketotheearth/index.html

This file was deleted.

7 changes: 0 additions & 7 deletions webroot/biketotheearth/posts/2010/03/22/training-begins.html

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit acadaa0

Please sign in to comment.