... and date
This commit is contained in:
parent
83de5f58a2
commit
20330437ea
|
@ -68,7 +68,7 @@ def articles():
|
||||||
out=[]
|
out=[]
|
||||||
for k,v in arts.items():
|
for k,v in arts.items():
|
||||||
out.append(f'<h4>{k}</h4>\n'+ '<br/>\n'.join([f'<a href="{l[0]}">{l[1] or l[0]}</a>' for l in v]))
|
out.append(f'<h4>{k}</h4>\n'+ '<br/>\n'.join([f'<a href="{l[0]}">{l[1] or l[0]}</a>' for l in v]))
|
||||||
return {'title':'Articles','content':'<p>'+('</p>\n<p>'.join(out))+'</p>','date':'2022/04/11'}
|
return {'title':'Articles','content':'<p>'+('</p>\n<p>'.join(out))+'</p>','date':'2022/07/25'}
|
||||||
|
|
||||||
def redirect(req,src):
|
def redirect(req,src):
|
||||||
return HttpResponse(status=302,headers={'Location':src.output})
|
return HttpResponse(status=302,headers={'Location':src.output})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user