Skip to content

Commit 0bed4e8

Browse files
committed
Style changes and minor fixes to blog series functionality, added series information to GSoC posts.
1 parent 18595cd commit 0bed4e8

File tree

27 files changed

+107
-67
lines changed

27 files changed

+107
-67
lines changed

content/blog/entries/cc-browser-extension-a-gsoc-project/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ open-source
1010
---
1111
author: makkoncept
1212
---
13+
series: gsoc-2019-browser-extension
14+
---
1315
pub_date: 2019-06-20
1416
---
1517
body:

content/blog/entries/cc-browser-extension-week5-6/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ open-source
88
---
99
author: makkoncept
1010
---
11+
series: gsoc-2019-browser-extension
12+
---
1113
pub_date: 2019-07-04
1214
---
1315
body:

content/blog/entries/cc-browser-extension-week7-8/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ open-source
88
---
99
author: makkoncept
1010
---
11+
series: gsoc-2019-browser-extension
12+
---
1113
pub_date: 2019-07-19
1214
---
1315
body:
Lines changed: 42 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,42 @@
1-
title: CC Browser Extension Week 9, 10
2-
---
3-
categories:
4-
gsoc
5-
gsoc-2019
6-
cc-browser-extension
7-
open-source
8-
---
9-
author: makkoncept
10-
---
11-
pub_date: 2019-08-12
12-
---
13-
body:
14-
15-
For the context, I am working on my GSoC project that is to make a browser-extension to search CC Licensed content in the public domain by interacting with CC Catalog API.
16-
17-
**Previous Blogs**:
18-
- [CC Browser Extension - A GSoC Project](https://opensource.creativecommons.org/blog/entries/cc-browser-extension-a-gsoc-project/)
19-
- [CC Browser Extension Week 5, 6](https://opensource.creativecommons.org/blog/entries/cc-browser-extension-week5-6/)
20-
- [CC Browser Extension Week 7, 8](https://opensource.creativecommons.org/blog/entries/cc-browser-extension-week7-8/)
21-
22-
### Work Done
23-
These weeks were spent on adding bookmarking feature to the extension and writing some unit tests.
24-
25-
On clicking the bookmark icon, that appears when the image thumbnail is hovered on, the image will be bookmarked. Under the hood, the unique image identifier is saved in the local storage of the extension. The images ids are enough to get all the required image and attribution data needed using the `/image/{identifier}` endpoint of [CC Catalog API]([https://github.com/creativecommons/cccatalog-api](https://github.com/creativecommons/cccatalog-api).
26-
27-
Bookmarked images persist even when the extension session terminates. User can view, inspect, delete the bookmarked images in the _'Bookmarks'_ section. There is also a button to delete all the bookmarks at once.
28-
29-
To let the users organize and share bookmarks, importing and exporting feature is also added. The buttons to export and import the bookmarks are in the options page. Simple `json` files are used for this feature.
30-
31-
The rest of the time was spent on writing tests for the extension. One positive side-effect of this was cleaner and modular code. Finally, the CircleCi config file was modified to let the tests to run in CI pipeline.
32-
### Coming Up
33-
- Write more tests.
34-
- Test and fix bugs.
35-
- Modifying webpack config to spit out code for production.
36-
37-
You can check out the project on [Github](https://github.com/creativecommons/ccsearch-browser-extension) and join the discussion on `#gsoc-browser-ext` channel on [slack](https://opensource.creativecommons.org/community/#slack).
38-
39-
*Special Thanks*: [Alden](https://creativecommons.org/author/aldencreativecommons-org/), [Timid](https://creativecommons.org/author/timidcreativecommons-org/) and [Kriti](https://creativecommons.org/author/kriticreativecommons-org/).
1+
title: CC Browser Extension Week 9, 10
2+
---
3+
categories:
4+
5+
gsoc
6+
gsoc-2019
7+
cc-browser-extension
8+
open-source
9+
---
10+
author: makkoncept
11+
---
12+
series: gsoc-2019-browser-extension
13+
---
14+
pub_date: 2019-08-12
15+
---
16+
body:
17+
18+
For the context, I am working on my GSoC project that is to make a browser-extension to search CC Licensed content in the public domain by interacting with CC Catalog API.
19+
20+
**Previous Blogs**:
21+
- [CC Browser Extension - A GSoC Project](https://opensource.creativecommons.org/blog/entries/cc-browser-extension-a-gsoc-project/)
22+
- [CC Browser Extension Week 5, 6](https://opensource.creativecommons.org/blog/entries/cc-browser-extension-week5-6/)
23+
- [CC Browser Extension Week 7, 8](https://opensource.creativecommons.org/blog/entries/cc-browser-extension-week7-8/)
24+
25+
### Work Done
26+
These weeks were spent on adding bookmarking feature to the extension and writing some unit tests.
27+
28+
On clicking the bookmark icon, that appears when the image thumbnail is hovered on, the image will be bookmarked. Under the hood, the unique image identifier is saved in the local storage of the extension. The images ids are enough to get all the required image and attribution data needed using the `/image/{identifier}` endpoint of [CC Catalog API]([https://github.com/creativecommons/cccatalog-api](https://github.com/creativecommons/cccatalog-api).
29+
30+
Bookmarked images persist even when the extension session terminates. User can view, inspect, delete the bookmarked images in the _'Bookmarks'_ section. There is also a button to delete all the bookmarks at once.
31+
32+
To let the users organize and share bookmarks, importing and exporting feature is also added. The buttons to export and import the bookmarks are in the options page. Simple `json` files are used for this feature.
33+
34+
The rest of the time was spent on writing tests for the extension. One positive side-effect of this was cleaner and modular code. Finally, the CircleCi config file was modified to let the tests to run in CI pipeline.
35+
### Coming Up
36+
- Write more tests.
37+
- Test and fix bugs.
38+
- Modifying webpack config to spit out code for production.
39+
40+
You can check out the project on [Github](https://github.com/creativecommons/ccsearch-browser-extension) and join the discussion on `#gsoc-browser-ext` channel on [slack](https://opensource.creativecommons.org/community/#slack).
41+
42+
*Special Thanks*: [Alden](https://creativecommons.org/author/aldencreativecommons-org/), [Timid](https://creativecommons.org/author/timidcreativecommons-org/) and [Kriti](https://creativecommons.org/author/kriticreativecommons-org/).

content/blog/entries/cc-chooser-lastweek/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
gsoc-2019
66
---
77
author: akmadian
8+
---
9+
series: gsoc-2019-chooser
810
---
911
pub_date: 2019-08-22
1012
---

content/blog/entries/cc-chooser-week2/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
gsoc-2019
66
---
77
author: akmadian
8+
---
9+
series: gsoc-2019-chooser
810
---
911
pub_date: 2019-06-14
1012
---

content/blog/entries/cc-chooser-week4/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
gsoc-2019
66
---
77
author: akmadian
8+
---
9+
series: gsoc-2019-chooser
810
---
911
pub_date: 2019-06-24
1012
---

content/blog/entries/cc-datacatalog-data-processing-2/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ open-source
1010
---
1111
author: soccerdroid
1212
---
13+
series: gsoc-2019-dataviz
14+
---
1315
pub_date: 2019-07-26
1416
---
1517
body:

content/blog/entries/cc-datacatalog-data-processing-3/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ open-source
1010
---
1111
author: soccerdroid
1212
---
13+
series: gsoc-2019-dataviz
14+
---
1315
pub_date: 2019-08-12
1416
---
1517
body:

content/blog/entries/cc-datacatalog-data-processing/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ open-source
1010
---
1111
author: soccerdroid
1212
---
13+
series: gsoc-2019-dataviz
14+
---
1315
pub_date: 2019-07-10
1416
---
1517
body:

content/blog/entries/cc-datacatalog-data-thelinkedcommons/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ open-source
1010
---
1111
author: soccerdroid
1212
---
13+
series: gsoc-2019-dataviz
14+
---
1315
pub_date: 2019-09-03
1416
---
1517
body:

content/blog/entries/cc-datacatalog-visualization/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ open-source
1010
---
1111
author: soccerdroid
1212
---
13+
series: gsoc-2019-dataviz
14+
---
1315
pub_date: 2019-06-17
1416
---
1517
body:

content/blog/entries/cc-vocabulary-new-design-system/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ gsoc-2019
99
---
1010
author: dhruvkb
1111
---
12+
series: gsoc-2019-vocabulary
13+
---
1214
pub_date: 2019-06-15
1315
---
1416
body:

content/blog/entries/cc-vocabulary-so-far/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ gsoc-2019
99
---
1010
author: dhruvkb
1111
---
12+
series: gsoc-2019-vocabulary
13+
---
1214
pub_date: 2019-07-05
1315
---
1416
body:

content/blog/entries/cc-vocabulary-the-main-course/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ gsoc-2019
99
---
1010
author: dhruvkb
1111
---
12+
series: gsoc-2019-vocabulary
13+
---
1214
pub_date: 2019-07-19
1315
---
1416
body:

content/blog/entries/cc-wp-plugin-final-phase/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ wordpress
99
---
1010
author: ahmadbilaldev
1111
---
12+
series: gsoc-2019-wp-plugin
13+
---
1214
pub_date: 2019-08-23
1315
---
1416
body:

content/blog/entries/cc-wp-plugin-first-phase/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ wordpress
88
---
99
author: ahmadbilaldev
1010
---
11+
series: gsoc-2019-wp-plugin
12+
---
1113
pub_date: 2019-06-20
1214
---
1315
body:

content/blog/entries/cc-wp-plugin-second-phase/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ wordpress
99
---
1010
author: ahmadbilaldev
1111
---
12+
series: gsoc-2019-wp-plugin
13+
---
1214
pub_date: 2019-07-20
1315
---
1416
body:

content/blog/entries/introducing-cc-search-extension/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ product
1010
---
1111
author: makkoncept
1212
---
13+
series: gsoc-2019-browser-extension
14+
---
1315
pub_date: 2019-09-03
1416
---
1517
body:

content/blog/entries/vocabulary-so-long/contents.lr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ gsoc-2019
99
---
1010
author: dhruvkb
1111
---
12+
series: gsoc-2019-vocabulary
13+
---
1214
pub_date: 2019-08-19
1315
---
1416
body:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: GSoC 2019: CC Search Browser Extension
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: GSoC 2019: Human Centered Education of CC Licenses
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: GSoC 2019: The Linked Commons
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: GSoC 2019: CC Vocabulary
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: GSoC 2019: CC WordPress Plugin
2+

templates/blog-post.html

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,30 @@ <h2 class="mb-0">{{ this.title }}</h2>
1818
<div class="card bg-light mb-2">
1919
<div class="card-body p-2">
2020
<p class="meta my-0"><span class="mr-2"><strong>This blog is part of the series:</strong></span>
21-
<a href="#series">{{ this.series }}</a>
21+
<a href="#series">{{ series.name }}</a>
2222
</p>
2323
</div>
2424
</div>
2525
{% endif %}
2626
<div class="body">{{ this.body }}</div>
27+
{% if this.series|length %}
28+
<div class="mt-3 bg-light" id="series">
29+
<hr/>
30+
<h5 class="font-weight-bold">Posts in the <em>{{ series.name }}</em> series</h5>
31+
<ul class="toc list-unstyled">
32+
{% for post in series.children.order_by('pub_date') %}
33+
<li>
34+
{% if post.path==this.path %}
35+
<strong>{{ post.title }}</strong>
36+
{% else %}
37+
<a href="{{ post|url }}">{{ post.title }}</a>
38+
{% endif %}
39+
</li>
40+
{% endfor %}
41+
</ul>
42+
<hr/>
43+
</div>
44+
{% endif %}
2745
<div class="card bg-light">
2846
<div class="card-body p-2">
2947
<p class="meta my-0"><span class="mr-2"><strong>Categories:</strong></span>
@@ -39,31 +57,6 @@ <h2 class="mb-0">{{ this.title }}</h2>
3957
</p>
4058
</div>
4159
</div>
42-
{% if this.series|length %}
43-
<table class="table table-striped table-sm mt-3" id="series">
44-
<thead>
45-
<tr>
46-
<th>
47-
All posts in this series "<span style="font-size:1.15rem">{{ this.series }}<span>"
48-
</th>
49-
</tr>
50-
</thead>
51-
<tbody>
52-
{% for post in series.children %}
53-
<tr>
54-
<td>
55-
{% if post.path==this.path %}
56-
{{ post.title }}
57-
{% else %}
58-
<a href="{{ post|url }}">{{ post.title }}</a>
59-
{% endif %}
60-
</td>
61-
</tr>
62-
{% endfor %}
63-
</tbody>
64-
</table>
65-
<hr>
66-
Check out <strong><a href="/blog/series/">All Series</a></strong>
67-
{% endif %}
60+
6861
<div class="comments">{{ render_disqus_comments() }}</div>
6962
{% endblock %}

templates/blog-series.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block title %}{{ this.name + ' - ' + this.parent.parent.children.get('entries').title }}{% endblock %}
66
{% block header %}{{ this.parent.parent.children.get('entries').title }}{% endblock %}
77
{% block body %}
8-
<h2>All posts in Series "{{ this.name }}"</h2>
8+
<h2>All posts in series "{{ this.name }}"</h2>
99
{{ render_posts(this.children) }}
1010
<hr>
1111
<strong><a href="{{ this.parent|url }}">All Series</a></strong>

0 commit comments

Comments
 (0)