diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-07-21 15:30:04 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-07-21 15:30:04 +0200 |
| commit | 4df99f1df784fb6f6f6b221aaf9abccfad6f2d8a (patch) | |
| tree | d85eadbd34ee7b419c50762a75fa996b97dbab81 /layouts/partials/footer.html | |
| parent | cf1656886b2bc0609243d0c28db899e4cd8c37f1 (diff) | |
| download | blog-4df99f1df784fb6f6f6b221aaf9abccfad6f2d8a.tar.gz blog-4df99f1df784fb6f6f6b221aaf9abccfad6f2d8a.zip | |
update barba; optimize
Diffstat (limited to 'layouts/partials/footer.html')
| -rw-r--r-- | layouts/partials/footer.html | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index cb2a4c4..23f77d0 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,26 +6,38 @@ <!-- SVGs: GitHub octicons, MIT license --> {{ if not .IsHome }} <a href="{{ .Site.RSSLink }}"><svg height="16" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M2 13H0V11c1.11 0 2 0.89 2 2zM0 3v1c4.97 0 9 4.03 9 9h1c0-5.52-4.48-10-10-10z m0 4v1c2.75 0 5 2.25 5 5h1c0-3.31-2.69-6-6-6z" /></svg> RSS</a> - + — {{ end }} {{ if .IsNode }} <a href="{{ .RSSLink }}"><svg height="16" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M2 13H0V11c1.11 0 2 0.89 2 2zM0 3v1c4.97 0 9 4.03 9 9h1c0-5.52-4.48-10-10-10z m0 4v1c2.75 0 5 2.25 5 5h1c0-3.31-2.69-6-6-6z" /></svg> RSS{{ if not .IsHome}} ({{ .Title }}){{ end }}</a> - + — {{ end }} {{ with .Site.Params.email }}<a href="mailto:{{ . }}" target="_blank"><svg height="16" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M0 4v8c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V4c0-0.55-0.45-1-1-1H1c-0.55 0-1 0.45-1 1z m13 0L7 9 1 4h12zM1 5.5l4 3L1 11.5V5.5z m1 6.5l3.5-3 1.5 1.5 1.5-1.5 3.5 3H2z m11-0.5L9 8.5l4-3v6z" /></svg> Mail</a>{{ end }} - + — <a href="/schneefux.pubkey.txt"><svg height="16" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M4 13H3v-1h1v1zm8-6v7c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h1V4c0-2.2 1.8-4 4-4s4 1.8 4 4v2h1c.55 0 1 .45 1 1zM3.8 6h4.41V4c0-1.22-.98-2.2-2.2-2.2-1.22 0-2.2.98-2.2 2.2v2H3.8zM11 7H2v7h9V7zM4 8H3v1h1V8zm0 2H3v1h1v-1z"></path></svg> PGP key</a> - + — {{ with .Site.Params.github }}<a href="https://github.com/{{ . }}" target="_blank"><svg height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59 0.4 0.07 0.55-0.17 0.55-0.38 0-0.19-0.01-0.82-0.01-1.49-2.01 0.37-2.53-0.49-2.69-0.94-0.09-0.23-0.48-0.94-0.82-1.13-0.28-0.15-0.68-0.52-0.01-0.53 0.63-0.01 1.08 0.58 1.23 0.82 0.72 1.21 1.87 0.87 2.33 0.66 0.07-0.52 0.28-0.87 0.51-1.07-1.78-0.2-3.64-0.89-3.64-3.95 0-0.87 0.31-1.59 0.82-2.15-0.08-0.2-0.36-1.02 0.08-2.12 0 0 0.67-0.21 2.2 0.82 0.64-0.18 1.32-0.27 2-0.27 0.68 0 1.36 0.09 2 0.27 1.53-1.04 2.2-0.82 2.2-0.82 0.44 1.1 0.16 1.92 0.08 2.12 0.51 0.56 0.82 1.27 0.82 2.15 0 3.07-1.87 3.75-3.65 3.95 0.29 0.25 0.54 0.73 0.54 1.48 0 1.07-0.01 1.93-0.01 2.2 0 0.21 0.15 0.46 0.55 0.38C13.71 14.53 16 11.53 16 8 16 3.58 12.42 0 8 0z" /></svg> GitHub</a>{{ end }} - + — <a href="https://git.schneefux.xyz/"><svg height="16" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M10 5c0-1.11-0.89-2-2-2s-2 0.89-2 2c0 0.73 0.41 1.38 1 1.72v0.3c-0.02 0.52-0.23 0.98-0.63 1.38s-0.86 0.61-1.38 0.63c-0.83 0.02-1.48 0.16-2 0.45V4.72c0.59-0.34 1-0.98 1-1.72 0-1.11-0.89-2-2-2S0 1.89 0 3c0 0.73 0.41 1.38 1 1.72v6.56C0.41 11.63 0 12.27 0 13c0 1.11 0.89 2 2 2s2-0.89 2-2c0-0.53-0.2-1-0.53-1.36 0.09-0.06 0.48-0.41 0.59-0.47 0.25-0.11 0.56-0.17 0.94-0.17 1.05-0.05 1.95-0.45 2.75-1.25s1.2-1.98 1.25-3.02h-0.02c0.61-0.36 1.02-1 1.02-1.73zM2 1.8c0.66 0 1.2 0.55 1.2 1.2s-0.55 1.2-1.2 1.2-1.2-0.55-1.2-1.2 0.55-1.2 1.2-1.2z m0 12.41c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z m6-8c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z" /></svg> Git repositories</a> </div> </footer> </div> -<script type="text/javascript" src="/js/min.js"></script> +<noscript id="deferred-styles"> + <link rel="stylesheet" type="text/css" href="/css/min.css"> +</noscript> +<script async type="text/javascript" src="/js/min.js"></script> <script type="text/javascript"> - Barba.Pjax.start(); - Barba.Prefetch.init(); + var loadDeferredStyles = function() { + var addStylesNode = document.getElementById("deferred-styles"); + var replacement = document.createElement("div"); + replacement.innerHTML = addStylesNode.textContent; + document.body.appendChild(replacement) + addStylesNode.parentElement.removeChild(addStylesNode); + }; + var raf = requestAnimationFrame || mozRequestAnimationFrame || + webkitRequestAnimationFrame || msRequestAnimationFrame; + if (raf) raf(function() { window.setTimeout(loadDeferredStyles, 0); }); + else window.addEventListener('load', loadDeferredStyles); </script> </body> </html> |
