diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index e44bfb8..6598f4d 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -2,7 +2,7 @@ disabled = false locale = "en" label = "English" weight = 1 -title = "Tayko.co" +title = "Site::Taco" [params] displayName = "EN" diff --git a/config/_default/menus.en.toml b/config/_default/menus.en.toml index 6a7eecd..c22f2f6 100644 --- a/config/_default/menus.en.toml +++ b/config/_default/menus.en.toml @@ -10,6 +10,11 @@ # overridden by providing a weight value. The menu will then be # ordered by weight from lowest to highest. +[[main]] + name = "About" + pageRef = "about" + weight = 5 + [[main]] name = "Blog" pageRef = "blog" diff --git a/content/about/index.md b/content/about/index.md new file mode 100644 index 0000000..7aec232 --- /dev/null +++ b/content/about/index.md @@ -0,0 +1,14 @@ ++++ +title = "About" +summary = "About me and this blog." ++++ + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + +Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +## About Taco + +Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. + +Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. diff --git a/layouts/about/single.html b/layouts/about/single.html new file mode 100644 index 0000000..e17549c --- /dev/null +++ b/layouts/about/single.html @@ -0,0 +1,100 @@ +{{ define "main" }} +{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }} +
+
+
+
+
+
+ {{ $homepageImage := "" }} + {{ with .Site.Params.defaultBackgroundImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $homepageImage = resources.GetRemote . }} + {{ else }} + {{ $homepageImage = resources.Get . }} + {{ end }} + {{ end }} + {{ with .Site.Params.homepage.homepageImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $homepageImage = resources.GetRemote . }} + {{ else }} + {{ $homepageImage = resources.Get . }} + {{ end }} + {{ end }} + {{ if $homepageImage }} + +
+
+ {{ end }} +
+
+
+ {{ with .Site.Params.Author.image }} + {{ $authorImage := "" }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $authorImage = resources.GetRemote . }} + {{ else }} + {{ $authorImage = resources.Get . }} + {{ end }} + {{ if $authorImage }} + {{ $final := $authorImage }} + {{ $squareImage := $authorImage }} + {{ if not (or $disableImageOptimization (eq $authorImage.MediaType.SubType "svg")) }} + {{ $final = $authorImage.Fill (print "288x288 q" ( $.Site.Params.Author.imagequality | default "96" )) }} + {{ $shortSide := int (math.Min $authorImage.Width $authorImage.Height) }} + {{ $squareImage = $authorImage.Crop (printf "%dx%d" $shortSide $shortSide ) }} + {{ end }} + {{ $.Site.Params.Author.name | default `Author` }} + {{ end }} + {{ end }} +

+ {{ .Site.Params.Author.name | default .Site.Title }} +

+ {{ with .Site.Params.Author.headline }} +

+ {{ . | markdownify }} +

+ {{ end }} +
+ {{ with .Site.Params.Author.links }} +
+ {{ range $links := . }} + {{ range $name, $url := $links }} + {{ $isEmail := eq $name "email" }} + + {{ partial "icon.html" $name }} + + {{ end }} + {{ end }} +
+ {{ end }} +
+
+
{{ .Content }}
+
+
+
+
+
+{{ end }}