summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: d2180d5a575f8fdd81406532cf8926da94eea925 (plain)
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
<!DOCTYPE html>
<html {%block htmlclass%}{%endblock%} dir="ltr" lang="en-US">
    {% block sitename %}
<head>
    <meta charset="UTF-8">
    <title>{% block pagetitle %}Luxagraf - Topografical Writings{% endblock %}</title>{%endblock%}
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" 
          content="{% block metadescription %}Luxagraf: recording journeys around the world and just next door.{% endblock %}">
    <meta name="author" content="Scott Gilbertson">
    <link rel="self" href="https://luxagraf.net/">
    <link rel="dns-prefetch" href="https://images.luxagraf.net">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="alternate" 
          type="application/rss+xml" 
          title="Luxagraf RSS feed"
          href="https://luxagraf.net/rss/">
    {%block stylesheet%}<link rel="stylesheet" 
          href="/media/screenv11.min.css?{% now "u" %}" 
          media="screen">{%endblock%}
    {%block extrahead%}{%endblock%}
</head>
<body {%block bodyid%}{%endblock%}{%block bodyevents%}{%endblock%}>
    <header class="header-wrapper">
        <div id="logo">
            <a class="logo-link" href="/" title="Home">Luxagraf</a>
            <span class="sitesubtitle" id="slogan">{%block sitesubtitle %}Walk Slowly{% endblock%}</span>
        </div>
        <nav>
            <a class="nav-item smcaps" href="{% url "jrnl:list" %}" title="Stories of life on the road.">Jrnl</a>
            <a class="nav-item smcaps" href="/films/" title="Films">Films</a> 
            <a class="nav-item smcaps" href="/essays/" title="Essays">Essays</a> 
            <a class="nav-item smcaps" href="/friends/" title="Join the 'friends of a long year' newsletter">Friends</a> 
            {%comment%}<a class="nav-item smcaps" href="/range/" title="Join the 'Range' newsletter">Range</a> {%endcomment%}
            <a class="nav-item smcaps" href="/about" title="About Scott">About</a>
        </nav>
    </header>
    {% block breadcrumbs %}{% endblock %}
    {% block primary %}{% endblock %}
    {% block extrabody %}{% endblock %}
    {% block disclaimer %}{% endblock%}
    <footer class="page-footer">
        <nav>
            <a class="nav-item smcaps" href="/code" title="Words to live by">Code</a>
            <a class="nav-item smcaps" href="/blogroll" title="Sites that inspire us">Blogroll</a>
            <a class="nav-item smcaps" href="/contact" title="contact luxagraf">Contact</a>
            <a class="nav-item smcaps" href="/feed.xml" title="RSS feed">RSS</a>
        </nav>
        <p id="license">
            &copy; 2003-{% now "Y" %} 
            <span class="h-card"><a class="p-name u-url" href="https://luxagraf.net/">Scott Gilbertson</a><data class="p-nickname" value="luxagraf"></data></span>.
        </p>
    </footer>
{% block js %}<script>
function isOdd(num) { return num % 2;}
document.addEventListener("DOMContentLoaded", function(event) { 
    var today = new Date();
    var dd = String(today.getDate())
    if (isOdd(dd)) {
        var slogan = document.getElementById("slogan");
        slogan.innerHTML = "Safety Third";
    }
});
</script>{% endblock%}</body>
</html>