diff options
author | EuAndreh <eu@euandre.org> | 2020-08-19 11:38:25 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-19 11:42:32 -0300 |
commit | dabb900032eb7bda95a1655bb21e1743484d96c9 (patch) | |
tree | cca9a2d4b28a2ea4d2600f22e3896e7519b96bf4 | |
parent | Update Jekyll to 4.0 (diff) | |
download | euandre.org-dabb900032eb7bda95a1655bb21e1743484d96c9.tar.gz euandre.org-dabb900032eb7bda95a1655bb21e1743484d96c9.tar.xz |
Use {% link %} tag to assert valid links
-rw-r--r-- | _config.yml | 30 | ||||
-rw-r--r-- | _layouts/default.html | 10 | ||||
-rw-r--r-- | _layouts/index.html | 2 | ||||
-rw-r--r-- | _layouts/tils-listing.html | 2 |
4 files changed, 22 insertions, 22 deletions
diff --git a/_config.yml b/_config.yml index 5e21306..dd3da6c 100644 --- a/_config.yml +++ b/_config.yml @@ -40,25 +40,25 @@ collections: t: blog_url: - en: "/en/" - pt: "/pt/" - fr: "/fr/" + en: "en/index.md" + pt: "pt/index.md" + fr: "fr/index.md" about: en: "About" pt: "Sobre" fr: "À propos" about_url: - en: "/about.html" - pt: "/sobre.html" - fr: "/a-propos.html" + en: "about.md" + pt: "sobre.md" + fr: "a-propos.md" til: en: "TIL" pt: "HEA" fr: "AJA" til_url: - en: "/til.html" - pt: "/hea.html" - fr: "/aja.html" + en: "til.md" + pt: "hea.md" + fr: "aja.md" til_listing: en: "TIL Listing" pt: "Lista de HEA" @@ -79,13 +79,13 @@ t: fr: "AJA d'EuAndreh" url: blog: - en: "/feed.blog.en.atom" - pt: "/feed.blog.pt.atom" - fr: "/feed.blog.fr.atom" + en: "feed.blog.en.atom" + pt: "feed.blog.pt.atom" + fr: "feed.blog.fr.atom" til: - en: "/feed.til.en.atom" - pt: "/feed.til.pt.atom" - fr: "/feed.til.fr.atom" + en: "feed.til.en.atom" + pt: "feed.til.pt.atom" + fr: "feed.til.fr.atom" posted_on: en: "Posted on" pt: "Postado em" diff --git a/_layouts/default.html b/_layouts/default.html index de8c726..bfb7a79 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,8 +5,8 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="/styles.css"> - <link rel="alternate" type="application/atom+xml" href="{{ site.t.feed.url.blog[page.lang] }}" hreflang="{{ page.lang}}" title="{{ site.t.feed.title.blog[page.lang] }}" /> - <link rel="alternate" type="application/atom+xml" href="{{ site.t.feed.url.til[page.lang] }}" hreflang="{{ page.lang}}" title="{{ site.t.feed.title.til[page.lang] }}" /> + <link rel="alternate" type="application/atom+xml" href="{% link {{ site.t.feed.url.blog[page.lang] }} %}" hreflang="{{ page.lang}}" title="{{ site.t.feed.title.blog[page.lang] }}" /> + <link rel="alternate" type="application/atom+xml" href="{% link {{ site.t.feed.url.til[page.lang] }} %}" hreflang="{{ page.lang}}" title="{{ site.t.feed.title.til[page.lang] }}" /> <title>{{ page.title }}</title> <meta property="og:site_name" content="{{ site.title }}" /> @@ -26,7 +26,7 @@ <header> <nav> <div id="nav-left"> - <a href="{{ site.t.blog_url[page.lang] }}"><web>EuAndreh</web></pre></a> + <a href="{% link {{ site.t.blog_url[page.lang] }} %}"><web>EuAndreh</web></pre></a> </div> <div id="nav-right"> {% if page.ref != nil %} @@ -57,8 +57,8 @@ {% endfor %} </ul> {% endif %} - <a href="{{ site.t.til_url[page.lang] }}">{{ site.t.til[page.lang] }}</a> - <a href="{{ site.t.about_url[page.lang] }}">{{ site.t.about[page.lang] }}</a> + <a href="{% link {{ site.t.til_url[page.lang] }} %}">{{ site.t.til[page.lang] }}</a> + <a href="{% link {{ site.t.about_url[page.lang] }} %}">{{ site.t.about[page.lang] }}</a> </div> </nav> </header> diff --git a/_layouts/index.html b/_layouts/index.html index 1337252..3b0f281 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -3,7 +3,7 @@ layout: default --- <h2> {{ site.t.recent_posts[page.lang] }} - <a href="{{ site.t.feed.url.blog[page.lang] }}"> + <a href="{% link {{ site.t.feed.url.blog[page.lang] }} %}"> <img class="simple-icon" src="/images/atom.svg" alt="{{ site.t.alt.atom[page.lang] }}" /> </a> </h2> diff --git a/_layouts/tils-listing.html b/_layouts/tils-listing.html index 4e5d4af..0a59a19 100644 --- a/_layouts/tils-listing.html +++ b/_layouts/tils-listing.html @@ -3,7 +3,7 @@ layout: default --- <h2> {{ site.t.til_listing[page.lang] }} - <a href="{{ site.t.feed.url.til[page.lang] }}"> + <a href="{% link {{ site.t.feed.url.til[page.lang] }} %}"> <img class="simple-icon" src="/images/atom.svg" alt="{{ site.t.alt.atom[page.lang] }}" /> </a> </h2> |