-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from GDSC-DEU/3-카테고리-기능-및-검색-기능
카테고리 기능 및 검색 기능
- Loading branch information
Showing
40 changed files
with
746 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,6 +117,7 @@ | |
chore: | ||
- 3기 | ||
status: active | ||
github: leejyohan | ||
email: [email protected] | ||
|
||
- name: 최범준 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
- name: Notice | ||
link: /notice/ | ||
- name: About Us | ||
link: /about-us/ | ||
- name: Member | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: default | ||
title: Member | ||
permalink: /notice/ | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
layout: default | ||
title: Search | ||
permalink: /search | ||
--- | ||
|
||
<head> | ||
<script src="{{ site.url }}/assets/js/simple-jekyll-search.js" type="text/javascript"></script> | ||
<script> | ||
function getQueryVariable(variable) { | ||
var query = window.location.search.substring(1); | ||
var vars = query.split('&'); | ||
for (var i = 0; i < vars.length; i++) { | ||
var pair = vars[i].split('='); | ||
if (decodeURIComponent(pair[0]) == variable) { | ||
return decodeURIComponent(pair[1]); | ||
} | ||
} | ||
} | ||
// Set the value of the search input to the query string | ||
document.getElementById('search-input').value = getQueryVariable('q'); | ||
|
||
// Fetch the JSON data and create the search | ||
var searchJson = axios.get('{{ site.baseurl }}/search.json') | ||
.then(function (response) { | ||
console.log(response.data); | ||
console.log('Search data loaded'); | ||
var sjs = SimpleJekyllSearch({ | ||
searchInput: document.getElementById('search-input'), | ||
resultsContainer: document.getElementById('results-container'), | ||
json: response.data, | ||
noResultsText: '검색결과가 존재하지 않습니다.', | ||
searchResultTemplate: '<li><a href="{url}">{title}</a></li>', | ||
limit: 1000, | ||
fuzzy: true | ||
}); | ||
sjs.search(getQueryVariable('q')); | ||
}) | ||
.catch(function (error) { | ||
console.log(error); | ||
}); | ||
|
||
</script> | ||
</head> | ||
|
||
|
||
<h1>🔍 Search</h1> | ||
<ul id="results-container"></ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} | ||
{ | ||
"name": "", | ||
"short_name": "", | ||
"icons": [ | ||
{ | ||
"src": "/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone" | ||
} |
Oops, something went wrong.