Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hifis.net
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HIFIS
Overall
hifis.net
Commits
c24864ce
Commit
c24864ce
authored
3 years ago
by
Uwe Jandt (DESY, HIFIS)
Browse files
Options
Downloads
Patches
Plain Diff
stole baseurl treatment from frontpage.html
parent
73c3cd5c
No related branches found
Branches containing commit
No related tags found
1 merge request
!308
Fix bug in paths replacement for search js
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
search.json
+7
-2
7 additions, 2 deletions
search.json
search.md
+8
-2
8 additions, 2 deletions
search.md
with
15 additions
and
4 deletions
search.json
+
7
−
2
View file @
c24864ce
---
---
{
%
if
site.baseurl
!=
'/'
%
}
{
%
assign
base_url
=
site.baseurl
|
append:
'/'
%
}
{
%
else
%
}
{
%
assign
base_url
=
site.baseurl
%
}
{
%
endif
%
}
[
{
%
for
post
in
site.posts
%
}
{
"title"
:
"{{ post.title | escape }}"
,
"url"
:
"{{
site.
baseurl }}{{ post.url }}"
,
"url"
:
"{{ baseurl }}{{ post.url }}"
,
"category"
:
"{{ post.category }}"
,
"tags"
:
"{{ post.tags | join: ', ' }}"
,
"date"
:
"{{ post.date }}"
,
...
...
@@ -20,7 +25,7 @@
"title"
:
"{{ page.title | escape }}"
,
"category"
:
"{{ page.category }}"
,
"tags"
:
"{{ page.tags | join: ', ' }}"
,
"url"
:
"{{
site.
baseurl }}{{ page.url }}"
,
"url"
:
"{{ baseurl }}{{ page.url }}"
,
"date"
:
"{{ page.date }}"
,
"content"
:
"{{ page.content | strip_html | strip_newlines | remove_chars | escape }}"
{
%
endif
%
}
...
...
This diff is collapsed.
Click to expand it.
search.md
+
8
−
2
View file @
c24864ce
...
...
@@ -6,6 +6,12 @@ excerpt:
Search in hifis.net
---
{% if site.baseurl != '/' %}
{% assign base_url = site.baseurl | append: '/' %}
{% else %}
{% assign base_url = site.baseurl %}
{% endif %}
# Search in hifis.net
{:.text-success}
...
...
@@ -18,13 +24,13 @@ Maximum number of results shown is 20.
<ul
id=
"results-container"
></ul>
</div>
<script
src=
"{{
site.
baseurl }}/js/simple-jekyll-search.js"
></script>
<script
src=
"{{ baseurl }}/js/simple-jekyll-search.js"
></script>
<script>
window.simpleJekyllSearch = new SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '{{
site.
baseurl }}/search.json',
json: '{{ baseurl }}/search.json',
searchResultTemplate: '
<
li
><
a
href
=
"
{url}?query={query}
"
title
=
"
{desc}
"
>
{title}
<
/a></
li
>
',
noResultsText: 'No results found',
limit: 20,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment