Skip to content

Commit

Permalink
traduz texto do ingles para o portugues (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
allythy authored Jul 3, 2024
1 parent bab318b commit 677b405
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions _includes/pagination.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a class="ml-1 mr-1" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
<a class="ml-1 mr-1" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Anterior</a>
{% else %}
<span>&laquo; Prev</span>
<span>&laquo; Anterior</span>
{% endif %}

{% for page in (1..paginator.total_pages) %}
Expand All @@ -17,9 +17,9 @@
{% endfor %}

{% if paginator.next_page %}
<a class="ml-1 mr-1" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a>
<a class="ml-1 mr-1" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Próxima &raquo;</a>
{% else %}
<span>Next &raquo;</span>
<span>Próxima &raquo;</span>
{% endif %}
</div>
{% endif %}
2 changes: 1 addition & 1 deletion _includes/search-lunr.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


<form class="bd-search" onSubmit="return lunr_search(document.getElementById('lunrsearch').value);">
<input type="text" class="form-control text-small launch-modal-search" id="lunrsearch" name="q" maxlength="255" value="" placeholder="Type and enter..."/>
<input type="text" class="form-control text-small launch-modal-search" id="lunrsearch" name="q" maxlength="255" value="" />
</form>

<div id="lunrsearchresults">
Expand Down
4 changes: 2 additions & 2 deletions assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ iframe {
padding: 0;
height: 350px;
border-radius: 0;
background-image: url(../images/jumbotron.jpg);
background-image: url(../images/2023/meetup-16.jpg);
background-size: cover;
}

Expand All @@ -792,7 +792,7 @@ iframe {
margin-top: 3rem;
padding: 0;
border-radius: 0;
background-image: url(../images/jumbotron.jpg);
background-image: url(../images/2023/meetup-16.jpg);
background-size: cover;
}

Expand Down
Binary file removed assets/images/mediumish-jekyll-template.png
Binary file not shown.
6 changes: 3 additions & 3 deletions assets/js/lunrsearchengine.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ function lunr_search(term) {
$('#lunrsearchresults').show( 400 );
$( "body" ).addClass( "modal-open" );

document.getElementById('lunrsearchresults').innerHTML = '<div id="resultsmodal" class="modal fade show d-block" tabindex="-1" role="dialog" aria-labelledby="resultsmodal"> <div class="modal-dialog shadow-lg" role="document"> <div class="modal-content"> <div class="modal-header" id="modtit"> <button type="button" class="close" id="btnx" data-dismiss="modal" aria-label="Close"> &times; </button> </div> <div class="modal-body"> <ul class="mb-0"> </ul> </div> <div class="modal-footer"><button id="btnx" type="button" class="btn btn-danger btn-sm" data-dismiss="modal">Close</button></div></div> </div></div>';
document.getElementById('lunrsearchresults').innerHTML = '<div id="resultsmodal" class="modal fade show d-block" tabindex="-1" role="dialog" aria-labelledby="resultsmodal"> <div class="modal-dialog shadow-lg" role="document"> <div class="modal-content"> <div class="modal-header" id="modtit"> <button type="button" class="close" id="btnx" data-dismiss="modal" aria-label="Close"> &times; </button> </div> <div class="modal-body"> <ul class="mb-0"> </ul> </div> <div class="modal-footer"><button id="btnx" type="button" class="btn btn-danger btn-sm" data-dismiss="modal">Fechar</button></div></div> </div></div>';
if(term) {
document.getElementById('modtit').innerHTML = "<h5 class='modal-title'>Search results for '" + term + "'</h5>" + document.getElementById('modtit').innerHTML;
document.getElementById('modtit').innerHTML = "<h5 class='modal-title'>Resultados da busca por '" + term + "'</h5>" + document.getElementById('modtit').innerHTML;
//put results on the screen.
var results = idx.search(term);
if(results.length>0){
Expand All @@ -75,7 +75,7 @@ function lunr_search(term) {
document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML + "<li class='lunrsearchresult'><a href='" + url + "'><span class='title'>" + title + "</span><br /><small><span class='body'>"+ body +"</span><br /><span class='url'>"+ url +"</span></small></a></li>";
}
} else {
document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = "<li class='lunrsearchresult'>Sorry, no results found. Close & try a different search!</li>";
document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = "<li class='lunrsearchresult'>Desculpe, nenhum resultado encontrado. Feche e tente uma pesquisa diferente!</li>";
}
}
return false;
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
================================================== -->
<section class="featured-posts">
<div class="section-title">
<h2><span>Featured</span></h2>
<h2><span>Destaque</span></h2>
</div>
<div class="row">

Expand All @@ -34,7 +34,7 @@ <h2><span>Featured</span></h2>

<div class="section-title">

<h2><span>All Stories</span></h2>
<h2><span>Todas postagens</span></h2>

</div>

Expand Down

0 comments on commit 677b405

Please sign in to comment.