mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Tags, rss, sitemap and robots.txt
This commit is contained in:
@@ -7,12 +7,17 @@
|
||||
{{ $favIcon16 := resources.Get "favicon-16x16.png" }}
|
||||
{{ $favIcon := resources.Get "favicon.ico" }}
|
||||
|
||||
<html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#FBFBFB" />
|
||||
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
|
||||
<link rel="icon" sizes="192x192" href="{{ $androidChromeIcon.Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ $appleTouchIcon.Permalink }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ $favIcon32.Permalink }}">
|
||||
|
||||
@@ -9,11 +9,34 @@
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<section>
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ partial "card.html" . }}
|
||||
{{ if or (.InSection ($.Site.GetPage "blog")) (findRESubmatch "tags" .RelPermalink) }}
|
||||
{{ $currentTitle := .Page.Title }}
|
||||
|
||||
{{ if (findRESubmatch "tags" .RelPermalink) }}
|
||||
<h2>Blog</h2>
|
||||
<p>These are articles about things I learned about software engineering.</p>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
<section id="tags">
|
||||
{{ range .Site.Taxonomies.tags }}
|
||||
<a class="{{ if (eq $currentTitle .Page.Title) }}selected{{ end }}"
|
||||
href="{{ .Page.Permalink }}"
|
||||
>
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ if gt .Paginator.TotalPages 0 }}
|
||||
<section>
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ partial "card.html" . }}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ else }}
|
||||
<h2>Nothing for now</h2>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user