Wykres commitów

89 Commity (main)

Autor SHA1 Wiadomość Data
Alexander Cobleigh f27c45d4be
Update README.md 2023-05-10 15:43:01 +02:00
Slatian 22d1802337 Documented the theming part a bit better 2022-12-06 12:14:52 +01:00
cblgh 9173912782 tweak language for new search docs 2022-12-06 12:11:32 +01:00
Slatian f41b7f87e7 Added some pretty liberal limits on query length to make it more difficult to cause a DOS condition.
(the go http package by default limits the header length to 1 Megabyte, which is great at preventing someone from causing trpuble at the http layer, but doesn't work too well when there is a pretty expensive search going on in the background)
2022-12-06 12:02:14 +01:00
Slatian e21cc9a9d0 Documented how to place search queries 2022-12-06 12:02:14 +01:00
Slatian b2a9947fb9 Removed debugging outputs 2022-12-06 12:02:14 +01:00
Slatian b431a15441 Added experimental support for "-site:" and "lang:" queries 2022-12-06 12:02:14 +01:00
Slatian b4a2e5e269 Added a robots.txt file 2022-12-06 11:23:04 +01:00
Slatian d02edd35ca Optimized favicons a bit 2022-12-06 11:22:19 +01:00
cblgh 9377bd6fab go fmt 2022-11-22 14:08:59 +01:00
cblgh 9517f62de2 tweak wording and minor details relating to preview queries 2022-11-22 14:08:44 +01:00
Slatian 7c6a63ce2c Added a bit of documentation for new features 2022-11-22 13:52:32 +01:00
Slatian 212f5c5655 Added new configuration option top lieu.toml 2022-11-22 13:52:32 +01:00
Slatian 27e1b68b66 URIs are not case insensitive by default so, we shouldn't assume that they are 2022-11-22 13:52:32 +01:00
Slatian e56f60ccb9 Added batching functionality because wordlists become pretty long when the scraper found lots of long paragraphs 2022-11-22 13:52:32 +01:00
Slatian ed5f5189b0 Added a little check for the response code to not index pages that return errors or finish with codes in the 100 range 2022-11-22 13:52:32 +01:00
Slatian 34d6df3830 Removed "note:" from heuristics as too many sites are affected negatively by this 2022-11-22 13:52:32 +01:00
Slatian c72ea4c6ca Improved heuristics for enlish language text to skip over most fluff paragraphs to get better samples of sites 2022-11-22 13:52:32 +01:00
Slatian 5fe32df938 Added some extra mechanisms that come in handy for getting more useful previews 2022-11-22 13:52:32 +01:00
Slatian cbaa6e06b1 Add a default configuration that mostly works … 2022-11-22 13:52:32 +01:00
Slatian 0a85f38b36 Made scring the preview text configurable and improved the cleanup function a tiny bit. 2022-11-22 13:52:32 +01:00
cblgh b0ad7dce10 add custom webring selector for precrawl 2022-03-30 15:18:38 +02:00
idk 21ef8aac08
Allows the configuration of a proxy (#9)
* Add proxy support, capability to crawl using SOCKS proxies
2022-03-29 14:36:48 +02:00
cblgh 9f912b8323 improve crawling rules wrt path-suffixed sites, close #6 2022-03-07 11:24:20 +01:00
cblgh d98f76573f improve release script, add fts5 tag flag 2022-03-07 11:24:20 +01:00
cblgh 98e8d74eb5 add basic theming support 2022-02-20 15:36:43 +01:00
cblgh e0426514c9 misc defaults 2022-02-20 15:09:19 +01:00
cblgh 1505b23624 improve styling, pave way for easier theming 2022-02-16 10:50:10 +01:00
cblgh b9387d3b04 add user agent Lieu, misc fixes for null results 2021-12-01 09:56:09 +01:00
cblgh 65907c5441 improve about description when indexing not finished 2021-11-10 16:59:44 +01:00
cblgh 5b61996305 add information regarding most recent indexing 2021-11-10 16:52:59 +01:00
cblgh 3595232666 document opensearch file 2021-11-02 16:09:08 +01:00
Claudi 76d5f18d49 Add opensearch metadata for browser integration 2021-11-02 16:04:21 +01:00
cblgh 6f8cd11af2 handle broken pipe?:) 2021-11-01 10:51:55 +01:00
cblgh 2bd178180c update developing instructions 2021-11-01 09:32:54 +01:00
cblgh 4f0b90d083 improve site:<domain> ux, add clear button 2021-11-01 09:28:03 +01:00
cblgh 0bf202d65b add comment about usage 2021-11-01 09:28:03 +01:00
cblgh e28cdccb7c add search by site:<domain> functionality 2021-11-01 09:28:03 +01:00
cblgh bd03b61420 finalize fts + ui 2021-11-01 09:28:03 +01:00
cblgh 793a9867cc wip fts 2021-11-01 09:28:03 +01:00
cblgh 34b4978895 use sprintf not string() for humanizing int 2021-06-06 15:32:25 +02:00
cblgh fd4e186e5a css tweaks, make svg use --colors & add id to result paragraphs 2021-05-13 17:16:34 +02:00
Thomasorus 8a5fba92e3
HTML + CSS + overhaul performance (#2)
* Inputs should have a label for accessibility.

* Added missing standard head html elements

* Spaced things a little bit

* Added meta-description

* Added og and twitter tags for embeds.

* Added canonical url

* Added missing favicons links and theme color

* Added .ico version of favicon for compatibility purposes

* Navigation elements should be in nav to allow screen readers to identify them

* You should have only one h1 tag in your page.

* Added reset file

* Removed padding and margin from html (will redo later)

* Removed all margins 0 (reset already has them) or arbitrary margins

* Global styling should be on body, not html

* Added the 62.5% rule to ease REM handling

* CHANGE TIME! Creating a new CSS file because it's easier lol

* Created fonts css file

* Created config css file

* Moved old base.css and old style.css to new folder

* Renamed index.css to style.css

* Moved reset to css folder

* Added composition file for all our maco level positionning

* Added role list to remove style, added navigation in nav in partial

* Added header positionning

* Splitted space between header and main with viewport height

* Replace a class by article for accessibility and styling

* Finished positionning elements on the home

* bringing back some base styles from previous base file

* Added title fonts back

* Added utility class to simulate h2 style on header link

* Added font swap to avoid invisible text when fonts are loading

* Removed border from home-link

* Created an utility class for italic text and added it to subtitle

* Moved the header link style to blocks, as it's too specific to be utility

* Changed class name in template

* Added flow class utility to space elements between themselves

* Put line-height to 1 on titltes to ease spacing between elements

* Added input style from previous css and converted values to new REM

* Forgot to add new class name to header partial

* Fixed fonts urls

* Imported blocks file in main file

* Added form centering

* Added button style

* Added flex grow utility for the search input

* Turned the whole header into a Block element instead of using config

* Adjusted header padding to match existing design

* Turned header into a fixed element, main takes 100vh

* Removed grid centering from main since it's not used in other pages, now an utility class

* Revert "Removed grid centering from main since it's not used in other pages, now an utility class"

This reverts commit 4da18c1fb3.

* Moved grid centering from composition to utilities since it's specific to the home

* Added top 0 to stick to top

* Created an utility margin class for main

* Wrappred content into an article, added margin-top-main class

* Added grid item center utility class to index

* Added utility classe for article max-width

* Added back hyphens for paragraphs

* Added padding to main

* Added flow and width63 classes to article

* Added width63 to article on about page

* Moved button from config to block as it's not a default style

* Added label to search and redid styles

* Added the name of the webring inside the label

* Replace background image by inline svg in the button

* Fixed margin on button

* Added an aria label and title since the button has no text

* ADjusted the size of the inline svg to avoid a flash of giant svg during loading

* Removed unused style on form

* Added a title element for accessibility

* Created utility class two columns for search results

* Removed padding from ul list by default

* Move search in main, put results into list, added flow and two cols

* Typo

* Added flow2 spacing utility class

* Added entries styles to blocks

* Updated style of entries

* Reduced main top margin

* Added width126 class to contain entries, updated template

* Added visually hidden class

* Added same template as search for webring partial

* Added missing article

* Added translateY50% utility class

* Added translateY to uncenter search box on index

* Added break inside management to avoid text splitted between cols

* Totally removed position fixed header, it was a wrong idea. Adjusted main instead.

* Fixed input and button responsive design

* Reduced transparency for accessibility reasons

* Added a title for accessibility reasons

* Added all code except reset inside main style file

* Added reset directly in head

* Fixed fonts urls

* Deleted useless files

* Converted fonts to woff2, went from 1.7mo to 400ko.

* Moved fonts loading to the end of the file to avoid rendering issues
2021-05-13 17:00:01 +02:00
cblgh 72adc9f749 Merge branch 'main' of github.com:cblgh/lieu into main 2021-05-12 13:53:30 +02:00
cblgh e0f200bdba set LIEU_DEV='' env variable for quicker html dev 2021-05-12 13:52:51 +02:00
Alexander Cobleigh e146e31edb
update example toml, add placeholder + tagline 2021-05-11 20:59:25 +02:00
cblgh 6cd59b2f3d make index tagline & search placeholder customizable 2021-05-11 20:55:07 +02:00
cblgh 17635a513d remove /search 2021-05-11 20:48:23 +02:00
cblgh e0f9c73fd0 /webring redirects to webring link 2021-05-11 20:46:42 +02:00
cblgh 44914e0f21 merge eotl changes :) 2021-05-11 20:39:14 +02:00