Skip to content

Commit db2c09f

Browse files
author
zutrinken
committed
edit locales and break search
1 parent db9cd8a commit db2c09f

File tree

8 files changed

+2139
-13
lines changed

8 files changed

+2139
-13
lines changed

assets/css/style.css

Lines changed: 2121 additions & 1 deletion
Large diffs are not rendered by default.

assets/js/script.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

author.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="inner">
77
<div class="archive archive-author box archive-box">
88
<span class="archive-info">
9-
<span class="archive-type">{{t "Creator"}}</span>
9+
<span class="archive-type">{{t "Author"}}</span>
1010
<span class="archive-count">{{plural ../pagination.total empty=(t "No Posts") singular=(t "% Post") plural=(t "% Posts")}}</span>
1111
</span>
1212
<figure class="archive-avatar avatar">

default.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
{{{body}}}
2525
</div>
2626

27-
<div id="results" class="container" style="display:none;">
28-
<div class="content" id="#search-results"></div>
27+
<div id="search" class="container" style="display:none;">
28+
<div class="content" id="results"></div>
2929
</div>
3030

3131
<footer class="page-footer">

locales/de.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414
"Theme": "Theme",
1515
"Website": "Website",
1616
"Your email address": "Deine Email-Addresse",
17-
"by": "von",
17+
"By": "Von",
1818
"on ": "in ",
1919
"No Posts": "Keine Beiträge",
2020
"% Post": "% Beitrag",
2121
"% Posts": "% Beiträge",
2222
"This post was a collaboration between:": "Dieser Beitrag war eine Zusammenarbeit von:",
2323
2424
"1 min read": "Lesezeit: 1 Min.",
25-
"% min read": "Lesezeit: % Min."
25+
"% min read": "Lesezeit: % Min.",
26+
"Author": "Autor",
27+
"Topic": "Thema",
28+
"Search": "Suche"
2629
}

locales/en.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414
"Theme": "Theme",
1515
"Website": "Website",
1616
"Your email address": "Your email address",
17-
"by": "by",
17+
"By": "By",
1818
"on ": "on ",
1919
"No Posts": "No Posts",
2020
"% Post": "% Post",
2121
"% Posts": "% Posts",
2222
"This post was a collaboration between:": "This post was a collaboration between:",
2323
2424
"1 min read": "1 min read",
25-
"% min read": "% min read"
25+
"% min read": "% min read",
26+
"Author": "Author",
27+
"Topic": "Topic",
28+
"Search": "Search"
2629
}

partials/loop.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="box post-box">
1010
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
1111
<span class="post-meta">
12-
{{t "Posted by"}}
12+
{{t "By"}}
1313
{{authors separator=", "}}
1414
{{#primary_tag}}{{t "in"}} <a class="post-meta-tag" href="{{url}}">{{name}}</a>{{/primary_tag}}
1515
{{t "on"}}

src/js/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ jQuery(function($) {
5050
'display': 'block'
5151
});
5252
$("#search-field").ghostHunter({
53-
results: "#search-results",
53+
results: "#results",
5454
result_template: '<article class="post"><div class="inner"><div class="box post-box"><h2 class="post-title"><a href="{{link}}">{{title}}</a></h2><span class="post-meta">On <span class="post-date">{{pubDate}}</span></span></div></div></article>',
5555
info_template: '<div class="blog-header"><div class="inner"><div class="archive archive-search box archive-box"><span class="archive-info"><span class="archive-type">Search</span><span class="archive-count">{{amount}} Posts</span></span><h1 class="archive-title">Results for "<span id="search-term"></span>"</h1></div></div></div>',
5656
displaySearchInfo: true,
5757
includebodysearch: true,
5858
onComplete: function(results) {
5959
if ($("#search-field").prop('value')) {
60-
$('#results').show();
60+
$('#search').show();
6161
$('#default').hide();
6262
} else {
63-
$('#results').hide();
63+
$('#search').hide();
6464
$('#default').show();
6565
}
6666
$('#search-term').text($("#search-field").prop('value'));

0 commit comments

Comments
 (0)