From f92f469e48071edeb93d5d6b84ea65e98a05dc50 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 5 Jan 2018 16:23:56 -0500 Subject: [PATCH 1/3] add extra metadata --- frontend/templates/base.html | 3 +++ frontend/templates/work.html | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/templates/base.html b/frontend/templates/base.html index a7513912..c3a37d78 100644 --- a/frontend/templates/base.html +++ b/frontend/templates/base.html @@ -6,6 +6,9 @@ unglue.it {% block title %}{% endblock %} + + + {% block extra_meta %}{% endblock %} {% block extra_css %}{% endblock %} diff --git a/frontend/templates/work.html b/frontend/templates/work.html index d00aa57d..c6c8271f 100644 --- a/frontend/templates/work.html +++ b/frontend/templates/work.html @@ -11,7 +11,15 @@ Help us make {{ work.title }} a Free eBook! {% endif %}{% if action == 'editions' %} – All Editions{% endif %} {% endblock %} - +{% block extra_meta %} + + + + + +{% for author in work.relators %}{% endfor %} +{% if work.first_isbn_13 %}{% endif %} +{% endblock %} {% block extra_css %} {% if user.is_staff or user in work.last_campaign.managers.all %} From 11445f8a30b0b1aa0a011f021b3ca1d09a8544a0 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 5 Jan 2018 16:24:12 -0500 Subject: [PATCH 2/3] delint --- frontend/templates/work.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/templates/work.html b/frontend/templates/work.html index c6c8271f..94128a05 100644 --- a/frontend/templates/work.html +++ b/frontend/templates/work.html @@ -100,9 +100,9 @@

- {% if work.authors.count == 2 %} - and - {% endif %}{% if work.relators.count > 2 %}{% for author in work.relators %}{% if not forloop.first %}, {% endif %}{% endfor %} + {% if work.authors.count == 2 %} + and + {% endif %}{% if work.relators.count > 2 %}{% for author in work.relators %}{% if not forloop.first %}, {% endif %}{% endfor %} {% endif %}

@@ -303,7 +303,7 @@ {% endfor %} {% if work.doab %}

- This book is included in DOAB. + This book is included in DOAB.

{% endif %} {% if work.gtbg %} @@ -340,7 +340,7 @@
- + email
{{ supporter }}
From 48de8408a6956abe931a8e9d5217e3679b481e30 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 5 Jan 2018 16:37:52 -0500 Subject: [PATCH 3/3] add metas on landing page --- frontend/templates/home.html | 20 ++++++++++++++------ frontend/templates/learn_more.html | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/frontend/templates/home.html b/frontend/templates/home.html index 0e8839fd..010755ec 100755 --- a/frontend/templates/home.html +++ b/frontend/templates/home.html @@ -3,6 +3,14 @@ {% load truncatechars %} {% block title %}— Support Free eBooks{% endblock %} +{% block extra_meta %} + + + + +{% endblock %} + + {% block extra_css %} @@ -286,12 +294,12 @@ function put_un_in_cookie2(){
    -
  • -
  • -
  • -
  • -
  • -
  • +
  • boingboing
  • +
  • die zeit
  • +
  • huffington post
  • +
  • techcrunch
  • +
  • library journal
  • +
  • networkworld
For readers it’s a gold mine of great books they can have a say in bringing to market.
diff --git a/frontend/templates/learn_more.html b/frontend/templates/learn_more.html index 2dee652b..048abec0 100644 --- a/frontend/templates/learn_more.html +++ b/frontend/templates/learn_more.html @@ -17,7 +17,7 @@

-

Find over 10,000 free ebooks here.
Help us make more ebooks free!

+

Find over 10,000 free ebooks here.
Help us make more ebooks free!