diff --git a/_data/papers.json b/_data/papers.json deleted file mode 100644 index ceef595..0000000 --- a/_data/papers.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "title":"Turrets and deadzones", - "subtitle":"A visual look at a turret's control flow", - "authors":[ - "Evan Pratten" - ], - "date":"2020-08-31", - "url":"/papers/Simple_Path_Planning_of_Turret.pdf" - } -] \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index a2fcd6d..e85e6d0 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -51,6 +51,11 @@ </script> {% endif %} +{% if page.uses contains "pdf" %} +<!-- Inline PDF files --> +<script src="https://unpkg.com/browse/pdfjs-dist@2.4.456/web/pdf_viewer.js"></script> +{% endif %} + {% if page.uses contains "tikz" %} <!-- TikZJax loader --> <script src="https://tikzjax.com/v1/tikzjax.js"></script> diff --git a/_includes/head.html b/_includes/head.html index 1e4eb57..568f334 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -3,7 +3,7 @@ <head> <title>{{page.title}} | {{ site.title }}</title> <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> + <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes" /> <!-- Favicons --> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> @@ -29,6 +29,11 @@ <link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css"> {% endif %} + {% if page.uses contains "pdf" %} + <!-- Inline PDF files --> + <link rel="stylesheet" href="https://unpkg.com/browse/pdfjs-dist@2.4.456/web/pdf_viewer.css"> + {% endif %} + <!-- Site style --> <link rel="stylesheet" href="{{site.baseurl}}/assets/css/color-theme.css"> <!-- <link rel="stylesheet" href="{{site.baseurl}}/assets/css/main.css"> --> diff --git a/_includes/nav.html b/_includes/nav.html index 8985c91..9b7c34f 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -1,7 +1,7 @@ <nav class="navbar navbar-dark sticky-top bg-dark navbar-expand-lg custom-navbar" id="navbar"> <!-- Navbar content --> <div class="container"> - <a class="navbar-brand" href="{{site.baseurl}}/"><img src="{{site.baseurl}}/assets/images/Signature.png"></a> + <a class="navbar-brand" href="{{site.baseurl}}/"><img src="{{site.baseurl}}/assets/images/Signature.png" alt="Evan Pratten"></a> <!-- <span>{{site.title}}</span></a> --> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation"> diff --git a/_papers/Simple-Path-Planning-of-Turret.md b/_papers/Simple-Path-Planning-of-Turret.md new file mode 100644 index 0000000..9769004 --- /dev/null +++ b/_papers/Simple-Path-Planning-of-Turret.md @@ -0,0 +1,7 @@ +--- +layout: pdf_paper +src: https://ewpratten.retrylife.ca/highschool_notes/robotics/papers/Simple_Path_Planning_of_Turret.pdf +authors: + - Evan Pratten +date: "2020-08-31" +--- \ No newline at end of file diff --git a/_papers/Simple_Path_Planning_of_Turret.pdf b/_papers/Simple_Path_Planning_of_Turret.pdf deleted file mode 100755 index ae0b7b3..0000000 Binary files a/_papers/Simple_Path_Planning_of_Turret.pdf and /dev/null differ diff --git a/index.html b/index.html index 72259bf..0ff48f8 100644 --- a/index.html +++ b/index.html @@ -60,7 +60,7 @@ uses: <div class="col-sm-4 project-item"> <div class="card home-project"> {% if project.hero %} - <img src="{{project.hero.img_src}}" class="card-img-top" alt="" loading="auto"> + <img src="{{project.hero.img_src}}" class="card-img-top" alt="{{project.title}}" loading="auto"> {% endif %} <div class="card-body"> <h5 class="card-title"><strong>{{project.title}}</strong></h5> diff --git a/papers.md b/papers.md index a5b1a19..3efd0ab 100644 --- a/papers.md +++ b/papers.md @@ -11,10 +11,10 @@ I have recently started publishing some small papers I have written. As of now, <div class="list-group" id="posts"> {% assign i = 0 %} - {% for paper in site.data.papers %} + {% for paper in site.papers %} {% if i == 0 %} - <a href="{{paper.url}}" class="list-group-item list-group-item-action"> + <a href="{{paper.src}}" class="list-group-item list-group-item-action"> <div class="d-flex w-100 justify-content-between"> <div class="card-body"> <h5 class="mb-1">{{paper.title}}</h5> @@ -32,7 +32,7 @@ I have recently started publishing some small papers I have written. As of now, {% else %} - <a href="{{paper.url}}" class="list-group-item list-group-item-action"> + <a href="{{paper.src}}" class="list-group-item list-group-item-action"> <div class="d-flex w-100 justify-content-between"> <h5 class="mb-1">{{paper.title}}</h5> <small style="color:gray;">{{paper.date}}</small>