Compare commits

...

3 Commits

Author SHA1 Message Date
Ray Elliott 73b47f1dd3 overide baseof to include tracking code 2020-05-02 19:32:26 +01:00
Ray Elliott 28ed8e996b add images to post 2020-05-02 19:29:22 +01:00
Ray Elliott c56af5c9f4 add tracking code 2020-05-02 18:54:29 +01:00
5 changed files with 169 additions and 15 deletions

View File

@ -8,35 +8,42 @@ tags = []
categories = []
externalLink = ""
series = []
featured_image = "/images/undraw-02.svg"
+++
Yesterday I discovered the excellent [unDraw](https://undraw.co). Apparently,
it's been around for quite a few years now.
Anyway, after a quick 'how did I not know about this earlier?' moment, it was
bookmarked and, with a determination not to completely forget about it within
minutes as I usually do, I happily went about my day.
Anyway, after a little 'how did I not know about this earlier?' moment and a
quick investigation, it was bookmarked and, with a determination not to
completely forget about it within minutes as I usually do, I happily went about
my day.
So, it's now today and I just so happen to be starting a little personal web
project of mine. And what would be the perfect little touch to start it off
It's now one day later and I just so happen to be starting a little personal
web project of mine. And what would be the perfect little touch to start it off
with? That's right, a nice little vector illustration.
I go to find the bookmark and it turns out, there's two bookmarks. Exactly the
{{<
figure
src="/images/undraw-01.svg"
alt="An stylised illustration of a developer sitting alongside a huge laptop."
class="medium"
>}}
So, I go to find the bookmark and it turns out, there's two bookmarks. Exactly the
same. So, I did know about this site. For how long? Who knows. I haven't got the
best memory so it could reasonably be anywhere from a month or two, to years.
Now, I'm pretty sure it's not the only duplicate in there.
And, I'm fairly certain it's not the only duplicate in there ...
Anyway, the point of all this rambling? It's time I did something about it
Anyway, the point of all this rambling? It's about time I did something
and that's where this post comes in.
Probably not much use to anyone else, but perfect for me.
Somewhere to collect all of my most useful developer resources in one place. My
resources 'Hall of Fame' if you will. A place to memorialise the less used, but
nonetheless worthy resources of mine. Never again, to be lost in the annals of
time.
My resource 'Hall of Fame' if you will. A place to memorialise the less used,
but nonetheless worthy resources of mine. Never again, to be lost in the annals
of time.
Probably not too much use to anyone else, but just the thing for me.
## Assets

16
dist/index.html vendored
View File

@ -40,5 +40,21 @@ body {
<body>
<h1>Coming Soon ...</h1>
<p>Why not check out my <a href="blog">blog</a> for now?</p>
<script>
//<![CDATA[
var owa_baseUrl = 'https://owa.isnet.uk/';
var owa_cmds = owa_cmds || [];
owa_cmds.push(['setSiteId', '9010bbc622d7c2514fd73db73f05d89c']);
owa_cmds.push(['trackPageView']);
owa_cmds.push(['trackClicks']);
(function() {
var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
}());
//]]>
</script>
</body>
</html>

View File

@ -0,0 +1,129 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }}
{{ if .Permalink }}
<base href="{{ .Permalink }}">
{{ end }}
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{ if .Permalink }}
<link rel="canonical" href="{{ .Permalink }}">
{{ end }}
<link href="https://fonts.googleapis.com/css?family=Lato:400,700%7COpen+Sans:600,700%7CSource+Code+Pro:600%7CMaterial+Icons+Outlined" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />
{{ if .Site.IsServer }}
{{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}
{{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
{{ else }}
{{ $cssOpts := (dict "targetPath" "css/coder.css" ) }}
{{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts | minify | fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
{{ end }}
{{ if .Site.Params.rtl }}
{{ if .Site.IsServer }}
{{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" "enableSourceMap" true ) }}
{{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
{{ else }}
{{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" ) }}
{{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts | minify | fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
{{ end }}
{{ end }}
{{ if or (eq .Site.Params.colorscheme "auto") (eq .Site.Params.colorscheme "dark") }}
{{ if .Site.IsServer }}
{{ $cssOpts := (dict "targetPath" "css/coder-dark.css" "enableSourceMap" true ) }}
{{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts }}
<link id="stylesheet-dark" rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
{{ else }}
{{ $cssOpts := (dict "targetPath" "css/coder-dark.css" ) }}
{{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts | minify | fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
{{ end }}
{{ end }}
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ . | relURL }}" />
{{ end }}
{{ range .Site.Params.custom_js }}
<script src="{{ . | relURL }}"></script>
{{ end }}
{{ range .Site.Params.custom_scss }}
{{/* We don't change the targetPath to because it's transparent to users */}}
{{ if $.Site.IsServer }}
{{ $cssOpts := (dict "enableSourceMap" true ) }}
{{ $styles := resources.Get . | toCSS $cssOpts }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
{{ else }}
{{ $styles := resources.Get . | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
{{ end }}
{{ end }}
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ hugo.Generator }}
</head>
{{ $csClass := "colorscheme-light" }}
{{ if eq .Site.Params.colorscheme "dark" }}
{{ $csClass = "colorscheme-dark" }}
{{ else if eq .Site.Params.colorscheme "auto" }}
{{ $csClass = "colorscheme-auto" }}
{{ end }}
<body class="{{ .Kind | lower }} {{ with .File }}{{ .BaseFileName | lower }}{{ end }} {{ $csClass }}{{ if .Site.Params.rtl }} rtl{{ end }}">
<main class="wrapper">
{{ partial "header.html" . }}
<div class="content">
{{ block "content" . }}{{ end }}
</div>
{{ partial "footer.html" . }}
</main>
{{ template "_internal/google_analytics.html" . }}
<script src="{{ .Site.Params.baseURL | absURL }}js/script.js"></script>
<script>
//<![CDATA[
var owa_baseUrl = 'https://owa.isnet.uk/';
var owa_cmds = owa_cmds || [];
owa_cmds.push(['setSiteId', '9010bbc622d7c2514fd73db73f05d89c']);
owa_cmds.push(['trackPageView']);
owa_cmds.push(['trackClicks']);
(function() {
var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
}());
//]]>
</script>
</body>
</html>

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.7 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB