Skip to content

Commit

Permalink
Now OK
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-santoni committed Dec 25, 2019
1 parent 2a38c02 commit 3b63a4d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
output
public
.vscode
.DS_Store
3 changes: 3 additions & 0 deletions .nowignore
@@ -1,4 +1,7 @@
.vscode
README.md
Makefile
Pipfile
Pipfile.lock
public
output
21 changes: 21 additions & 0 deletions now.json
@@ -0,0 +1,21 @@
{
"version": 2,
"routes": [
{
"src": "/assets/(.+)",
"dest": "/assets/$1"
},
{
"src": "/theme/(.+)",
"dest": "/theme/$1"
},
{
"src": "/(.+)",
"dest": "/$1.html"
},
{
"src": "/(.*)",
"dest": "/$1"
}
]
}
12 changes: 3 additions & 9 deletions package.json
@@ -1,13 +1,7 @@
{
"name": "pelican",
"version": "1.0.0",
"name": "blog.geographer.fr",
"private": true,
"description": "A Pelican project, ready for deployment with ZEIT Now.",
"main": "index.js",
"scripts": {
"build": "pelican ./ -o public -s publishconf.py"
},
"keywords": [],
"author": "",
"license": "ISC"
"build": "pelican content -o public -s pelicanconf.py"
}
}
2 changes: 1 addition & 1 deletion theme/templates/posts.html
Expand Up @@ -8,7 +8,7 @@
{% for article in articles %}
<div class="post-entry">
<dt class="post-date">{{ article.date.strftime('%d/%m/%Y') }}</dt>
<dd class="post-link"><a href="/posts/{{ article.slug }}">{{ article.title }}</a></dd>
<dd class="post-link"><a href="/{{ article.slug }}">{{ article.title }}</a></dd>
</div>
{% endfor %}
</dl>
Expand Down

0 comments on commit 3b63a4d

Please sign in to comment.