[submodule "themes/duje"]
path = themes/duje
- url = ./
+ url = git://git.dujemihanovic.xyz/hugo-skeleton.git
+++ /dev/null
----
-title: "{{ replace .Name "-" " " | title }}"
-date: {{ .Date }}
-draft: true
----
-
+++ /dev/null
----
-title: Blog
----
-# Posts
enableGitInfo = true
disableKinds = ['taxonomy', 'term']
rssLimit = 20
+theme = ['duje']
[author]
name = 'Duje Mihanović'
email = 'duje.mihanovic@skole.hr'
+++ /dev/null
-{{ define "main" }}
-{{ .Content }}
-{{ end }}
-
-{{ define "footer" }}
-<footer>
- <p>If you appreciate my work and would like to donate, you can donate XMR to this address or use the QR code below.</p>
- <p>85qXBHh99bJ62p7s8upmoqYsvHrJvZWLTD7riHFo3E2jRvdQRoiNuXKRaDMAQiJ34Kfix3KHouNCW6bbD4zniWB5QxZR9Xx</p>
- {{ $image := resources.Get "img/donate.png" }}
- {{ with $image }}
- <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="QR code for XMR donation">
- {{ end }}
-</footer>
-{{ end }}
+++ /dev/null
-{{ define "main" }}
- {{ .Content }}
-{{ end }}
+++ /dev/null
-{{ define "main" }}
-{{ .Content }}
-<h2>Recent Posts</h2>
-<ul>
- {{ range first 5 ($.Site.GetPage "/posts").Pages }}
- <li><a href="{{ .RelPermalink }}">{{ .Title }}</a> - {{ .Date.Format "January 2, 2006" }}</li>
- {{ end }}
-</ul>
-<ul style="list-style: none;"><li><a href="/posts">Read all the posts</a></li></ul>
-<h2>Recently Updated Projects</h2>
-<ul>
- {{ range first 3 ($.Site.GetPage "/projects").Pages }}
- <li><a href="{{ .RelPermalink }}">{{ .Title }}</a>
- {{ end }}
-</ul>
-<ul style="list-style: none;"><li><a href="/projects">See all the projects</a></li></ul>
-{{ end }}
+++ /dev/null
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<meta name="description" content="Duje Mihanović's personal website">
-<title>{{ print .Page.Title }} | {{ print .Site.Title }}</title>
-{{ $style := resources.Get "css/style.css" | resources.Minify }}
-<link rel="stylesheet" href="{{ $style.RelPermalink }}?v=1.1.3">
-{{ $index := $.Site.GetPage "/" }}
-{{ range $index.AlternativeOutputFormats }}
-{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
-{{ end }}
+++ /dev/null
-<nav>
- <ul>
- <li><a href="/">Home</a></li>
- <li><a href="/posts/">Blog</a></li>
- <li><a href="/contact/">Contact</a></li>
- <li><a href="/donate/">Donate</a></li>
- </ul>
-</nav>
+++ /dev/null
-{{ define "main" }}
-{{ .Content }}
-<ul>
-{{ range .Pages }}
- <li>
- <a href="{{ .RelPermalink }}">{{ .Title }}</a> - {{ .Date.Format "January 2, 2006" }} - {{ .ReadingTime }} minute read<br>
- {{ .Summary }}
- {{ if .Truncated }}
- <br>
- <a href="{{ .RelPermalink }}">Read full article...</a>
- {{ end }}
- </li>
-{{ end }}
-</ul>
-{{ end }}
+++ /dev/null
-{{ define "main" }}
- <h1>{{ .Title }}</h1>
- <p><i>{{ .WordCount }} words, estimated reading time: {{ .ReadingTime }}
- minute(s)</i>
- <br>
- <i>Originally published on {{ .PublishDate.Format "January 2, 2006"
- }}</i>
- <br>
- <i>Last modified on {{ .Lastmod.Format "January 2, 2006" }}</i></p>
- <p></p>
- {{ .Content }}
-{{ end }}
+++ /dev/null
-{{ define "main" }}
-{{ .Content }}
-<ul>
-{{ range .Pages }}
- <li>
- <a href="{{ .RelPermalink }}">{{ .Title }}</a>
- </li>
-{{ end }}
-</ul>
-{{ end }}
+++ /dev/null
-{{ define "main" }}
-<h1>{{ .Title }}</h1>
-{{ .Content }}
-{{ end }}
+++ /dev/null
-{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
-<feed xmlns="http://www.w3.org/2005/Atom">
- <title>{{ .Site.Title }}</title>
- <id>{{ .Permalink }}</id>
- {{ $lastmod := 0 }}
- {{ range (.Site.GetPage "/posts").Pages }}
- {{ if gt .Lastmod $lastmod }}
- {{ $lastmod = .Lastmod }}
- {{ end }}
- {{ end }}
- <updated>{{ $lastmod.Format "2006-01-02T15:04:05Z" }}</updated>
- <link href="{{ .Permalink }}"/>
- <link rel="self" href="{{ (.OutputFormats.Get "RSS").Permalink }}"/>
- <author>
- <name>Duje Mihanović</name>
- <email>duje.mihanovic@skole.hr</email>
- <uri>{{ .Permalink }}</uri>
- </author>
- <generator uri="https://gohugo.io/">Hugo</generator>
-
- {{ with $.Site.GetPage "posts/" }}
- {{ range first .Site.Config.Services.RSS.Limit .Pages }}
- <entry>
- <id>{{ .Permalink }}</id>
- <link rel="alternate" href="{{ .RelPermalink }}"/>
- <title>{{ .Title }}</title>
- <updated>{{ .Lastmod.Format "2006-01-02T15:04:05Z" }}</updated>
- <published>{{ .PublishDate.Format "2006-01-02T15:04:05Z" }}</published>
- <content type="html">{{ .Content | html }}</content>
- <summary type="html">{{ .Summary | html }}</summary>
- </entry>
- {{ end }}
- {{ end }}
-</feed>
-Subproject commit 558981b134086fe06af090c147bac1a5f981dab9
+Subproject commit f0f84ba4f81b753ed494af4e950cd546c17b426a