Skip to content
Permalink
Browse files

edit locales and break search

  • Loading branch information
zutrinken committed Jan 11, 2020
1 parent db9cd8a commit db2c09f321ae3f809c089411fb05b694fba2449f
Showing with 2,139 additions and 13 deletions.
  1. +2,121 −1 assets/css/style.css
  2. +1 −1 assets/js/script.js
  3. +1 −1 author.hbs
  4. +2 −2 default.hbs
  5. +5 −2 locales/de.json
  6. +5 −2 locales/en.json
  7. +1 −1 partials/loop.hbs
  8. +3 −3 src/js/script.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -6,7 +6,7 @@
<div class="inner">
<div class="archive archive-author box archive-box">
<span class="archive-info">
<span class="archive-type">{{t "Creator"}}</span>
<span class="archive-type">{{t "Author"}}</span>
<span class="archive-count">{{plural ../pagination.total empty=(t "No Posts") singular=(t "% Post") plural=(t "% Posts")}}</span>
</span>
<figure class="archive-avatar avatar">
@@ -24,8 +24,8 @@
{{{body}}}
</div>

<div id="results" class="container" style="display:none;">
<div class="content" id="#search-results"></div>
<div id="search" class="container" style="display:none;">
<div class="content" id="results"></div>
</div>

<footer class="page-footer">
@@ -14,13 +14,16 @@
"Theme": "Theme",
"Website": "Website",
"Your email address": "Deine Email-Addresse",
"by": "von",
"By": "Von",
"on ": "in ",
"No Posts": "Keine Beiträge",
"% Post": "% Beitrag",
"% Posts": "% Beiträge",
"This post was a collaboration between:": "Dieser Beitrag war eine Zusammenarbeit von:",
"youremail@example.com": "deine@emailadresse.de",
"1 min read": "Lesezeit: 1 Min.",
"% min read": "Lesezeit: % Min."
"% min read": "Lesezeit: % Min.",
"Author": "Autor",
"Topic": "Thema",
"Search": "Suche"
}
@@ -14,13 +14,16 @@
"Theme": "Theme",
"Website": "Website",
"Your email address": "Your email address",
"by": "by",
"By": "By",
"on ": "on ",
"No Posts": "No Posts",
"% Post": "% Post",
"% Posts": "% Posts",
"This post was a collaboration between:": "This post was a collaboration between:",
"youremail@example.com": "youremail@example.com",
"1 min read": "1 min read",
"% min read": "% min read"
"% min read": "% min read",
"Author": "Author",
"Topic": "Topic",
"Search": "Search"
}
@@ -9,7 +9,7 @@
<div class="box post-box">
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
<span class="post-meta">
{{t "Posted by"}}
{{t "By"}}
{{authors separator=", "}}
{{#primary_tag}}{{t "in"}} <a class="post-meta-tag" href="{{url}}">{{name}}</a>{{/primary_tag}}
{{t "on"}}
@@ -50,17 +50,17 @@ jQuery(function($) {
'display': 'block'
});
$("#search-field").ghostHunter({
results: "#search-results",
results: "#results",
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>',
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>',
displaySearchInfo: true,
includebodysearch: true,
onComplete: function(results) {
if ($("#search-field").prop('value')) {
$('#results').show();
$('#search').show();
$('#default').hide();
} else {
$('#results').hide();
$('#search').hide();
$('#default').show();
}
$('#search-term').text($("#search-field").prop('value'));

0 comments on commit db2c09f

Please sign in to comment.
You can’t perform that action at this time.