Try to prevent flashing between page loads by loading CSS earlier
This commit is contained in:
parent
e685109325
commit
64ef954381
|
@ -9,15 +9,15 @@
|
|||
<link rel="openid.delegate" href="https://ethanyoo.com/"/><link rel="openid.server" href="https://openid.indieauth.com/openid"/><link rel="webmention" href="https://webmention.io/ethanyoo.com/webmention"/>
|
||||
{{- with .OutputFormats.Get "RSS" -}}{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}{{ end }}
|
||||
<style>body{background:#10151a}html{visibility:hidden;opacity:0;}</style>
|
||||
<script defer data-domain="ethanyoo.com" src="https://analytics.ethanyoo.com/js/script.js"></script>
|
||||
<link rel="stylesheet" href="/css/style.css?rnd={{ now.Unix }}">
|
||||
</head>
|
||||
<body>
|
||||
{{- if not .IsHome }}{{ partial "header" . }}{{ partialCached "search.html" . }}{{ end }}
|
||||
{{- if .IsHome }}{{- block "header" . }}{{ end }}
|
||||
{{- end }}
|
||||
{{- block "main" . }}{{ end }}
|
||||
<link rel="stylesheet" href="/css/style.css?rnd={{ now.Unix }}">
|
||||
{{ if not .IsHome }}{{ partial "footer" . }}
|
||||
{{ end }}
|
||||
<script defer data-domain="ethanyoo.com" src="https://analytics.ethanyoo.com/js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<!-- layouts/partials/search.html -->
|
||||
<link rel="stylesheet" href="/css/search.css?rnd={{ now.Unix }}">
|
||||
<form id="search-form" class="noscript" method="GET" action="https://duckduckgo.com/">
|
||||
<div class="search-bar">
|
||||
<input id="search-input" class="search--display" name="q" tabindex="0" autocomplete="off" {{ with site.BaseURL }}value=" site:{{ . }}"{{ end }} placeholder="{{ "Search" }}">
|
||||
|
@ -8,4 +9,3 @@
|
|||
</form>
|
||||
<!-- <script src="{{ "/js/fuse.js" | relURL }}"></script> -->
|
||||
<script src="{{ "/js/fixedsearch.js" | relURL }}"></script>
|
||||
<link rel="stylesheet" href="/css/search.css?rnd={{ now.Unix }}">
|
Loading…
Reference in New Issue