Skip to content
Merged
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
27 changes: 20 additions & 7 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
<h3>{{ page.title }}</h3>
<time
>{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if
page.meta %} • {{ page.meta }}{% endif %}</time
>

{{ content }}
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<nav>
<a href="/">Home</a>
<a href="/allPosts/">Blogs</a>
</nav>
<h1>{{ page.title }}</h1>
<section class="date">
{{ page.date | date: "%b %-d, %Y" }}
</section>
<section class="body">
{{ content }}
</section>
</body>
</html>
2 changes: 1 addition & 1 deletion _layouts/sidbar_removed.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<body class="is-preload">

<!-- Header -->
<div id="wrapper">
<div id="wrapper" style="padding-right: inherit">
{{ content }}
{% include footer.html %}
</div>
Expand Down
8 changes: 7 additions & 1 deletion _sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,8 @@
transition: 0.5s;
border-radius: 10px;
border-radius: 10px 10px 10px 10px;
width: 130%;
width: auto;
margin-bottom: 8px;
}

.cards:hover {
Expand Down Expand Up @@ -2174,3 +2175,8 @@
display: none;
}
}

/* All blogs page view */
.all-post-header{
text-align: center;
}
32 changes: 2 additions & 30 deletions allPosts.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
<button class="btn active" onclick="filterSelection('all')">Show all</button>
</div>

<h3 style="padding-left: 20px">All Posts</h3>
<h3 style="padding-left: 20px; color: #5ad3fe">All Posts</h3>
<ul style="list-style-type: none">
{% for post in site.posts %}
<div class="cards {{ post.filter }}">
<a href="#{{ post.title }}" class="title" onclick="openModal('{{ post.title }}')">{{post.title}}</a>
<a href="{{ post.url }}" class="title">{{ post.title }}</a>
<div class="image_box">
<img src="{{base.url}}/images/posts/{{post.img}}" class="img_all">
<p style="margin-bottom: auto; padding: inherit">{{ post.excerpt }}</p>
Expand Down Expand Up @@ -77,32 +77,4 @@ <h3 style="padding-left: 20px">All Posts</h3>
});
}

function closeModal(title){
var modal = document.getElementById(title);
modal.className = "Modal is-hidden is-visuallyHidden";
document.getElementById("main").classList.remove("is-blurred");
//document.getElementById("header").classList.add("is-blurred");
}

function openModal(title) {
var modal = document.getElementById(title);
var container = document.getElementById("main");
modal.className = "Modal is-visuallyHidden";
setTimeout(function() {
document.getElementById("main").classList.add("is-blurred");
//document.getElementById("header").classList.add("is-blurred");
modal.className = "Modal";
}, 50);
}

window.onclick = function(event) {
console.log(event.target.className);
console.log(event.target.classList);
if (event.target.className == "Modal") {
event.target.className = "Modal is-hidden is-visuallyHidden";
document.getElementById("main").classList.remove("is-blurred");
//document.getElementById("header").classList.remove("is-blurred");
}
}

</script>
6 changes: 5 additions & 1 deletion assets/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/main.css.map

Large diffs are not rendered by default.

25 changes: 0 additions & 25 deletions payment.html

This file was deleted.

139 changes: 137 additions & 2 deletions tags

Large diffs are not rendered by default.