diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..15bbe5a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/internet-weblog"] + path = themes/internet-weblog + url = https://github.com/jnjosh/internet-weblog.git diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..09309d8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Emil Lerch + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..adce470 --- /dev/null +++ b/config.toml @@ -0,0 +1,36 @@ +baseurl = "https://blog.lerch.org" +languageCode = "en-us" +title = "Lerch Family Blog" +SectionPagesMenu = "main" +pygmentsStyle = "monokai" +pygmentsCodefences = true +pygmentsUseClasses = false +theme = "internet-weblog" +relativeURLs = true + +[author] + name = "Lerch Family" + +[permalinks] + posts = "/:slug/" + +[params] + Author = "Lerch Family" + Copyright = "Creative Commons Attribution-ShareAlike 4.0 International License. Please attribute properly and link back." + Description = "Lerch Family" + # GitHubUser = "elerch" + # TwitterUser = "elerch" + # LinkedInUser = "emillerch" + # MastodonUser = "@emil" + # MastodonInstance = "mstdn.io" + # disqusShortname = "emillerch" + +[markup] + [markup.highlight] + noclasses = true + +[blackfriday] + smartypants = false + angledQuotes = false + smartDashes = false + latexDashes = false diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..e49c966 --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,39 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := slice -}} +{{- if or $.IsHome $.IsSection -}} +{{- $pages = $pctx.RegularPages -}} +{{- else -}} +{{- $pages = $pctx.Pages -}} +{{- end -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" -}} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end -}} + {{ range $pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + + diff --git a/themes/internet-weblog b/themes/internet-weblog new file mode 160000 index 0000000..bcf4127 --- /dev/null +++ b/themes/internet-weblog @@ -0,0 +1 @@ +Subproject commit bcf4127174a4ddd86f5a739e064a63532bab400a