aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-12-01 18:00:47 -0800
committerChristine Dodrill <me@christine.website>2018-12-01 18:00:47 -0800
commit10f880d674fcd7f57ee6d1a5b65e9a25d6edb19f (patch)
treebbe5bfb283d68f96c786c138ff3e4c2ea91807a4
parentcc6692138b2c444906f6046d2b5725eeaaf3340e (diff)
downloadxesite-10f880d674fcd7f57ee6d1a5b65e9a25d6edb19f.tar.xz
xesite-10f880d674fcd7f57ee6d1a5b65e9a25d6edb19f.zip
templates: use translations
-rw-r--r--templates/base.html4
-rw-r--r--templates/blogindex.html11
-rw-r--r--templates/blogpost.html8
-rw-r--r--templates/contact.html17
-rw-r--r--templates/error.html2
-rw-r--r--templates/index.html19
-rw-r--r--templates/resume.html4
7 files changed, 38 insertions, 27 deletions
diff --git a/templates/base.html b/templates/base.html
index c00bc1e..8c23220 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -56,11 +56,11 @@
{{ template "scripts" . }}
<div class="container">
<header>
- <p><a href="/">Christine Dodrill</a> - <a href="/blog">Blog</a> - <a href="/contact">Contact</a> - <a href="/resume">Resume</a></p>
+ <p><a href="/">{{ trans "header" "name" }}</a> - <a href="/blog">{{ trans "header" "blog" }}</a> - <a href="/contact">{{ trans "header" "contact" }}</a> - <a href="/resume">{{ trans "header" "resume" }}</a></p>
</header>
{{ template "content" . }}
<footer>
- <blockquote>Copyright 2018 Christine Dodrill. Any and all opinions listed here are my own and not representative of my employer.</blockquote>
+ <blockquote>{{ trans "meta" "copyright" "2018" }}</blockquote>
</footer>
<script>
if (navigator.serviceWorker.controller) {
diff --git a/templates/blogindex.html b/templates/blogindex.html
index c173942..5fb1e3b 100644
--- a/templates/blogindex.html
+++ b/templates/blogindex.html
@@ -1,21 +1,21 @@
{{ define "title" }}
-<title>Blog - Christine Dodrill</title>
+<title>{{ trans "header" "blog" }} - {{ trans "header" "name" }}</title>
{{ end }}
{{ define "content" }}
-<h1>Blogposts</h1>
+<h1>{{ trans "blog" "index_title" }}</h1>
<p>
<ul>
{{ range . }}
- <li>{{ .Date }} - <a href="{{ .Link }}">{{ .Title }}</a></li>
+ <li>{{ trans "blog" "posted_on" .Date }} - <a href="{{ .Link }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</p>
<br />
-<h2>Other Blogs I Find Interesting</h2>
+<h2>{{ trans "blog" "blogroll" }}</h2>
<ul>
<li><a href="https://write.as/excerpts/">Excerpts</a></li>
@@ -25,6 +25,7 @@
<li><a href="https://shamanic.vision/">Shamanic Vision</a></li>
</ul>
+<h2>{{ trans "blog" "comments" }}</h2>
<h2>Selected Commentary on These Blogposts</h2>
<h3><a href="/blog/experimental-rilkef-2018-11-30">I Put Words on this Webpage so You Have to Listen to Me Now</a></h3>
@@ -33,6 +34,8 @@
<blockquote>
Top tier satire. Won't be read by anyone who should read it, and will be ignored/laughed at by anyone who does/already agrees.
+ <br />
+
Literally preaching to the literal choir.
</blockquote>
diff --git a/templates/blogpost.html b/templates/blogpost.html
index fb87f17..414d114 100644
--- a/templates/blogpost.html
+++ b/templates/blogpost.html
@@ -1,5 +1,5 @@
{{ define "title" }}
-<title>{{ .Title }} - Christine Dodrill</title>
+<title>{{ .Title }} - {{ trans "header" "name" }}</title>
<!-- Twitter -->
<meta name="twitter:card" content="summary" />
@@ -10,11 +10,11 @@
<!-- Facebook -->
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ .Title }}" />
-<meta property="og:site_name" content="Christine Dodrill's Blog" />
+<meta property="og:site_name" content="{{ trans "blog" "title" }}" />
<!-- Description -->
-<meta name="description" content="{{ .Title }} - Christine Dodrill's Blog" />
-<meta name="author" content="Christine Dodrill">
+<meta name="description" content="{{ .Title }} - {{ trans "blog" "title" }}" />
+<meta name="author" content="{{ trans "header" "name" }}">
{{ end }}
{{ define "content" }}
diff --git a/templates/contact.html b/templates/contact.html
index 79adb2d..d641b18 100644
--- a/templates/contact.html
+++ b/templates/contact.html
@@ -1,15 +1,13 @@
-{{ define "title" }}<title>Contact - Christine Dodrill</title>{{ end }}
+{{ define "title" }}<title>{{ trans "header" "contact" }} - {{ trans "header" "name" }}</title>{{ end }}
{{ define "content" }}
-<h1>Contact Information</h1>
+<h1>{{ trans "contact" "header" }}</h1>
<div class="grid">
<div class="cell -6of12">
- <h3>Email</h3>
+ <h3>{{ trans "contact" "email" }}</h3>
<p>me@christine.website</p>
- <p>My GPG fingerprint is <code>799F 9134 8118 1111</code>. If you get an email that appears to be from me and the signature does not match that fingerprint, it is not from me. You may download a copy of my public key <a href="/static/gpg.pub">here</a>.</p>
-
- <h3>Social Media</h3>
+ <h3>{{ trans "contact" "social_media" }}</h3>
<ul>
<li><a href="https://github.com/Xe">Github</a></li>
<li><a href="https://twitter.com/theprincessxena">Twitter</a></li>
@@ -20,8 +18,11 @@
</ul>
</div>
<div class="cell -6of12">
- <h3>Other Information</h3>
- <p>To send me donations, my bitcoin address is <code>1Gi2ZF2C9CU9QooH8bQMB2GJ2iL6shVnVe</code>.</p>
+ <h3>{{ trans "contact" "other_info" }}</h3>
+ <p>{{ trans "contact" "donations" }} <code>1Gi2ZF2C9CU9QooH8bQMB2GJ2iL6shVnVe</code>.</p>
+
+ <h4>IRC</h4>
+ <p>{{ trans "contact" "irc_comment" }}</p>
<h4>Telegram</h4>
<p><a href="https://t.me/miamorecadenza">@miamorecadenza</a></p>
diff --git a/templates/error.html b/templates/error.html
index cb47e83..6e1bf36 100644
--- a/templates/error.html
+++ b/templates/error.html
@@ -1,5 +1,5 @@
{{ define "title" }}
-<title>Error - Christine Dodrill</title>
+<title>{{ trans "error" "title" }} - {{ trans "header" "name" }}</title>
{{ end }}
{{ define "content" }}
diff --git a/templates/index.html b/templates/index.html
index 9043e5f..736a599 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,29 +1,36 @@
-{{ define "title" }}<title>Christine Dodrill</title>{{ end }}
+{{ define "title" }}<title>{{ trans "header" "name" }}</title>{{ end }}
{{ define "content" }}
<div class="grid">
<div class="cell -3of12 content">
<img src="/static/img/avatar.png">
<br />
- <a href="/contact" class="justify-content-center">Contact Me</a>
+ <a href="/contact" class="justify-content-center">{{ trans "index" "contact_me" }}</a>
</div>
<div class="cell -9of12 content">
- <h1>Christine Dodrill</h1>
- <h4>Web and Backend Services Devops Specialist</h4>
- <h5>Skills</h5>
+ <h1>{{ trans "header" "name" }}</h1>
+ <h4>{{ trans "index" "title" }}</h4>
+ <h5>{{ trans "index" "skills" }}</h5>
<ul>
<li>Go, Lua, Nim, Haskell, C, Python (3.x) and other languages</li>
<li>Docker (deployment, development & more)</li>
<li>Mashups of data</li>
<li>Package maintainer for Alpine Linux</li>
+ <li>Speaks English, toki pona, and la .lojban.</li>
</ul>
- <h5>Highlighted Projects</h5>
+ <h5>{{ trans "index" "highlighted_projects" }}</h5>
<ul>
<li><a href="https://github.com/Xe/PonyAPI">PonyAPI</a> - My Little Pony: Friendship is Magic Episode information API</li>
<li><a href="https://github.com/PonyvilleFM/aura">Aura</a> - PonyvilleFM live DJ recording bot</li>
<li><a href="https://github.com/Elemental-IRCd/elemental-ircd">Elemental-IRCd</a> - IRC Server Software</li>
<li><a href="https://github.com/Xe/site">This website</a> - The backend and templates for this website</li>
+ <li><a href="https://github.com/Xe/olin">Olin</a> - WebAssembly on the server</li>
+ <li><a href="https://github.com/Xe/aports">aports</a> - Alpine Linux ports</li>
+ <li><a href="https://github.com/Xe/when-then-zen">when-then-zen</a> - Meditation instructions in Gherkin</li>
+ <li><a href="https://github.com/Xe/creators-code">Creator's Code</a> - Minimal code of conduct for communities</li>
+ <li><a href="https://github.com/Xe/printerfacts">printerfacts</a> - Informative facts about printers</li>
+ <li><a href="https://github.com/Xe/x">x</a> - Experiments and toys</li>
</ul>
</div>
</div>
diff --git a/templates/resume.html b/templates/resume.html
index 9789361..4776ce3 100644
--- a/templates/resume.html
+++ b/templates/resume.html
@@ -1,9 +1,9 @@
-{{ define "title" }}<title>Resume - Christine Dodrill</title>{{ end }}
+{{ define "title" }}<title>{{ trans "header" "resume" }} - {{ trans "header" "name" }}</title>{{ end }}
{{ define "content" }}
{{ . }}
<hr />
-<a href="/static/resume/resume.md">Plain-text version of this resume here</a>
+<a href="/static/resume/resume.md">{{ trans "resume" "plaintext" }}</a>
{{ end }}