combine css into one file
This commit is contained in:
parent
f2ea2cc87a
commit
ad23f12260
|
@ -1,13 +0,0 @@
|
|||
:root {
|
||||
--pagefind-ui-scale: 1;
|
||||
--pagefind-ui-primary: #034ad8;
|
||||
--pagefind-ui-text: #ebdbb2;
|
||||
--pagefind-ui-background: #3c3836;
|
||||
--pagefind-ui-border: #eeeeee;
|
||||
--pagefind-ui-tag: #eeeeee;
|
||||
--pagefind-ui-border-width: 2px;
|
||||
--pagefind-ui-border-radius: 8px;
|
||||
----pagefind-ui-image-border-radius: 8px;
|
||||
--pagefind-ui-image-box-ratio: 3 / 2;
|
||||
--pagefind-ui-font: inherit;
|
||||
}
|
|
@ -1,3 +1,17 @@
|
|||
:root {
|
||||
--pagefind-ui-scale: 1;
|
||||
--pagefind-ui-primary: #034ad8;
|
||||
--pagefind-ui-text: #ebdbb2;
|
||||
--pagefind-ui-background: #3c3836;
|
||||
--pagefind-ui-border: #eeeeee;
|
||||
--pagefind-ui-tag: #034ad8;
|
||||
--pagefind-ui-border-width: 2px;
|
||||
--pagefind-ui-border-radius: 8px;
|
||||
----pagefind-ui-image-border-radius: 8px;
|
||||
--pagefind-ui-image-box-ratio: 3 / 2;
|
||||
--pagefind-ui-font: inherit;
|
||||
}
|
||||
|
||||
main {
|
||||
-webkit-font-feature-settings: "liga" on, "calt" on;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
{{- $gruvbox := resources.Get "gruvbox.css" | resources.ToCSS }}
|
||||
{{- $blogcss := resources.Get "blog.css" | resources.ToCSS }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style>{{ $gruvbox.Content | safeCSS }}</style>
|
||||
<link rel="stylesheet" type="text/css" href="{{ "_pagefind/pagefind-ui.css" | absURL }}">
|
||||
<style>{{ $blogcss.Content | safeCSS }}</style>
|
||||
<script type="text/javascript" src="{{ "_pagefind/pagefind-ui.js" | absURL }}"></script>
|
||||
<style>{{ $gruvbox.Content | safeCSS }}</style>
|
||||
<script>
|
||||
window.addEventListener('DOMContentLoaded', (event) => { new PagefindUI({ element: "#search" }); });
|
||||
</script>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ define "title" }}{{ .Title }}{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||
<h1 data-pagefind-meta="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||
|
||||
<time>{{ .Date.Format "Mon, 02 Jan 2006 15:04 MST" }}</time>
|
||||
<p>tags:</p>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ $taxonomy := "tags" }} {{ with .Param $taxonomy }}
|
||||
<ul>
|
||||
<ul data-pagefind-meta="tags">
|
||||
{{ range $index, $tag := .}} {{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ $tag | urlize }}</a>
|
||||
|
|
Loading…
Reference in New Issue