diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
| -rw-r--r-- | layouts/_default/single.html | 36 | ||||
| -rw-r--r-- | layouts/index.html | 64 | ||||
| -rw-r--r-- | layouts/partials/head.html | 23 |
4 files changed, 78 insertions, 49 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6406b4e..b2fbbc1 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,8 +2,6 @@ <html lang="en"> {{ partial "head.html" . }} <body> - <main> - {{ block "main" . }}{{ end }} - </main> + <main>{{ block "main" . }}{{ end }}</main> </body> </html> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a360c93..2919b8f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,30 +1,28 @@ {{ define "main" }} <div> + <h1>{{ .Title }}</h1> -<h1>{{ .Title }}</h1> + <div id="meta"> + {{- $pub := .Date.Format "Jan 2, 2006" -}} + {{- $mod := "" -}} -<div id="meta"> - {{- $pub := .Date.Format "Jan 2, 2006" -}} - {{- $mod := "" -}} - {{- if (not .GitInfo) }} - {{- $mod = .Lastmod.Format "Jan 2, 2006" -}} - {{ else }} - {{- $mod = .Page.GitInfo.CommitDate.Format "Jan 2, 2006" -}} - {{ end -}} - {{ if eq $pub $mod }} - <span id="meta_date">posted on {{ $pub }}</span> - {{ else }} - <span id="meta_date">posted on {{ $pub }} - last modified {{ $mod }}</span> - {{ end }} -</div> + {{- if (not .GitInfo) }} + {{- $mod = .Lastmod.Format "Jan 2, 2006" -}} + {{ else }} + {{- $mod = .Page.GitInfo.CommitDate.Format "Jan 2, 2006" -}} + {{ end -}} -<article> -{{ .Content }} -</article> + {{ if eq $pub $mod }} + <span id="meta_date">posted on {{ $pub }}</span> + {{ else }} + <span id="meta_date">posted on {{ $pub }} - last modified {{ $mod }}</span> + {{ end }} + </div> -<a href="/">↑ back home</a> + <article>{{ .Content }}</article> + <a href="/">↑ back home</a> </div> {{ end }} diff --git a/layouts/index.html b/layouts/index.html index e93f139..cbf00cc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,27 +2,49 @@ <p>My name is Franck Cuny and this is my little corner on the web.</p> -<p>I currently work as a <a href="https://en.wikipedia.org/wiki/Site_reliability_engineering">Site Reliability Engineer</a> (SRE) at <a href="https://www.roblox.com/" target="_blank">Roblox</a>. Previously I worked as a SRE at <a href="https://twitter.com/TwitterEng" target="_blank">Twitter</a>, and my focus was on the infrastructure.</p> +<p> + I currently work as a + <a href="https://en.wikipedia.org/wiki/Site_reliability_engineering" + >Site Reliability Engineer</a + > + (SRE) at <a href="https://www.roblox.com/" target="_blank">Roblox</a>. + Previously I worked as a SRE at + <a href="https://twitter.com/TwitterEng" target="_blank">Twitter</a>, and my + focus was on the infrastructure. +</p> -<p>I'm interested in building sustainable teams, improving the management and operation of large infrastructure, and to work with different teams to implement best practices around reliability and security.</p> +<p> + I'm interested in building sustainable teams, improving the management and + operation of large infrastructure, and to work with different teams to + implement best practices around reliability and security. +</p> <ul> - <li>Some of my code is shared on <a href="https://github.com/fcuny">GitHub</a></li> - <li>Email: <a href="mailto:franck@fcuny.net" title="franck@fcuny.net">franck@fcuny.net</a></li> + <li> + Some of my code is shared on <a href="https://github.com/fcuny">GitHub</a> + </li> + <li> + Email: + <a href="mailto:franck@fcuny.net" title="franck@fcuny.net" + >franck@fcuny.net</a + > + </li> </ul> <h2>Articles</h2> <article> <ul> - {{ range (where .Site.Pages "Section" "blog") }} - {{ range .Pages }} - <li> - <span class="content-title"><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span class="content-date"><em>posted on {{ .Date.Format "Jan 2, 2006" }}</em></span> - </li> - {{ end }} - {{ end }} + {{ range (where .Site.Pages "Section" "blog") }} {{ range .Pages }} + <li> + <span class="content-title" + ><a href="{{ .Permalink }}">{{ .Title }}</a></span + > + <span class="content-date" + ><em>posted on {{ .Date.Format "Jan 2, 2006" }}</em></span + > + </li> + {{ end }} {{ end }} </ul> </article> @@ -30,14 +52,16 @@ <article> <ul> - {{ range (where .Site.Pages "Section" "notes") }} - {{ range .Pages }} - <li> - <span class="content-title"><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span class="content-date"><em>posted on {{ .Date.Format "Jan 2, 2006" }}</em></span> - </li> - {{ end }} - {{ end }} + {{ range (where .Site.Pages "Section" "notes") }} {{ range .Pages }} + <li> + <span class="content-title" + ><a href="{{ .Permalink }}">{{ .Title }}</a></span + > + <span class="content-date" + ><em>posted on {{ .Date.Format "Jan 2, 2006" }}</em></span + > + </li> + {{ end }} {{ end }} </ul> </article> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 39ef8aa..1fa0b42 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,16 +1,25 @@ <head> - <meta charset="utf-8"> + <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <link rel="canonical" href="{{ .Permalink }}"> + <link rel="canonical" href="{{ .Permalink }}" /> - {{ $css := "/css/custom.css" }} - <link rel="stylesheet" href="{{ $css }}"> - <link rel="alternate" href="{{ "/feed.xml" | relURL }}" type="application/atom+xml" title="ATOM feed"> + {{ $css := "/css/custom.css" }} {{ $feed := "/feed.xml" }} + + <link rel="stylesheet" href="{{ $css }}" /> + <link + rel="alternate" + href="{{ $feed | relURL }}" + type="application/atom+xml" + title="ATOM feed" + /> <link rel="author" href="humans.txt" /> - <meta name="description" content="Franck Cuny's website, with articles about computers stuff."> - <meta name="author" content="Franck Cuny"> + <meta + name="description" + content="Franck Cuny's website, with articles about computers stuff." + /> + <meta name="author" content="Franck Cuny" /> <title>{{ .Title }}</title> </head> |
