Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitize, optimize, and a few bugfixes #19

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
max-width: 786px;
text-align: center;
}
h1 {
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Jekyll Theme - Mundana by WowThemes.net

[Live Demo](https://wowthemesnet.github.io/mundana-theme-jekyll/) &nbsp; | &nbsp;
[Download](https://github.com/wowthemesnet/mundana-theme-jekyll/archive/master.zip) &nbsp; | &nbsp;
[Buy me a coffe](https://www.wowthemes.net/donate/) &nbsp; | &nbsp; [Documentation](https://bootstrapstarter.com/bootstrap-templates/mundana-theme-jekyll/) &nbsp; | &nbsp;
[WordPress version](https://www.wowthemes.net/themes/mundana-wordpress/)
[Live Demo](https://wowthemesnet.github.io/mundana-theme-jekyll/) &nbsp; | &nbsp;
[Download](https://github.com/wowthemesnet/mundana-theme-jekyll/archive/master.zip) &nbsp; | &nbsp;
[Buy me a coffe](https://www.wowthemes.net/donate/) &nbsp; | &nbsp; [Documentation](https://bootstrapstarter.com/bootstrap-templates/mundana-theme-jekyll/) &nbsp; | &nbsp;
[WordPress version](https://www.wowthemes.net/themes/mundana-wordpress/)

![mundana jekyll theme screenshot](assets/images/screenshot.jpg)

Expand All @@ -19,7 +19,7 @@

`git clone https://github.com/YOUR-USERNAME/mundana-theme-jekyll.git`

3. **Create a branch**:
3. **Create a branch**:

`git checkout -b <my-new-feature-or-fix>`

Expand All @@ -42,7 +42,7 @@ That's it! Soon I'll be merging your changes into the master branch of this proj

Copyright (C) 2019 WowThemes.net.

Theme designed and developed by [Sal](https://www.wowthemes.net), *free* under MIT license.
Theme designed and developed by [Sal](https://www.wowthemes.net), *free* under MIT license.

<a href="https://www.wowthemes.net/donate/" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>

Expand Down
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: 'Mundana'
description: 'Mundana is a free Jekyll theme for awesome people like you, Medium like.'
logo: 'assets/images/logo.png'
favicon: 'assets/images/favicon.ico'
host: 'https://wowthemesnet.github.io'
baseurl: '/mundana-theme-jekyll'
disqus: 'demowebsite'
email: '[email protected]'
Expand Down Expand Up @@ -62,4 +63,4 @@ paginate: 10


# Exclude metadata and development time dependencies (like Grunt plugins)
exclude: [README.markdown, package.json, grunt.js, Gruntfile.js, Gruntfile.coffee, node_modules]
exclude: [Gemfile, Gemfile.lock, docker-compose.yml, README.md, package.json, grunt.js, Gruntfile.js, Gruntfile.coffee, node_modules]
2 changes: 1 addition & 1 deletion _includes/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div id="disqus_thread">
</div>
<script type="text/javascript">
var disqus_shortname = '{{site.disqus}}';
var disqus_shortname = '{{site.disqus}}';
var disqus_developer = 0;
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
Expand Down
8 changes: 4 additions & 4 deletions _includes/menu-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<a class="nav-link" href="{{site.baseurl}}/index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{site.baseurl}}/authors-list.html">Authors</a>
<a class="nav-link" href="{{site.baseurl}}/authors/">Authors</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{site.baseurl}}/contact.html">Contact</a>
</li>
<li class="nav-item">
<a target="_blank" class="nav-link" href="https://www.wowthemes.net/themes/mundana-wordpress/">WP</a>
<a target="_blank" class="nav-link" rel="noopener" href="https://www.wowthemes.net/themes/mundana-wordpress/">WP</a>
</li>
<li class="nav-item">
<a target="_blank" class="nav-link" href="https://www.wowthemes.net/themes/mundana-ghost/">Ghost</a>
<a target="_blank" class="nav-link" rel="noopener" href="https://www.wowthemes.net/themes/mundana-ghost/">Ghost</a>
</li>
<li class="nav-item">
<a target="_blank" class="nav-link" href="https://www.wowthemes.net/donate/">Buy me a coffee <i class="fa fa-coffee text-danger"></i></a>
<a target="_blank" class="nav-link" rel="noopener" href="https://www.wowthemes.net/donate/">Buy me a coffee <i class="fa fa-coffee text-danger"></i></a>
</li>
1 change: 0 additions & 1 deletion _includes/meta-read-time.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
{{ words | divided_by:180 }} mins read
{% endif %}
</span>

43 changes: 23 additions & 20 deletions _includes/search-lunr.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script src="{{site.baseurl}}/assets/js/lunr.js"></script>
<script src="{{site.baseurl}}/assets/js/lunr.min.js"></script>

<script>
$(function() {
Expand All @@ -7,23 +7,26 @@
$( "body" ).removeClass( "modal-open" );
});
});

{% assign counter = 0 %}
var documents = [{% for page in site.pages %}{% if page.url contains '.xml' or page.url contains 'assets' %}{% else %}{
"id": {{ counter }},
"url": "{{ site.url }}{{site.baseurl}}{{ page.url }}",
"title": "{{ page.title }}",
"body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
}, {% endif %}{% endfor %}{% for page in site.without-plugin %}{
"id": {{ counter }},
"url": "{{ site.url }}{{site.baseurl}}{{ page.url }}",
"title": "{{ page.title }}",
"body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
}, {% endfor %}{% for page in site.posts %}{
"id": {{ counter }},
"url": "{{ site.url }}{{site.baseurl}}{{ page.url }}",
"title": "{{ page.title }}",
"body": "{{ page.date | date: "%Y/%m/%d" }} - {{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
var documents = [
{% for page in site.pages %}{% if page.url contains '.xml' or page.url contains 'assets' %}{% else %}{
"id": {{ counter }},
"url": "{{ site.url }}{{site.baseurl}}{{ page.url }}",
"title": "{{ page.title }}",
"body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
}, {% endif %}{% endfor %}
{% for page in site.without-plugin %}{
"id": {{ counter }},
"url": "{{ site.url }}{{site.baseurl}}{{ page.url }}",
"title": "{{ page.title }}",
"body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
}, {% endfor %}
{% for page in site.posts %}{
"id": {{ counter }},
"url": "{{ site.url }}{{site.baseurl}}{{ page.url }}",
"title": "{{ page.title }}",
"body": "{{ page.date | date: "%Y/%m/%d" }} - {{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
}{% if forloop.last %}{% else %}, {% endif %}{% endfor %}];

var idx = lunr(function () {
Expand All @@ -37,11 +40,11 @@
});



function lunr_search(term) {
$('#lunrsearchresults').show( 1000 );
$( "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-secondary btn-sm" data-dismiss="modal">Close</button></div></div> </div></div>';
if(term) {
document.getElementById('modtit').innerHTML = "<h5 class='modal-title'>Search results for '" + term + "'</h5>" + document.getElementById('modtit').innerHTML;
Expand Down Expand Up @@ -77,5 +80,5 @@


<form class="bd-search hidden-sm-down" onSubmit="return lunr_search(document.getElementById('lunrsearch').value);">
<input type="text" class="form-control text-small" id="lunrsearch" name="q" value="" placeholder="Type keyword and enter...">
<input type="text" class="form-control text-small" id="lunrsearch" name="q" value="" placeholder="Type keyword and enter...">
</form>
10 changes: 5 additions & 5 deletions _includes/sidebar-featured.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="sticky-top sticky-top-offset">
<h4 class="font-weight-bold spanborder"><span>Featured</span></h4>
<h4 class="font-weight-bold spanborder"><span>Featured</span></h4>
<ol class="list-featured">
{% for post in site.tags.featured %}
{% for post in site.tags.featured %}
<li class="mb-4">
<span>
<h6 class="font-weight-bold">
Expand All @@ -15,7 +15,7 @@ <h6 class="font-weight-bold">
</span>
</span>
</span>
</li>
{% endfor %}
</li>
{% endfor %}
</ol>
</div>
</div>
6 changes: 3 additions & 3 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h5 class="mb-3">Mundana Jekyll Theme</h5>

<p>Hi! The website you are previewing is a demonstration for Mundana Jekyll theme, hosted on Github, made by <a href="https://www.wowthemes.net/donate/">Sal</a>.</p>
<p>Hi! The website you are previewing is a demonstration for Mundana Jekyll theme, hosted on Github, made by <a rel="noopener" href="https://www.wowthemes.net/donate/">Sal</a>.</p>

<a target="_blank" href="https://www.wowthemes.net/mundana-jekyll-theme/" class="btn btn-warning d-block mb-2"><i class="fa fa-file"></i> Documentation</a>
<a target="_blank" rel="noopener" href="https://www.wowthemes.net/mundana-jekyll-theme/" class="btn btn-warning d-block mb-2"><i class="fa fa-file"></i> Documentation</a>

<a target="_blank" class="btn btn-danger d-block" href="https://www.wowthemes.net/donate/"><i class="fa fa-coffee"></i> Buy me a coffee</a>
<a target="_blank" rel="noopener" class="btn btn-danger d-block" href="https://www.wowthemes.net/donate/"><i class="fa fa-coffee"></i> Buy me a coffee</a>
2 changes: 1 addition & 1 deletion _includes/tracking-footer.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- All this area goes before </body> closing tag -->
<!-- All this area goes before </body> closing tag -->
2 changes: 1 addition & 1 deletion _includes/tracking-header.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- This goes before </head> closing tag, Google Analytics can be placed here -->
<!-- This goes before </head> closing tag, Google Analytics can be placed here -->
22 changes: 9 additions & 13 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@
<link rel="stylesheet" href="{{site.baseurl}}/assets/css/theme.css">

<!-- Jquery on header to make sure everything works, the rest of the scripts in footer for fast loading -->
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>

{% include tracking-header.html %}


</head>

<body class="{% if page.url == "/" %} homefirstpage {% endif %}">
Expand All @@ -44,7 +42,7 @@
</button>
<div class="navbar-collapse collapse" id="navbarColor02" style="">
<ul class="navbar-nav mr-auto d-flex align-items-center">
{% include menu-header.html %}
{% include menu-header.html %}
</ul>
<ul class="navbar-nav ml-auto d-flex align-items-center">
{% include search-lunr.html %}
Expand All @@ -63,29 +61,27 @@
{{ content }}
</main>


<!-- Scripts: popper, bootstrap, theme, lunr -->
<!-- Scripts: popper, bootstrap, theme -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>

<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

<script src="{{site.baseurl}}/assets/js/theme.js"></script>


<!-- Footer -->
<footer class="bg-white border-top p-3 text-muted small">
<div class="container">
<div class="row align-items-center justify-content-between">
<div>
<span class="navbar-brand mr-2 mb-0"><strong>Mundana</strong></span>
<span>Copyright © <script>document.write(new Date().getFullYear())</script>.</span>
<span>Copyright © {{ "now" | date: "%Y" }}.</span>

<!-- Github Repo Star Btn-->
<a class="text-dark ml-1" target="_blank" href="https://github.com/wowthemesnet/mundana-theme-jekyll"><i class="fab fa-github"></i> Fork on Github</a>
<a class="text-dark ml-1" target="_blank" rel="noopener" href="https://github.com/wowthemesnet/mundana-theme-jekyll"><i class="fab fa-github"></i> Fork on Github</a>

</div>
<div>
Made with <a target="_blank" class="text-dark font-weight-bold" href="https://www.wowthemes.net/mundana-jekyll-theme/"> Mundana Jekyll Theme </a> by <a class="text-dark" target="_blank" href="https://www.wowthemes.net">WowThemes</a>.
Made with <a target="_blank" class="text-dark font-weight-bold" rel="noopener" href="https://www.wowthemes.net/mundana-jekyll-theme/"> Mundana Jekyll Theme </a> by <a class="text-dark" target="_blank" rel="noopener" href="https://www.wowthemes.net">WowThemes</a>.
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions _layouts/page-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<h3 class="font-weight-bold spanborder"><span>{{page.title}}</span></h3>
<div class="row">
<div class="col-md-8">
{% if page.image %}
<img class="card-img-top mb-5 shadow-lg" src="{% if page.image contains "://" %}{{ page.image }}{% else %}{{ page.image | absolute_url }}{% endif %}" alt="{{ page.title }}">
{% endif %}
{% if page.image %}
<img class="card-img-top mb-5 shadow-lg" src="{% if page.image contains "://" %}{{ page.image }}{% else %}{{ page.image | absolute_url }}{% endif %}" alt="{{ page.title }}">
{% endif %}
<div class="page-content">
{{ content }}
<!-- Comments -->
Expand All @@ -19,5 +19,5 @@ <h3 class="font-weight-bold spanborder"><span>{{page.title}}</span></h3>
<div class="col-md-4">
{% include sidebar.html %}
</div>
</div>
</div>
</div>
Loading