diff options
Diffstat (limited to 'design')
-rw-r--r-- | design/templates/admin/message.html | 11 | ||||
-rw-r--r-- | design/templates/details/entry.html | 4 |
2 files changed, 7 insertions, 8 deletions
diff --git a/design/templates/admin/message.html b/design/templates/admin/message.html index 528fb01..348b15d 100644 --- a/design/templates/admin/message.html +++ b/design/templates/admin/message.html @@ -4,18 +4,17 @@ {{message}}... <span style="color:red;" id="done"></span> {% endblock %} -{% block onload %} -onLoad="setTimeout('delayer()', 1000)" -{% endblock %} - {% block extrahead %} <script type="text/javascript"> -<!-- function delayer(){ + console.log("function fired") document.getElementById('done').innerHTML = 'done' window.location = "/admin/" } -//--> + +document.addEventListener("DOMContentLoaded", function(event) { + window.setTimeout(delayer, 1000); +}); </script> {% endblock %} diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html index c3da2e8..aef590d 100644 --- a/design/templates/details/entry.html +++ b/design/templates/details/entry.html @@ -17,8 +17,8 @@ <meta property="og:description" content="{{object.meta_description}}" /> <meta property="article:published_time" content="{{object.pub_date|date:'c'}}" /> <meta property="article:author" content="Luxagraf" /> - <meta property="og:site_name" content="Luxagraf" />{% for image in object.get_images %} - <meta property="og:image" content="{{image}}" />{% endfor %} + <meta property="og:site_name" content="Luxagraf" /> + <meta property="og:image" content="{{self.get_featured_image}}" /> <meta property="og:locale" content="en_US" /> <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:description" content="{{object.meta_description}}"/> |