You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.2 KiB

  1. {% block title %} {{ title }} {% endblock %}
  2. {% block header %}
  3. <h2 itemprop="name headline" itemscope itemtype="http://schema.org/BlogPost">
  4. {{ title }}
  5. </h2>
  6. {% endblock %}
  7. {% block content %}
  8. <div class="blog-content" itemscope itemtype="http://schema.org/BlogPost">
  9. <!-- begin blog content -->
  10. <div class="help" style="color: #aaa">
  11. <span itemprop="author">{{ blogger_info and blogger_info.full_name or full_name }}</span> /
  12. <span itemprop="dateCreated">{{ updated }}</span></div>
  13. <br>
  14. <div itemprop="articleBody">
  15. {{ content }}
  16. </div>
  17. <!-- end blog content -->
  18. {% if blogger_info %}
  19. <hr />
  20. {% include "templates/includes/blogger.html" %}
  21. {% endif %}
  22. <hr>
  23. <h3>Comments</h3>
  24. {% include 'templates/includes/comments.html' %}
  25. </div>
  26. <script>
  27. $(function() {
  28. if(window.logged_in && getCookie("system_user")==="yes") {
  29. wn.has_permission("Blog Post", "{{ name }}", "write", function(r) {
  30. wn.require("assets/webnotes/js/wn/website/editable.js");
  31. wn.make_editable($('[itemprop="articleBody"]'), "Blog Post", "{{ name }}", "content");
  32. });
  33. }
  34. });
  35. </script>
  36. {% endblock %}
  37. {% block footer %}{% include 'templates/includes/blog_footer.html' %}{% endblock %}
  38. {% block sidebar %}{% include "templates/includes/sidebar.html" %}{% endblock %}