~andrewzah/personal-site

personal-site/templates/talk.html -rw-r--r-- 2.9 KiB View raw
dd273feeAndrew Zah begin new watch post 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{% extends "base.html" %}

{% import "macros.html" as macros %}
{% block page %}{{ page }}{% endblock page %}
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
{% block ogtitle %}{{ page.title }} | {{ config.title }}{% endblock ogtitle %}
{% block twittertitle %}{{ page.title }} | {{ config.title }}{% endblock twittertitle %}
{% block summary %}{{ page.extra.summary | safe | striptags }}{% endblock summary %}
{% block ogsummary %}{{ page.extra.summary | safe | striptags }}{% endblock ogsummary %}
{% block keywords %}{{ page.extra.keywords }}{% endblock keywords %}
{% block permalink %}{{ page.permalink }}{% endblock permalink %}

{% block main %}
  <div itemtype="http://schema.org/Article" class="container talks">
    <h1 itemprop="name">{{ page.title }}</h1>
    <div class="page-meta-data">
      <time itemprop="datePublished" content="{{ page.date | date(format="%Y-%m-%d")}}" datetime="{{ page.date }}" >
          {{ page.date | date(format="%b %d, %Y") }}
          {% if page.extra.updated %} <time itemprop="dateModified" content={{ page.extra.updated }}>(updated on {{ page.extra.updated }})</time> {% endif %}
      </time>
      <span>{{ page.extra.location }}</span>
    </div>
    <div class="talk-buttons" itemtype="PresentationDigitalDocument">
      <a class="button button-primary" href="{{page.extra.pdflink}}">Download PDF</a>
    </div>
    {% if page.extra.videolink %}
      <a class="button button-secondary" href="{{page.extra.videolink}}"> Watch Video </a>
    {% endif %}
    <hr>
    <article itemprop="articleBody">
      <div id="email-me">
        <p>The following is the source code for this PDF.</p>

        <p>Have any observations, criticisms, or corrections? Feel free to <a href="mailto:talks@andrewzah.com">email me</a>. Have a nice day!</p>
      </div>
      {{ page.content | safe }}
    </article>
  </div>
{% endblock main %}

{% block after_main %}
  <div id="after-main" class="container">
    <div id="random-quote">
      <h2> Random quote </h2>
      <blockquote id="random-quote-quote"></blockquote>
      <p id="random-quote-citation">
        <span id="random-quote-author"></span>
        <span id="random-quote-source"></span>
      </p>
    </div>
    <hr>

    <div class="container after-post">
        {% if page.earlier %}
          <div id="previous_post">
            Previous: <i>
              <a class="prev" href="/talks/{{ page.earlier.slug | safe }}">{{ page.earlier.title }}</a>
            </i>
          </div>
        {% endif %}

        {% if page.later %}
          <div id="next_post">
            Next: <i>
              <a class="next" href="/talks/{{ page.later.slug | safe }}">{{ page.later.title }}</a>
            </i>
          </div>
        {% endif %}

        {% if page.taxonomies %}
          {{ macros::render_taxonomies(taxonomies=page.taxonomies) }}
        {% endif %}
    </div>

    <hr>
    </div>

    {% include "_footer.html" %}
    {% endblock after_main %}