diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 4 | ||||
| -rw-r--r-- | templates/blogindex.html | 8 | ||||
| -rw-r--r-- | templates/blogpost.html | 10 | ||||
| -rw-r--r-- | templates/contact.html | 16 | ||||
| -rw-r--r-- | templates/error.html | 2 | ||||
| -rw-r--r-- | templates/index.html | 19 | ||||
| -rw-r--r-- | templates/resume.html | 4 |
7 files changed, 34 insertions, 29 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 5527816..3768821 100644 --- a/templates/blogindex.html +++ b/templates/blogindex.html @@ -1,5 +1,5 @@ {{ define "title" }} -<title>Blog - Christine Dodrill</title> +<title>{{ trans "header" "blog" }} - {{ trans "header" "name" }}</title> <style> .blogpost-card { @@ -9,14 +9,14 @@ {{ end }} {{ define "content" }} -<h1>Blogposts</h1> +<h1>{{ trans "blog" "index_title" }}</h1> <div class="grid"> {{ range . }} <div class="card cell -4of12 blogpost-card"> <header class="card-header">{{ .Title }}</header> <div class="card-content"> - <p>Posted on {{ .Date }} <br> <a href="{{ .Link }}">Read Post</a></p> + <p>{{ trans "blog" "posted_on" .Date }} <br> <a href="{{ .Link }}">{{ trans "blog" "read_this" }}</a></p> </div> </div> {{ end }} @@ -24,7 +24,7 @@ <br /> -<h2>Other Blogs I Find Interesting</h2> +<h2>{{ trans "blog" "blogroll" }}</h2> <ul> <li><a href="https://write.as/excerpts/">Excerpts</a></li> diff --git a/templates/blogpost.html b/templates/blogpost.html index 108902c..a8f5340 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" }} @@ -22,5 +22,5 @@ <hr /> -<i>Content posted on {{ .Date }}, opinions and preferences of the author may have changed since then.</i> +<i>{{ trans "blog" "disclaimer" .Date }}</i> {{ end }} diff --git a/templates/contact.html b/templates/contact.html index 9f8fdfc..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,11 +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>I am on many IRC networks. On Freenode I am using the nick Xe but elsewhere I will use the nick Xena or Cadey.</p> + <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 }} |
