Skip to content

Commit

Permalink
Merge pull request #11 from somaniarushi/amks/fix-link-whitespace
Browse files Browse the repository at this point in the history
[BUG] fix links to no longer have extra whitespaces at end
  • Loading branch information
pmichaillat authored Nov 25, 2024
2 parents 6ef13ea + 5c48f35 commit b2e5e37
Show file tree
Hide file tree
Showing 43 changed files with 115 additions and 179 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{- .Text | safeHTML -}}</a>
16 changes: 6 additions & 10 deletions public/books/book1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"keywords": [
"Portugese", "irregular verbs", "philology"
],
"articleBody": " Description This book discusses Portugese irregular verbs in great details. It is the seminal work on Romance philology.1 The book is the result of years of research into the etymology and vagaries of Portuguese verbs.2 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nPraise There is nothing more to be said on this subject. Nothing – Anonymous reviewer\nView Chapter 1: History of the Portuguese language Chapter 2: Review of regular verbs Chapter 3: Analysis of irregular verbs Excerpt from Chapter 1: Basic mathematical results from Portuguese philology Lorem ipsum dolor sit amet, consectetur adipiscing elit $x\\in \\mathbb{N}$. Proin ac libero nec eros accumsan sagittis: $x^\\ast = \\max f(x)$. Fusce gravida $4 \\ln(x+y) =4 \\int \\ln(x^2)dx$, lectus nec aliquet malesuada, augue dui lacinia velit, eget ullamcorper lorem lorem id turpis. Nam interdum est id venenatis fermentum: . Nullam fermentum, arcu eu luctus fermentum, felis orci pretium mi, eu bibendum ligula neque in metus.\n$$1+\\lambda\\exp{\\frac{\\beta}{\\alpha^2}} = \\max_{t\\in\\mathbb{R}}(x(t)-y(t)+z(t)^2).$$\nNulla facilisi. Phasellus pharetra ligula sit amet diam viverra, sed scelerisque ligula cursus. Curabitur sit amet libero eu velit fringilla vulputate, $2\\ln(x)$. Suspendisse potenti. Quisque imperdiet arcu ac nibh gravida, id posuere ligula efficitur. Curabitur posuere, dui at finibus viverra, felis justo pulvinar urna, id finibus sem purus eget orci.\nVestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Mauris vel neque at lorem fermentum tincidunt: $ = 2x^2 + \\mathcal{A}$. Etiam volutpat, risus at aliquet varius, sapien quam vulputate lectus, id ultrices lorem arcu ut magna. Sed malesuada scelerisque dignissim. Aliquam erat volutpat. Proin efficitur tincidunt nulla, a convallis magna cursus sit amet. Donec eget convallis libero. Pellentesque tincidunt nunc et nisi lacinia, quis auctor lorem suscipit:\n$$2\\exp(\\gamma) = 2\\exp(\\zeta/3) = 2\\exp(\\kappa).$$\nPraesent at eros a sapien sagittis scelerisque at a nulla. Aliquam erat volutpat. In hac habitasse platea dictumst. Phasellus congue vestibulum nisl, vitae accumsan est. Suspendisse potenti. In ut nunc ac quam congue cursus. Duis fermentum hendrerit eros, ut auctor velit pharetra ut. Nulla facilisi. Cras at convallis purus, a convallis mauris. Donec id est vel ipsum hendrerit laoreet.\nCitation Moritz-Maria von Igelfeld. 1997. Portugese Irregular Verbs. Regensburg, Germany: Regensburg University Press. http://www.alexandermccallsmith.com/book/portuguese-irregular-verbs .\n@book{I97, author = {Moritz-Maria von Igelfeld}, year = {1997}, title = {Portugese Irregular Verbs}, publisher = {Regensburg University Press}, address = {Regensburg, Germany}, url = {http://www.alexandermccallsmith.com/book/portuguese-irregular-verbs}} The acknowledged aim of the book is to dwarf all other books in the field. ↩︎\nAs a result of such intensive research, the book’s length is almost twelve hundred pages. ↩︎\n",
"wordCount" : "474",
"articleBody": " Description This book discusses Portugese irregular verbs in great details. It is the seminal work on Romance philology.1 The book is the result of years of research into the etymology and vagaries of Portuguese verbs.2 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\nPraise There is nothing more to be said on this subject. Nothing – Anonymous reviewer\nView Chapter 1: History of the Portuguese language Chapter 2: Review of regular verbs Chapter 3: Analysis of irregular verbs Excerpt from Chapter 1: Basic mathematical results from Portuguese philology Lorem ipsum dolor sit amet, consectetur adipiscing elit $x\\in \\mathbb{N}$. Proin ac libero nec eros accumsan sagittis: $x^\\ast = \\max f(x)$. Fusce gravida $4 \\ln(x+y) =4 \\int \\ln(x^2)dx$, lectus nec aliquet malesuada, augue dui lacinia velit, eget ullamcorper lorem lorem id turpis. Nam interdum est id venenatis fermentum: . Nullam fermentum, arcu eu luctus fermentum, felis orci pretium mi, eu bibendum ligula neque in metus.\n$$1+\\lambda\\exp{\\frac{\\beta}{\\alpha^2}} = \\max_{t\\in\\mathbb{R}}(x(t)-y(t)+z(t)^2).$$\nNulla facilisi. Phasellus pharetra ligula sit amet diam viverra, sed scelerisque ligula cursus. Curabitur sit amet libero eu velit fringilla vulputate, $2\\ln(x)$. Suspendisse potenti. Quisque imperdiet arcu ac nibh gravida, id posuere ligula efficitur. Curabitur posuere, dui at finibus viverra, felis justo pulvinar urna, id finibus sem purus eget orci.\nVestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Mauris vel neque at lorem fermentum tincidunt: $ = 2x^2 + \\mathcal{A}$. Etiam volutpat, risus at aliquet varius, sapien quam vulputate lectus, id ultrices lorem arcu ut magna. Sed malesuada scelerisque dignissim. Aliquam erat volutpat. Proin efficitur tincidunt nulla, a convallis magna cursus sit amet. Donec eget convallis libero. Pellentesque tincidunt nunc et nisi lacinia, quis auctor lorem suscipit:\n$$2\\exp(\\gamma) = 2\\exp(\\zeta/3) = 2\\exp(\\kappa).$$\nPraesent at eros a sapien sagittis scelerisque at a nulla. Aliquam erat volutpat. In hac habitasse platea dictumst. Phasellus congue vestibulum nisl, vitae accumsan est. Suspendisse potenti. In ut nunc ac quam congue cursus. Duis fermentum hendrerit eros, ut auctor velit pharetra ut. Nulla facilisi. Cras at convallis purus, a convallis mauris. Donec id est vel ipsum hendrerit laoreet.\nCitation Moritz-Maria von Igelfeld. 1997. Portugese Irregular Verbs. Regensburg, Germany: Regensburg University Press. http://www.alexandermccallsmith.com/book/portuguese-irregular-verbs.\n@book{I97, author = {Moritz-Maria von Igelfeld}, year = {1997}, title = {Portugese Irregular Verbs}, publisher = {Regensburg University Press}, address = {Regensburg, Germany}, url = {http://www.alexandermccallsmith.com/book/portuguese-irregular-verbs}} The acknowledged aim of the book is to dwarf all other books in the field. ↩︎\nAs a result of such intensive research, the book’s length is almost twelve hundred pages. ↩︎\n",
"wordCount" : "473",
"inLanguage": "en",
"image":"https://pascalmichaillat.org/hugo-website/book1.png","datePublished": "1997-01-01T00:00:00Z",
"dateModified": "2024-05-08T00:00:00Z",
Expand Down Expand Up @@ -198,12 +198,9 @@ <h4 id="praise">Praise<a hidden class="anchor" aria-hidden="true" href="#praise"
<hr>
<h4 id="view">View<a hidden class="anchor" aria-hidden="true" href="#view">#</a></h4>
<ul>
<li><a href="chapter1.pdf">Chapter 1: History of the Portuguese language</a>
</li>
<li><a href="chapter2.pdf">Chapter 2: Review of regular verbs</a>
</li>
<li><a href="chapter3.pdf">Chapter 3: Analysis of irregular verbs</a>
</li>
<li><a href="chapter1.pdf">Chapter 1: History of the Portuguese language</a></li>
<li><a href="chapter2.pdf">Chapter 2: Review of regular verbs</a></li>
<li><a href="chapter3.pdf">Chapter 3: Analysis of irregular verbs</a></li>
</ul>
<hr>
<h4 id="excerpt-from-chapter-1-basic-mathematical-results-from-portuguese-philology">Excerpt from Chapter 1: Basic mathematical results from Portuguese philology<a hidden class="anchor" aria-hidden="true" href="#excerpt-from-chapter-1-basic-mathematical-results-from-portuguese-philology">#</a></h4>
Expand All @@ -215,8 +212,7 @@ <h4 id="excerpt-from-chapter-1-basic-mathematical-results-from-portuguese-philol
<p>Praesent at eros a sapien sagittis scelerisque at a nulla. Aliquam erat volutpat. In hac habitasse platea dictumst. Phasellus congue vestibulum nisl, vitae accumsan est. Suspendisse potenti. In ut nunc ac quam congue cursus. Duis fermentum hendrerit eros, ut auctor velit pharetra ut. Nulla facilisi. Cras at convallis purus, a convallis mauris. Donec id est vel ipsum hendrerit laoreet.</p>
<hr>
<h4 id="citation">Citation<a hidden class="anchor" aria-hidden="true" href="#citation">#</a></h4>
<p>Moritz-Maria von Igelfeld. 1997. <em>Portugese Irregular Verbs</em>. Regensburg, Germany: Regensburg University Press. <a href="http://www.alexandermccallsmith.com/book/portuguese-irregular-verbs" target="_blank">http://www.alexandermccallsmith.com/book/portuguese-irregular-verbs</a>
.</p>
<p>Moritz-Maria von Igelfeld. 1997. <em>Portugese Irregular Verbs</em>. Regensburg, Germany: Regensburg University Press. <a href="http://www.alexandermccallsmith.com/book/portuguese-irregular-verbs" target="_blank">http://www.alexandermccallsmith.com/book/portuguese-irregular-verbs</a>.</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-BibTeX" data-lang="BibTeX"><span style="display:flex;"><span><span style="color:#0a0;text-decoration:underline">@book</span>{I97,
</span></span><span style="display:flex;"><span><span style="color:#1e90ff">author</span> = <span style="color:#a50">{Moritz-Maria von Igelfeld}</span>,
</span></span><span style="display:flex;"><span><span style="color:#1e90ff">year</span> = <span style="color:#a50">{1997}</span>,
Expand Down
2 changes: 1 addition & 1 deletion public/books/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>Books on Moritz-Maria von Igelfeld</title>
<link>https://pascalmichaillat.org/hugo-website/books/</link>
<description>Recent content in Books on Moritz-Maria von Igelfeld</description>
<generator>Hugo -- 0.135.0</generator>
<generator>Hugo -- 0.139.0</generator>
<language>en</language>
<lastBuildDate>Wed, 08 May 2024 00:00:00 +0000</lastBuildDate>
<atom:link href="https://pascalmichaillat.org/hugo-website/books/index.xml" rel="self" type="application/rss+xml" />
Expand Down
Loading

0 comments on commit b2e5e37

Please sign in to comment.