diff options
Diffstat (limited to 'users')
-rw-r--r-- | users/fcuny/blog/.gitignore | 1 | ||||
-rw-r--r-- | users/fcuny/blog/archetypes/default.md | 5 | ||||
-rw-r--r-- | users/fcuny/blog/config.toml | 35 | ||||
-rw-r--r-- | users/fcuny/blog/layouts/_default/baseof.html | 11 | ||||
-rw-r--r-- | users/fcuny/blog/layouts/_default/list.html | 10 | ||||
-rw-r--r-- | users/fcuny/blog/layouts/_default/single.html | 11 | ||||
-rw-r--r-- | users/fcuny/blog/layouts/index.atom.xml | 22 | ||||
-rw-r--r-- | users/fcuny/blog/layouts/index.html | 22 | ||||
-rw-r--r-- | users/fcuny/blog/layouts/partials/head.html | 15 | ||||
-rw-r--r-- | users/fcuny/blog/static/CNAME | 1 | ||||
-rw-r--r-- | users/fcuny/blog/static/css/custom.css | 47 |
11 files changed, 180 insertions, 0 deletions
diff --git a/users/fcuny/blog/.gitignore b/users/fcuny/blog/.gitignore new file mode 100644 index 0000000..6e68499 --- /dev/null +++ b/users/fcuny/blog/.gitignore @@ -0,0 +1 @@ +/docs/ diff --git a/users/fcuny/blog/archetypes/default.md b/users/fcuny/blog/archetypes/default.md new file mode 100644 index 0000000..7ce2f1a --- /dev/null +++ b/users/fcuny/blog/archetypes/default.md @@ -0,0 +1,5 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +--- + diff --git a/users/fcuny/blog/config.toml b/users/fcuny/blog/config.toml new file mode 100644 index 0000000..44080ae --- /dev/null +++ b/users/fcuny/blog/config.toml @@ -0,0 +1,35 @@ +baseURL = "http://fcuny.net/" +languageCode = "en-us" +title = "Franck Cuny's Website" +publishDir = "docs" + +[params] + homeText = "A collection of articles" + +[permalinks] + articles = "/:section/:slug/" + +[markup] + [markup.highlight] + anchorLineNos = false + codeFences = true + guessSyntax = false + hl_Lines = "" + lineAnchors = "" + lineNoStart = 1 + lineNos = false + lineNumbersInTable = true + noClasses = true + style = "emacs" + tabWidth = 2 + +[mediaTypes."application/atom"] +suffixes = ["xml"] + +[outputFormats.Atom] +mediaType = "application/atom" +baseName = "feed" +isPlainText = false + +[outputs] +home = [ "HTML", "Atom" ] diff --git a/users/fcuny/blog/layouts/_default/baseof.html b/users/fcuny/blog/layouts/_default/baseof.html new file mode 100644 index 0000000..d9ca51a --- /dev/null +++ b/users/fcuny/blog/layouts/_default/baseof.html @@ -0,0 +1,11 @@ +<!doctype html> +<html lang="en"> + {{ partial "head.html" . }} + <body> + <div class="main"> + <main> + {{ block "main" . }}{{ end }} + </main> + </div> + </body> +</html> diff --git a/users/fcuny/blog/layouts/_default/list.html b/users/fcuny/blog/layouts/_default/list.html new file mode 100644 index 0000000..3423cb6 --- /dev/null +++ b/users/fcuny/blog/layouts/_default/list.html @@ -0,0 +1,10 @@ +{{ define "main" }} + +<h1>{{ .Title }}</h1> +{{ range .Pages.ByPublishDate.Reverse }} +<p> + <a class="font-125" href="{{ .RelPermalink }}">{{ .Title }}</a> +</p> +{{ end }} + +{{ end }} diff --git a/users/fcuny/blog/layouts/_default/single.html b/users/fcuny/blog/layouts/_default/single.html new file mode 100644 index 0000000..a8c1dc7 --- /dev/null +++ b/users/fcuny/blog/layouts/_default/single.html @@ -0,0 +1,11 @@ +{{ define "main" }} + +<p><a href="/">← Back to Franck's homepage</a></p> + +<h1>{{ .Title }}</h1> + +<p><span class="published">{{ .Date.Format "January 2021" }}</span></p> + +{{ .Content }} + +{{ end }} diff --git a/users/fcuny/blog/layouts/index.atom.xml b/users/fcuny/blog/layouts/index.atom.xml new file mode 100644 index 0000000..531e77c --- /dev/null +++ b/users/fcuny/blog/layouts/index.atom.xml @@ -0,0 +1,22 @@ +<feed xmlns="http://www.w3.org/2005/Atom"> + <title>Franck Cuny Website</title> + <link href="{{ .Permalink }}feed.xml" rel="self"/> + <link href="{{ .Permalink }}"/> + <id>{{ .Permalink }}</id>{{ with .Site.Author.name }} + <author> + <name>{{.}}</name>{{ with $.Site.Author.email }} + <email>{{.}}</email>{{end}} + </author>{{end}} + <generator>Hugo -- gohugo.io</generator>{{ range where (first 10 (where .Site.Pages "Section" "posts")) "Params.hidden" "ne" "true" }} + <entry> + {{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title> + <link href="{{ .Permalink }}"/> + <id>{{ .Permalink }}</id>{{ with .Site.Params.Author }} + <author> + <name>{{.}}</name> + </author>{{end}} + {{- $fmt := "2006-01-02T15:04:05-07:00" }} + <published>{{ .Date.Format $fmt | safeHTML }}</published> + {{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content> + </entry>{{ end }} +</feed> diff --git a/users/fcuny/blog/layouts/index.html b/users/fcuny/blog/layouts/index.html new file mode 100644 index 0000000..5f49f24 --- /dev/null +++ b/users/fcuny/blog/layouts/index.html @@ -0,0 +1,22 @@ +{{ define "main" }} + +<div> + <h1>Franck Cuny</h1> + + <ul> + <li>Email: <a href="mailto:franck@fcuny.net">franck@fcuny.net</a></li> + <li>GitHub: <a href="https://github.com/fcuny">@fcuny</a></li> + <li>Twitter: <a href="https://twitter.com/franckcuny">@franckcuny</a></li> + </ul> + + <p>I'm currently working as a <a href="https://twitter.com/twittersre">Site Reliability Engineer</a> at Twitter, on the Compute team.</p> + + <h2>Notes</h2> + {{ $section := "notes" }} + <ul> + {{ range (where .Site.RegularPages.ByTitle "Section" $section ) }} + <li><a href="{{ .Permalink }}">{{ .Params.title | humanize | title }} ({{ .Date.Format "2021-01" }})</a></li> + {{ end }} + </ul> + +{{ end }} diff --git a/users/fcuny/blog/layouts/partials/head.html b/users/fcuny/blog/layouts/partials/head.html new file mode 100644 index 0000000..9301a82 --- /dev/null +++ b/users/fcuny/blog/layouts/partials/head.html @@ -0,0 +1,15 @@ +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + + <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"> + + <meta name="description" content="Franck Cuny's website, with articles about computers stuff."> + <meta name="author" content="Franck Cuny"> + + <title>{{ .Title }}</title> +</head> diff --git a/users/fcuny/blog/static/CNAME b/users/fcuny/blog/static/CNAME new file mode 100644 index 0000000..7398ba2 --- /dev/null +++ b/users/fcuny/blog/static/CNAME @@ -0,0 +1 @@ +fcuny.net \ No newline at end of file diff --git a/users/fcuny/blog/static/css/custom.css b/users/fcuny/blog/static/css/custom.css new file mode 100644 index 0000000..45f9732 --- /dev/null +++ b/users/fcuny/blog/static/css/custom.css @@ -0,0 +1,47 @@ +@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:400,700'); +@import url('https://fonts.googleapis.com/css?family=Roboto+Mono:400'); + +*, *:before, *:after { box-sizing: border-box; } + +body { + background-color: #ffffea; + line-height: 1.6rem; + font-size: 18px; + font-family: "Roboto Slab", serif; + color: #000; + padding: 2rem; +} + +.main { + margin: auto; + max-width: 50rem; +} + +a { + text-decoration: none; + color: #00add8; +} + +p { color: #1a1a19; } + +h1 { + line-height: normal; +} + +h2 { + margin-top: 2rem; + line-height: 1.4em; +} + +span.published, span.updated { + display: block; + font-style: oblique; +} + +pre { + padding: 1rem 2rem; + margin: 0; + font-size: 16px; + font-family: "Roboto Mono", Monaco, "Lucida Console", monospace; + overflow: scroll; +} |