選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

single.html 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {{ define "main" }}
  2. {{ partial "navigation.html" . }}
  3. <section class="section">
  4. <div class="container">
  5. <div class="row">
  6. <div class="col-lg-8 offset-lg-2 text-center">
  7. <h1>{{ .Title }}</h1>
  8. <ul class="list-inline mb-50">
  9. <li class="list-inline-item">{{ dateFormat "Monday, Jan 2, 2006" .Params.event_start_date }}</li>
  10. </ul>
  11. {{with .Params.image}}
  12. <img class="img-fluid mb-50 lozad" data-src="{{ . | absURL }}" alt="event-image">
  13. {{end}}
  14. </div>
  15. {{ $speakers := .Params.event_speakers }}
  16. {{ if gt ( len $speakers) 0 }}
  17. <div class="col-lg-8 offset-lg-2 mb-3">
  18. <h4>
  19. Speakers
  20. </h4>
  21. {{ range $speakers }}
  22. {{ $imagewbp := .speaker_image_webp }}
  23. {{ $image := .speaker_image }}
  24. {{ $name := .speaker_name }}
  25. <div class="mb-2">
  26. {{with .speaker_image}}
  27. <div class="client-thumb speaker">
  28. <img class="img-fluid lozad" data-src="{{ $imagewbp | absURL }}" onerror="this.onerror=null;this.src='{{ $image | absURL }}'" alt="{{ $name }}">
  29. </div>
  30. {{end}}
  31. <div class="bio"><span>{{.speaker_name}}</span> {{.bio}}</div>
  32. </div>
  33. {{end}}
  34. </div>
  35. {{end}}
  36. <div class="col-lg-8 offset-lg-2">
  37. <div class="post-single-content">
  38. {{ .Content }}
  39. </div>
  40. {{ if site.Params.post_share }}
  41. {{ partial "post-share.html" . }}
  42. {{ end }}
  43. <!-- comments -->
  44. <div class="mt-5">
  45. {{ template "_internal/disqus.html" . }}
  46. </div>
  47. </div>
  48. <div class="col-lg-8 offset-lg-2">
  49. {{if not .Params.disable_link}}
  50. <a href={{.Params.meeting_link}} class="btn btn-main" target="_blank"><i class="ti-link"></i>Join</a>
  51. {{end}}
  52. {{if not .Params.disable_download}}
  53. <input type="hidden" id="subject" value="{{.Title }}"/>
  54. <input type="hidden" id="description" value="{{ .Params.meeting_link }}"/>
  55. <input type="hidden" id="location" value="{{.Params.location }}"/>
  56. <input type="hidden" id="start-date" value="{{.Params.event_start_date }}"/>
  57. <input type="hidden" id="end-date" value="{{.Params.event_end_date }}"/>
  58. <input type="hidden" id="filename" value="{{ .Params.calendar_filename }}"/>
  59. <button class="clndr btn btn-main" onclick="downloadEvent()">
  60. <i class="ti-calendar"></i>Add to Calendar
  61. </button>
  62. {{ end }}
  63. </div>
  64. </div>
  65. </div>
  66. </section>
  67. {{ end }}