4 Commits

Author SHA1 Message Date
Akbar Rahman
fa8840d25e Update indexsearch.js 2024-11-13 12:14:19 +00:00
Akbar Rahman
07ece47980 fix indexsearch.js using wrong variable 2024-11-13 12:13:40 +00:00
6638c72230 include styling to permalink redirect page 2024-04-14 16:01:30 +01:00
44e5da27cc feed at second url 2024-04-13 21:15:42 +01:00
3 changed files with 6 additions and 3 deletions

View File

@@ -443,7 +443,8 @@ def generate_permalink_page(output_dir):
dir = output_dir.joinpath('permalink')
dir.mkdir(exist_ok=True)
dir.joinpath('index.html').write_text(
JINJA_TEMPLATE_PERMALINK.render(gronk_commit=GRONK_COMMIT,
JINJA_TEMPLATE_PERMALINK.render(title="redirecting... | gronk",
gronk_commit=GRONK_COMMIT,
data=FILEMAP.get_uuid_map()))
@@ -555,6 +556,7 @@ def main(args):
posts=posts,
)
root_properties['dst_path']['raw'].joinpath('feed.xml').write_text(rss)
root_properties['dst_path']['raw'].joinpath('rss.xml').write_text(rss)
#pprint.pprint(root_properties)
# render index

View File

@@ -6,7 +6,7 @@ const TITLE = "title"
const SEARCH_TIMEOUT_MS = 100
var SEARCH_TIMEOUT_ID = -1
const fuse = new Fuse(data, {
const fuse = new Fuse(search_data, {
keys: [ 'title' ],
ignoreLocation: true,
threshhold: 0.4,
@@ -30,7 +30,7 @@ function updateResults() {
console.log("updating results")
resultsDiv.innerHTML = ''
if (searchBar.value) results = fuse.search(searchBar.value, { limit: RESULTS_MAX }).map(r => r.item)
else results = data
else results = search_data
results.forEach(r => {
wrapper = document.createElement('li')

View File

@@ -1,3 +1,4 @@
{% extends "base.html" %}
{% block content %}
<p>
You should be being redirected...