commit e1d580f5831be98b5f957a9670e8dc17522d84b2
parent 14cbfc3476834faecd673f024ca317afa6022a18
Author: oscarbenedito <oscar@obenedito.org>
Date:   Mon,  9 Dec 2019 22:13:35 +0100

Added favicon and 404 page

Diffstat:
Mlayouts/404.html | 2+-
Mlayouts/index.html | 26+++++++++++++++++++++++++-
Mlayouts/index.xml | 2+-
Alayouts/partials/404.html | 19+++++++++++++++++++
Dlayouts/partials/landing.html | 25-------------------------
Mlayouts/taxonomy/terms.html | 2+-
Mstatic/.htaccess | 4++--
Astatic/favicon.ico | 0
8 files changed, 49 insertions(+), 31 deletions(-)

diff --git a/layouts/404.html b/layouts/404.html @@ -1 +1 @@ -{{ partial "landing.html" . }} +{{ partial "404.html" . }} diff --git a/layouts/index.html b/layouts/index.html @@ -1 +1,25 @@ -{{ partial "landing.html" . }} +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="description" content="Oscar Benedito's website"> + <meta name="author" content="{{ .Site.Author }}"> + <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> + <title>Oscar Benedito</title> + {{ $favicon := resources.Get "img/favicon.min.svg" }} + <link rel="icon" href="{{ $favicon.RelPermalink }}"> + {{- $style := resources.Get "css/landing.css" | resources.Minify }} + <link rel="stylesheet" href="{{ $style.Permalink }}"> + </head> + <body> + <div class="content"> + <h1>Oscar Benedito</h1> + <p> + <a href="mailto:oscar@obenedito.org" rel="me"><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"/></svg></a> + <a href="/blog/"><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M172.2 226.8c-14.6-2.9-28.2 8.9-28.2 23.8V301c0 10.2 7.1 18.4 16.7 22 18.2 6.8 31.3 24.4 31.3 45 0 26.5-21.5 48-48 48s-48-21.5-48-48V120c0-13.3-10.7-24-24-24H24c-13.3 0-24 10.7-24 24v248c0 89.5 82.1 160.2 175 140.7 54.4-11.4 98.3-55.4 109.7-109.7 17.4-82.9-37-157.2-112.5-172.2zM209 0c-9.2-.5-17 6.8-17 16v31.6c0 8.5 6.6 15.5 15 15.9 129.4 7 233.4 112 240.9 241.5.5 8.4 7.5 15 15.9 15h32.1c9.2 0 16.5-7.8 16-17C503.4 139.8 372.2 8.6 209 0zm.3 96c-9.3-.7-17.3 6.7-17.3 16.1v32.1c0 8.4 6.5 15.3 14.8 15.9 76.8 6.3 138 68.2 144.9 145.2.8 8.3 7.6 14.7 15.9 14.7h32.2c9.3 0 16.8-8 16.1-17.3-8.4-110.1-96.5-198.2-206.6-206.7z"/></svg></a> + <a href="https://gitlab.com/oscarbenedito" rel="me"><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M105.2 24.9c-3.1-8.9-15.7-8.9-18.9 0L29.8 199.7h132c-.1 0-56.6-174.8-56.6-174.8zM.9 287.7c-2.6 8 .3 16.9 7.1 22l247.9 184-226.2-294zm160.8-88l94.3 294 94.3-294zm349.4 88l-28.8-88-226.3 294 247.9-184c6.9-5.1 9.7-14 7.2-22zM425.7 24.9c-3.1-8.9-15.7-8.9-18.9 0l-56.6 174.8h132z"/></svg></a> + <a style="display: none;" href="https://fosstodon.org/@ob" rel="me"></a> + </p> + </div> + </body> +</html> diff --git a/layouts/index.xml b/layouts/index.xml @@ -1 +1 @@ -{{ partial "landing.html" . }} +{{ partial "404.html" . }} diff --git a/layouts/partials/404.html b/layouts/partials/404.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="description" content="Oscar Benedito's website"> + <meta name="author" content="{{ .Site.Author }}"> + <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> + <title>404 Error | Oscar Benedito</title> + {{ $favicon := resources.Get "img/favicon.min.svg" }} + <link rel="icon" href="{{ $favicon.RelPermalink }}"> + {{- $style := resources.Get "css/landing.css" | resources.Minify }} + <link rel="stylesheet" href="{{ $style.Permalink }}"> + </head> + <body> + <div class="content"> + <h1 style="font-size: 20vw; margin: 0;">404</h1> + </div> + </body> +</html> diff --git a/layouts/partials/landing.html b/layouts/partials/landing.html @@ -1,25 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="utf-8"> - <meta name="description" content="Oscar Benedito's website"> - <meta name="author" content="{{ .Site.Author }}"> - <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> - <title>Oscar Benedito</title> - {{ $favicon := resources.Get "img/favicon.min.svg" }} - <link rel="icon" href="{{ $favicon.RelPermalink }}"> - {{- $style := resources.Get "css/landing.css" | resources.Minify }} - <link rel="stylesheet" href="{{ $style.Permalink }}"> - </head> - <body> - <div class="content"> - <h1>Oscar Benedito</h1> - <p> - <a href="mailto:oscar@obenedito.org" rel="me"><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"/></svg></a> - <a href="/blog/"><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M172.2 226.8c-14.6-2.9-28.2 8.9-28.2 23.8V301c0 10.2 7.1 18.4 16.7 22 18.2 6.8 31.3 24.4 31.3 45 0 26.5-21.5 48-48 48s-48-21.5-48-48V120c0-13.3-10.7-24-24-24H24c-13.3 0-24 10.7-24 24v248c0 89.5 82.1 160.2 175 140.7 54.4-11.4 98.3-55.4 109.7-109.7 17.4-82.9-37-157.2-112.5-172.2zM209 0c-9.2-.5-17 6.8-17 16v31.6c0 8.5 6.6 15.5 15 15.9 129.4 7 233.4 112 240.9 241.5.5 8.4 7.5 15 15.9 15h32.1c9.2 0 16.5-7.8 16-17C503.4 139.8 372.2 8.6 209 0zm.3 96c-9.3-.7-17.3 6.7-17.3 16.1v32.1c0 8.4 6.5 15.3 14.8 15.9 76.8 6.3 138 68.2 144.9 145.2.8 8.3 7.6 14.7 15.9 14.7h32.2c9.3 0 16.8-8 16.1-17.3-8.4-110.1-96.5-198.2-206.6-206.7z"/></svg></a> - <a href="https://gitlab.com/oscarbenedito" rel="me"><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M105.2 24.9c-3.1-8.9-15.7-8.9-18.9 0L29.8 199.7h132c-.1 0-56.6-174.8-56.6-174.8zM.9 287.7c-2.6 8 .3 16.9 7.1 22l247.9 184-226.2-294zm160.8-88l94.3 294 94.3-294zm349.4 88l-28.8-88-226.3 294 247.9-184c6.9-5.1 9.7-14 7.2-22zM425.7 24.9c-3.1-8.9-15.7-8.9-18.9 0l-56.6 174.8h132z"/></svg></a> - <a style="display: none;" href="https://fosstodon.org/@ob" rel="me"></a> - </p> - </div> - </body> -</html> diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html @@ -1 +1 @@ -{{ partial "landing.html" . }} +{{ partial "404.html" . }} diff --git a/static/.htaccess b/static/.htaccess @@ -1,5 +1,5 @@ RewriteEngine On Options -Indexes -ErrorDocument 403 /index.html -ErrorDocument 404 /index.html +ErrorDocument 403 /404.html +ErrorDocument 404 /404.html diff --git a/static/favicon.ico b/static/favicon.ico Binary files differ.