mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 14:26:41 -04:00
remove algolia search stuff from production for now
This commit is contained in:
@ -1,7 +0,0 @@
|
||||
algoliasearchNetlify({
|
||||
appId: "0XNKMPBIAW",
|
||||
apiKey: "2cdf280c8d3ba1b40c38a7d71bbe5b0b",
|
||||
siteId: "a7403a53-fd9d-44c0-a708-a84d9fc1454d",
|
||||
branch: "main",
|
||||
selector: "div#search",
|
||||
});
|
4
assets/js/vendor/algolia.js
vendored
4
assets/js/vendor/algolia.js
vendored
File diff suppressed because one or more lines are too long
@ -1,3 +0,0 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
@import "@algolia/algoliasearch-netlify-frontend/dist/algoliasearchNetlify.css";
|
@ -15,7 +15,6 @@ $max-width: unquote($max-width);
|
||||
@import "abstracts/settings";
|
||||
@import "abstracts/themes";
|
||||
@import "abstracts/reset";
|
||||
@import "abstracts/search";
|
||||
|
||||
// Global Styles
|
||||
@import "components/typography";
|
||||
|
@ -116,11 +116,6 @@ disableAliases = true
|
||||
path = "." # put in same directory as original post
|
||||
permalinkable = true
|
||||
isHTML = true
|
||||
[outputFormats.ALGOLIA]
|
||||
mediaType = "application/json"
|
||||
baseName = "algolia" # /algolia.json
|
||||
isPlainText = true
|
||||
notAlternative = true
|
||||
[outputFormats.MANIFEST]
|
||||
mediaType = "application/manifest+json" # https://github.com/w3c/manifest/issues/689
|
||||
baseName = "site" # /site.webmanifest
|
||||
|
@ -1,13 +0,0 @@
|
||||
---
|
||||
title: "🔍 Search"
|
||||
url: /search
|
||||
layout: etc
|
||||
sitemap:
|
||||
changefreq: never
|
||||
priority: 0.0
|
||||
amp: false
|
||||
---
|
||||
|
||||
<!-- markdownlint-disable -->
|
||||
<div id="search"></div>
|
||||
<!-- markdownlint-enable -->
|
@ -1,8 +0,0 @@
|
||||
{{- $.Scratch.Add "index" slice -}}
|
||||
{{- $section := $.Site.GetPage "section" .Section }}
|
||||
{{- range .Site.AllPages -}}
|
||||
{{- if or (and (.IsDescendant $section) (and (not .Draft) (not .Params.private))) $section.IsHome -}}
|
||||
{{- $.Scratch.Add "index" (dict "objectID" .File.UniqueID "date" .Date.UTC.Unix "description" .Description "kind" .Kind "lang" .Lang "lastmod" .Lastmod.UTC.Unix "permalink" .Permalink "publishdate" .PublishDate "readingtime" .ReadingTime "summary" .Summary "title" (.Title | markdownify | htmlUnescape | plainify) "type" .Type "url" .RelPermalink "weight" .Weight "wordcount" .WordCount "section" .Section "tags" .Params.Tags "authors" $.Site.Author.name)}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $.Scratch.Get "index" | jsonify -}}
|
@ -13,10 +13,3 @@
|
||||
|
||||
{{- $js := $bundle | resources.Concat "/js/app.js" -}}
|
||||
<script async defer src="{{ $js.Permalink }}"></script>
|
||||
|
||||
{{ if eq .Page.RelPermalink "/search/" }}
|
||||
{{- $algolia := resources.Get "js/vendor/algolia.js" -}}
|
||||
{{- $algoliaConfig := resources.Get "js/search.js" -}}
|
||||
{{- $searchJS := slice $algolia $algoliaConfig | resources.Concat "/js/search.js" -}}
|
||||
<script async defer src="{{ $searchJS.Permalink }}"></script>
|
||||
{{ end }}
|
||||
|
@ -56,12 +56,6 @@
|
||||
# List cached resources for debugging:
|
||||
# [[plugins]]
|
||||
# package = "netlify-plugin-debug-cache"
|
||||
[[plugins]]
|
||||
package = "@algolia/netlify-plugin-crawler"
|
||||
[plugins.inputs]
|
||||
branches = ["main"]
|
||||
mainBranch = "main"
|
||||
customDomain = "jarv.is"
|
||||
|
||||
# The most important headers and redirects are specified in the _headers and
|
||||
# _redirects files generated by Hugo. These are additional custom rules, mostly
|
||||
@ -127,7 +121,7 @@
|
||||
# https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/secure-pages/
|
||||
Content-Security-Policy = '''
|
||||
default-src 'self';
|
||||
connect-src 'self' https://*.algolia.net https://*.algolianet.com https://*.algolia.io https://*.algolianet.com https://*.ampproject.net https://csp-collector.appspot.com/csp/amp https://api.github.com https://starman.fathomdns.com https://platform.twitter.com;
|
||||
connect-src 'self' https://*.ampproject.net https://csp-collector.appspot.com/csp/amp https://api.github.com https://starman.fathomdns.com https://platform.twitter.com;
|
||||
font-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com;
|
||||
form-action 'none';
|
||||
frame-ancestors 'self';
|
||||
|
@ -30,7 +30,6 @@
|
||||
"lint:prettier": "prettier --check ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@algolia/algoliasearch-netlify-frontend": "1.0.6",
|
||||
"@fontsource/comic-neue": "4.2.2",
|
||||
"@fontsource/inter": "4.2.2",
|
||||
"@fontsource/roboto-mono": "4.2.2",
|
||||
@ -39,7 +38,6 @@
|
||||
"twemoji-emojis": "13.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@algolia/netlify-plugin-crawler": "^1.0.6",
|
||||
"autoprefixer": "^10.2.5",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "~7.23.0",
|
||||
|
17
yarn.lock
17
yarn.lock
@ -2,18 +2,6 @@
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@algolia/algoliasearch-netlify-frontend@1.0.6":
|
||||
version "1.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@algolia/algoliasearch-netlify-frontend/-/algoliasearch-netlify-frontend-1.0.6.tgz#21c94b3370dcb608a8c591ca0305c82d4522b10b"
|
||||
integrity sha512-Q3V2USxRMDfvAQwUIHJ/HKzg0GKZQ8flBHBH5LriXYhV5YCtvsF3eVghYZ0FKE+SchnRc2MtaFRhBjU41VQ7XA==
|
||||
|
||||
"@algolia/netlify-plugin-crawler@^1.0.6":
|
||||
version "1.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@algolia/netlify-plugin-crawler/-/netlify-plugin-crawler-1.0.6.tgz#35ac26aea8ee5491a8a0ceb85a8c4d586072a9bc"
|
||||
integrity sha512-p6qfBYvOGZwu1i+C3peqUtTJsPkB4HMO+vQNPocdnKqLj3Emr/3yX3f8YmrAOOpDvgQsHaZ0frW/B1yzYdFYvA==
|
||||
dependencies:
|
||||
node-fetch "2.6.1"
|
||||
|
||||
"@babel/code-frame@7.12.11":
|
||||
version "7.12.11"
|
||||
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f"
|
||||
@ -3496,11 +3484,6 @@ no-case@^2.2.0:
|
||||
dependencies:
|
||||
lower-case "^1.1.1"
|
||||
|
||||
node-fetch@2.6.1:
|
||||
version "2.6.1"
|
||||
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
|
||||
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
|
||||
|
||||
node-releases@^1.1.70:
|
||||
version "1.1.71"
|
||||
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.71.tgz#cb1334b179896b1c89ecfdd4b725fb7bbdfc7dbb"
|
||||
|
Reference in New Issue
Block a user