Code optimization.

This commit is contained in:
Cotes Chung 2020-01-09 01:45:01 +08:00
parent 501036cafa
commit 53e01c1778
7 changed files with 15 additions and 6 deletions

View file

@ -140,6 +140,12 @@ defaults:
- -
label: Home label: Home
url: / url: /
-
scope:
path: assets/data
values:
layout: compress
sass: sass:
sass_dir: /assets/css sass_dir: /assets/css

View file

@ -25,7 +25,7 @@ SimpleJekyllSearch({
searchInput: document.getElementById('search-input'), searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('search-results'), resultsContainer: document.getElementById('search-results'),
json: '{{ site.baseurl }}/assets/data/search.json', json: '{{ site.baseurl }}/assets/data/search.json',
searchResultTemplate: '{{ result_elem }}', searchResultTemplate: '{{ result_elem | strip_newlines }}',
noResultsText: '{{ not_found }}' noResultsText: '{{ not_found }}'
}); });
</script> </script>

View file

@ -1,4 +1,6 @@
--- ---
--- ---
{"proxyUrl":"{{ site.google_analytics.proxy_url }}"} {
"proxyUrl": "{{ site.google_analytics.proxy_url }}"
}

View file

@ -1,5 +1,4 @@
--- ---
layout: compress
--- ---
[ [

View file

@ -1,10 +1,11 @@
--- ---
layout: compress
# A part of the Favicons # A part of the Favicons
# v2.0 # v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy # https://github.com/cotes2020/jekyll-theme-chirpy
# © 2019 Cotes Chung # © 2019 Cotes Chung
# MIT License # MIT License
layout: compress
--- ---
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<browserconfig> <browserconfig>

View file

@ -1,10 +1,11 @@
--- ---
layout: compress
# A part of the Favicons # A part of the Favicons
# v2.0 # v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy # https://github.com/cotes2020/jekyll-theme-chirpy
# © 2019 Cotes Chung # © 2019 Cotes Chung
# MIT License # MIT License
layout: compress
--- ---
{ {

View file

@ -1,6 +1,6 @@
--- ---
layout: compress layout: compress
#
# The Sitemap template # The Sitemap template
# v2.0 # v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy # https://github.com/cotes2020/jekyll-theme-chirpy