Comments (9)
450840b introduces new problems:
- It seems that there is no longer a way to see which section is being searched if
global
isfalse
. - Translations now show e.g.
Suche in <no value>
.
from compose.
This is a breaking change indeed.
This changed
[search_field_placeholder]
other = "Search {{ .section }}"
to
[search_field_placeholder]
other = "Search"
from compose.
It should work now, with or without the change.
from compose.
But it seems that you removed the indicator that the user is only searching a specific section if global = false
, right?
If I understand that correctly, I think that could lead to confusion.
from compose.
@ltguillaume, that indicator still exists when global is false. I modified how it's injected.
Previously it was baked into the translation string, that's not necessary.
from compose.
Ok, so I need to remove it from the translations, thanks. It just said Suche in <no value>
but perhaps the section is shown after that and it was cut off due to the size of the input box. I'll check soon.
from compose.
so I need to remove it from the translations
Not necessarily. I added a fallback in the template that sets the <no value>
part to an empty string. Just for backward compatibility.
from compose.
I'm not following. Does this mean there is a translation missing, or that the new JS function passes on an empty string, which it shouldn't in any case.
from compose.
Have you tested the new change on your local though? Because I tested and all was good. Feels like we're now arguing over theory
About the empty string, I was referencing this line
compose/layouts/partials/search.html
Line 5 in 00dd325
(dict "section" "") }}
👆🏼 part ensures that the right context is parsed if you have other = "search in"
or other = "search in {{ .section }}"
.
from compose.
Related Issues (20)
- Load icons as sprites via JS
- Modularize search
- [FEATURE] Icons in Nav bar links
- support algolia search
- Translations from i18n/*.toml aren't respected in variables.js HOT 11
- [FEATURE] Global Search Option HOT 4
- [BUG] Search box is present even when search is disabled
- [BUG] Enter to redirect to search results doesn't work in Firefox HOT 2
- [FEATURE] - Add Latest Mermaid.js Release HOT 1
- [FEATURE] Google Analytics template included in partial/head.html HOT 3
- [FEATURE] - Light YouTube Embedded HOT 3
- [FEATURE] - Add a Tabbed Group Shortcut HOT 1
- [FEATURE] Add Tina CMS config HOT 1
- [BUG] There are many HTML validation errors
- Idea: After the list of suggestions shows up, allow the user to select an entry with Arrow Up/Down keys and press enter to go to that page HOT 5
- [FEATURE] Gallery short-cut with links
- [BUG] template for shortcode "block" not found HOT 3
- [BUG] blogDir param not working
- [BUG]
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 compose.