diff options
Diffstat (limited to 'themes/simple/layouts/_default')
| -rwxr-xr-x | themes/simple/layouts/_default/list.html | 39 | ||||
| -rwxr-xr-x | themes/simple/layouts/_default/single.html | 21 |
2 files changed, 17 insertions, 43 deletions
diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html index 2e66b0d..856abf4 100755 --- a/themes/simple/layouts/_default/list.html +++ b/themes/simple/layouts/_default/list.html | |||
| @@ -1,39 +1,28 @@ | |||
| 1 | {{ define "main" }} | 1 | {{ define "main" }} |
| 2 | <main aria-role="main" class="container-blog mx-auto px-6 md:p-0"> | 2 | <main role="main" class="container-blog mx-auto px-6 md:p-0"> |
| 3 | 3 | ||
| 4 | <h1 class="text-2xl font-bold mb-6">Blog posts</h1> | 4 | <h1 class="text-2xl font-bold mb-6">Blog posts</h1> |
| 5 | 5 | ||
| 6 | <!-- List of all blog posts --> | 6 | <!-- List of all blog posts --> |
| 7 | <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12"> | 7 | <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12" role="feed"> |
| 8 | <meta itemprop="name" content="Article list"> | 8 | <meta itemprop="name" content="Article list"> |
| 9 | <ul> | 9 | {{ range (where .Site.RegularPages "Section" "posts") }} |
| 10 | {{ range (where .Site.RegularPages "Section" "posts") }} | 10 | <article class="mb-5" itemscope itemtype="http://schema.org/Article"> |
| 11 | <li class="mb-5"> | 11 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time> |
| 12 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Monday Jan 2, 2006" }}</time> | 12 | <a href="/{{ .Params.url }}" itemprop="url" class="hover:bg-yellow-100" rel="bookmark noopener" aria-label="Opens URL"> |
| 13 | <a href="/{{.Params.url}}" itemprop="url" class="hover:bg-yellow-100"> | 13 | {{ if .Params.draft }} |
| 14 | {{ if .Params.draft }} | 14 | <span class="bg-orange-600 text-white px-1.5">Draft</span> |
| 15 | <span class="bg-orange-600 text-white px-1.5">Draft</span> | 15 | {{ end }} |
| 16 | {{ end }} | 16 | {{.Title}} |
| 17 | {{.Title}} | 17 | </a> |
| 18 | </a> | 18 | </article> |
| 19 | </li> | 19 | {{ end }} |
| 20 | {{end}} | ||
| 21 | </ul> | ||
| 22 | </nav> | 20 | </nav> |
| 23 | 21 | ||
| 24 | <hr class="border-2 border-gray-100 mb-10"> | 22 | <hr class="border-2 border-gray-100 mb-10"> |
| 25 | 23 | ||
| 26 | <!-- Projects I work on --> | 24 | <!-- Projects I work on --> |
| 27 | <section class="mb-12"> | 25 | {{ partial "side-projects.html" . }} |
| 28 | <h4 class="text-2xl font-bold mb-6">Side projects I worked on</h4> | ||
| 29 | <ul class="list-disc ml-6"> | ||
| 30 | <li><a href="https://git.mitjafelicijan.com/journalctl-proxy.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-100">journalctl-proxy - Exposes your systemd logs to web via web interface</a></li> | ||
| 31 | <li><a href="https://git.mitjafelicijan.com/redis-marshal.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-100">redis-marshal - Lightweight Redis data exploration tool</a></li> | ||
| 32 | <li><a href="https://git.mitjafelicijan.com/dna-encoding.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-100">dna-encoding - Tools for encoding files to DNA sequence</a></li> | ||
| 33 | <li><a href="https://git.mitjafelicijan.com/vertex.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-100">vertex - Create mock API's and add basic logic to simplify prototyping</a></li> | ||
| 34 | <li><a href="https://git.mitjafelicijan.com/scarecrow.git/" target="_blank" rel="noopener nofollow" class="hover:bg-yellow-100">scarecrow - Minimal configuration reverse proxy</a></li> | ||
| 35 | </ul> | ||
| 36 | </section> | ||
| 37 | 26 | ||
| 38 | <hr class="border-2 border-gray-100 mb-10"> | 27 | <hr class="border-2 border-gray-100 mb-10"> |
| 39 | 28 | ||
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html index c8e786a..1258a3b 100755 --- a/themes/simple/layouts/_default/single.html +++ b/themes/simple/layouts/_default/single.html | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | {{ define "main" }} | 1 | {{ define "main" }} |
| 2 | <main aria-role="main" class="container-blog mx-auto px-6 md:p-0"> | 2 | <main role="main" class="container-blog mx-auto px-6 md:p-0"> |
| 3 | 3 | ||
| 4 | <!-- Single article --> | 4 | <!-- Single article --> |
| 5 | <article itemtype="http://schema.org/Article" class="single mb-12"> | 5 | <article itemtype="http://schema.org/Article" class="single mb-12"> |
| 6 | <header class="mb-6"> | 6 | <header class="mb-6"> |
| 7 | <h1 itemtype="headline" class="text-4xl font-extrabold mb-6 leading-tight">{{.Title}}</h1> | 7 | <h1 itemtype="headline" class="text-4xl font-extrabold mb-6 leading-tight">{{ .Title }}</h1> |
| 8 | 8 | ||
| 9 | {{ if in .Type "posts" }} | 9 | {{ if in .Type "posts" }} |
| 10 | <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> | 10 | <time class="text-gray-400 font-medium text-sm">Published on {{ .Date.Format "Monday Jan 2, 2006" }}</time> |
| @@ -33,22 +33,7 @@ | |||
| 33 | 33 | ||
| 34 | <!-- Read more --> | 34 | <!-- Read more --> |
| 35 | {{ if in .Type "posts" }} | 35 | {{ if in .Type "posts" }} |
| 36 | <section> | 36 | {{ partial "read-more.html" . }} |
| 37 | <h2 class="text-2xl font-bold mb-6">Read more from this site</h2> | ||
| 38 | <nav itemscope itemtype="https://schema.org/SiteNavigationElement" class="mb-12"> | ||
| 39 | <meta itemprop="name" content="Article list"> | ||
| 40 | <ul> | ||
| 41 | {{ $randomPosts := shuffle (where .Site.RegularPages "Type" "posts") | first 5 }} | ||
| 42 | {{ range $randomPosts }} | ||
| 43 | <li class="mb-6"> | ||
| 44 | <time class="block text-gray-400 font-medium text-xs">{{ .Date.Format "Mon Jan 2, 2006" }}</time> | ||
| 45 | <a href="/{{.Params.url}}" itemprop="url" class="hover:bg-yellow-100 font-medium">{{.Title}}</a> | ||
| 46 | <p class="text-gray-600 text-sm">{{.Summary}}</p> | ||
| 47 | </li> | ||
| 48 | {{end}} | ||
| 49 | </ul> | ||
| 50 | </nav> | ||
| 51 | </section> | ||
| 52 | {{ end }} | 37 | {{ end }} |
| 53 | 38 | ||
| 54 | {{ if in .Type "posts" }} | 39 | {{ if in .Type "posts" }} |
