diff --git a/_layouts/post.html b/_layouts/post.html index a556be04..7f355fbd 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -6,7 +6,7 @@ {% include navbar.html %}
- {{ page.title}} + {{ page.title }}
{% if page.author %} diff --git a/_layouts/project.html b/_layouts/project.html index 11b37900..3c780718 100644 --- a/_layouts/project.html +++ b/_layouts/project.html @@ -145,13 +145,22 @@

Education Activity Duration:

-
+ + +
+

Tags: 

+
+ {% for tag in page.tags %} + {{ tag | url_decode }} + {% endfor %} +
{% if page.video_link %} @@ -225,10 +234,23 @@

Education Activity Duration:

let decodedDescription = decodeURIComponent(encodedDescription); //console.log(decodedDescription) + //console.log('lets decode') // Insert the decoded string into the HTML document.getElementById('project-description').innerHTML = decodedDescription; + // Decode the fields + let decodedTitle = decodeURIComponent("{{ page.title }}"); + let decodedSubtitle = decodeURIComponent("{{ page.subtitle }}"); + let decodedAuthor = decodeURIComponent("{{ page.author }}"); + + //console.log('lets decode title') + //console.log(decodedTitle) + // Set the decoded strings into the HTML + document.querySelector('.project-title h1').textContent = decodedTitle; + document.querySelector('.project-title h3').textContent = decodedSubtitle; + document.querySelector('.project-title p').textContent = decodedAuthor; +