Skip to content

Commit

Permalink
Fixed minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yabirgb committed Mar 19, 2020
1 parent d1dc53a commit 788d97a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions arcade/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def init() -> None:
#copytree(os.path.join(local_path,'themes/baseline'), os.path.join(calling_path, 'themes', 'baseline'))

click.echo("Project created! Modify the arcade.yaml configuration file")
click.echo("Don't forget to download a theme for your blog before starting. Visit https://github.com/yabirgb/arcade for more info")


@click.command()
Expand Down
4 changes: 2 additions & 2 deletions arcade/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def render_content(base_path:str,
# TODO: Overwrite this hardcoded constant
get = min(len(data), 10)
post_data['posts'] = [x.to_dict() for x in
sorted(data[:get], reverse=True) if not x.is_index]
sorted([x for x in data if not x.is_index][:get], reverse=True) if not x.is_index]

render = index_tmpl.render(post_data)

Expand All @@ -112,7 +112,7 @@ def render_content(base_path:str,

history = env.get_template("full_list.html")
content=dict()
content['posts'] = list(map(lambda x: x.to_dict(), [x for x in reversed(data) if not x.is_index]))
content['posts'] = list(map(lambda x: x.to_dict(), reversed([x for x in data if not x.is_index])))
content['config'] = index_config
render = history.render(content)

Expand Down
2 changes: 1 addition & 1 deletion themes/baseline/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<footer>
<footer>
{% for net, social in config.social.items() %}
{% if social != None %}
<a href="{{social.url}}"><i class="fa {{social.icon}}" aria-hidden="true"></i></a>
Expand Down

0 comments on commit 788d97a

Please sign in to comment.