all repos — h3rald @ b3b7a946f58e753b0e5c7a7de02e6b67b9c176fe

The sources of https://h3rald.com

Added index script.
h3rald h3rald@h3rald.com
Fri, 06 Oct 2017 21:18:03 +0200
commit

b3b7a946f58e753b0e5c7a7de02e6b67b9c176fe

parent

533ab3f4bedba2f9a184e43bd898d4e6b9a81773

2 files changed, 21 insertions(+), 0 deletions(-)

jump to
M .gitignore.gitignore

@@ -3,3 +3,5 @@ temp/*

_tmp/* _bkp/* _old/* +*.db +*.db-journal
A scripts/index.min

@@ -0,0 +1,19 @@

+;Re-index articles +'hastysite import + +"Indexing articles..." notice + +. :pwd +(. "data.db") => "/" join :store + +(. "contents") => "/" join cd + +"Deleting search index..." notice +store rm + +"Importing data..." notice +"litestore -s:$1 -d:articles import" (store) => % ! + +pwd cd + +"All done." notice