merged and resolved conflicts #18
This commit is contained in:
@ -191,8 +191,8 @@ def get_entry(entry, include_images, generator=None):
|
|||||||
|
|
||||||
hashtags = []
|
hashtags = []
|
||||||
for tag in entry.get('tags', []):
|
for tag in entry.get('tags', []):
|
||||||
for t in tag['term'].split():
|
t = tag['term'].replace(' ', '_').replace('.', '').replace('-', '')
|
||||||
hashtags.append('#' + t)
|
hashtags.append('#{}'.format(t))
|
||||||
summary = entry.get('summary', '')
|
summary = entry.get('summary', '')
|
||||||
content = entry.get('content', '') or ''
|
content = entry.get('content', '') or ''
|
||||||
if content:
|
if content:
|
||||||
@ -204,6 +204,10 @@ def get_entry(entry, include_images, generator=None):
|
|||||||
links = [l for l in entry.links if l.get("type") == "text/html"]
|
links = [l for l in entry.links if l.get("type") == "text/html"]
|
||||||
if links:
|
if links:
|
||||||
url = links[0]["href"]
|
url = links[0]["href"]
|
||||||
|
=======
|
||||||
|
t = tag['term'].replace(' ', '_').replace('.', '').replace('-', '')
|
||||||
|
hashtags.append('#{}'.format(t))
|
||||||
|
>>>>>>> steinarb/fix-space-in-hashtags
|
||||||
return {
|
return {
|
||||||
'url': url,
|
'url': url,
|
||||||
'link': entry.link,
|
'link': entry.link,
|
||||||
|
|||||||
Reference in New Issue
Block a user