Comments (8)
For searching on one tag it seems like we could just generate tag indexes. E.g. for every tag you use, generate _site/tags/[tag]/index.html from some tag layout file.
But if you want to be able to go to /tags/linux/administration to get everything with both tags, then things could get crazy. When you have a post with 5 tags you'd have to generate 120 separate tag indexes, for that post's tags alone. For that many the space required isn't so bad, but I'm not sure how much it would slow jekyll down. If you have 7 or more tags on a post it starts to get ridiculous.
from jekyll.
Tag index pages or a single page listing tags (like http://henrik.nyh.se/tag ) could work. If someone needs to find tag1+tag2, I'd suggest going with a single page and then using JavaScript to e.g. make /tag#tag1+tag2 do something clever.
from jekyll.
@henrik - yeah it would work on just a single page or may be I should abandon this whole idea and just go and use wiki.
from jekyll.
π on not using Jekyll if you need search built in. Jekyll's job is slightly dynamic site generation, that's it.
from jekyll.
So search isn't something that's being considered?
from jekyll.
That is correct. If search is a hard requirement for what you're doing,
Jekyll is not the right tool for the job.
from jekyll.
Write a plugin which outputs a list of your tags and the associated posts and write a sinatra server which responds to /search
and just parses through that list output by the jekyll plugin. An idea.
from jekyll.
The easiest way is to use plugin that generates posts listing by tags. You can use mine (see it in action: http://ixti.net/tags/ruby.html).
Alternatively, if you want kind of "real" search, you can generate a JS file with post => tags mapping and then write a search tool in JS. To write such dynamic JS, you can use jekyll-assets plugin.
from jekyll.
Related Issues (20)
- Update dependency constraint to allow for activesupport v7.1.1 HOT 2
- feat: multi-thread rendering HOT 10
- [Bug]: jekyll build fails with Variable was not properly terminated with regexp: /\\}\\}/ (Liquid::SyntaxError) HOT 1
- [Bug]: jekyll not working after upgrade from Debian 11 to 12 HOT 2
- [Bug]: Jekyll Github Pages site doesn't "play nice" with Ruby versions required by vscode HOT 1
- Time for a new release
- > Β‘Hola! π HOT 1
- feat: OpenBSD support HOT 6
- Found CRITICAL Vulnerability in your website! HOT 1
- [Bug]: LiveReload websocket crashes over HTTPS/WSS HOT 1
- [Bug]: jekyll serve does not detach when spawned without shell HOT 1
- [Docs]: Urgent: Specify json gem version for Jekyll 4.3.2
- [Bug]: livereload-ignore option doesn't work HOT 1
- [Bug]: Liquid Exception: divided by 0
- [Docs]: 7. Assets - css-lcurlyexcted
- feat: Display the deployed package in the repository
- [Docs]: GitHub Pages relative links note
- feat: TOML front matter support HOT 3
- feat:
- [Bug]: `page` variables to not rendered correctly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll.