-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search #34
Commits on Sep 19, 2017
-
Update search index generator template
The Go template that produces the search index has been overhauled in order to handle the special case of "absract-only" pages. These are still classified as "Essay" type but they have no content, only `abstract` frontmatter data. The desired behavior for search is that on these pages, the user should be taken to the section-head page that this abstract appears in if they choose a result of this type. In Go, the different cases (normal vs abstract-only pages) are handled via conditional assignment of block-scoped variables in the local .Scratch (as opposed to the page-level $.Scratch). The additional logic comes into play if the length of a given page's .Content is 0 (i.e. empty). In that case, the abstract content is used instead, and instead of using the normal .RelPermalink for the page, the URL data is set as the relref of the page's parent section (figured out with a crude hack for now - taking the name of the $page.Section value and adding "/index.md" on the end).
Configuration menu - View commit details
-
Copy full SHA for dd904e1 - Browse repository at this point
Copy the full SHA dd904e1View commit details -
Use .Site.RegularPages instead of .Site.Pages for index
This removes some of Hugo's auto-generated pages for things like "Categories", "Tags", etc. which are not being used in this project.
Configuration menu - View commit details
-
Copy full SHA for e387426 - Browse repository at this point
Copy the full SHA e387426View commit details
Commits on Sep 20, 2017
-
This needs a pass for QA as well as UI, but the basic functionality is now working. Previous projects set this feature as something available on all pages; in this book the user needs to navigate to the /search page to access this screen. This simplifies things both in terms of CSS layout, but also performance issues (the search index is 1MB, and now it doesn't need to be made available on all pages, just the search-specific page). A "search.md" page has been added to the contents folder. Any content here will not show up, but we need to tell Hugo to build a page using the search layout at this URL. The global `baseof.html` template has been modified so that the search link now appears in all of them (not the search button and results partial from before). A new search/single.html layout has been added to the base theme which handles this content instead. Finally, the main UI.js file has been re-worked a bit to accommodate the new behavior.
Configuration menu - View commit details
-
Copy full SHA for bdbe007 - Browse repository at this point
Copy the full SHA bdbe007View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87b7b23 - Browse repository at this point
Copy the full SHA 87b7b23View commit details -
Configuration menu - View commit details
-
Copy full SHA for af940a7 - Browse repository at this point
Copy the full SHA af940a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d15e6d - Browse repository at this point
Copy the full SHA 1d15e6dView commit details
Commits on Sep 21, 2017
-
Build out search page as Vue.js component
Rebuilds the search feature as a stand-alone Vue.js component for improved UX. The new version of this feature supports the following: * "Loading..." message until the search data is loaded * Debounced input for the search query * Getting user input, displaying results, etc. is much clearer in the code thanks to Vue's api (as opposed to doing everything manually with jQuery).
Configuration menu - View commit details
-
Copy full SHA for 77649a6 - Browse repository at this point
Copy the full SHA 77649a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed8cd2b - Browse repository at this point
Copy the full SHA ed8cd2bView commit details
Commits on Sep 25, 2017
-
Take page out of linear reading order
Adding the `online: false` parameter removes the page from the linear reading order of the publication. This commit also hides the previous and next arrows in the upper navigation bar, to make the search page more of a standalone.
Configuration menu - View commit details
-
Copy full SHA for 56a32c2 - Browse repository at this point
Copy the full SHA 56a32c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6195c5e - Browse repository at this point
Copy the full SHA 6195c5eView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.