article.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. {{ define "custom_head_static" }}
  2. <link href="/static/app/css/highlightjs/default.min.css?v={{ version }}" rel="stylesheet">
  3. <link href="/static/app/css/highlightjs/monokai-sublime.min.css?v={{ version }}" rel="stylesheet">
  4. {{ end }}
  5. {{ define "custom_bottom_static" }}
  6. <script src="/static/app/js/highlightjs/highlight.min.js?v={{ version }}"></script>
  7. <script>
  8. $(function() {
  9. $("pre code").each(function(i, block) {
  10. hljs.highlightBlock(block);
  11. });
  12. });
  13. </script>
  14. {{ end }}
  15. <section class="page">
  16. <div class="container">
  17. <div class="row">
  18. <div class="page-content col-md-12">
  19. <a href="/" class="blog-link-to-main">&larr; {{ trans .lang "to_main_page"}}</a>
  20. </div>
  21. </div>
  22. <div class="row">
  23. <div class="page-content col-md-9">
  24. <div class="blog-content">
  25. <h1 class="top_30">{{ .article.Title }}</h1>
  26. <span class="blog-data">{{ .article.PublishTime }}</span>
  27. <div class="article-text">{{ noescape .article.Text }}</div>
  28. </div>
  29. </div>
  30. {{ template "_sidebar" . }}
  31. </div>
  32. </div>
  33. </section>