~mrp/markpenner.space

b9b7d9f8ac3a96b4adb6a084eaf4a3ab81b8578e — Mark Penner 10 months ago ed0d33f
edit layouts, css, wording
M archetypes/default.org => archetypes/default.org +1 -1
@@ 1,4 1,4 @@
#+title: {{ replace .Name "-" " " | title }}
#+date: {{ .Date }}
#+date: {{ .Date | time.Format "2006-01-02" }}
#+draft: true
#+tags[]:

M config.toml => config.toml +10 -2
@@ 1,8 1,16 @@
baseURL = 'https://markpenner.space/'
cleanDestinationDir = true
copyright = 'This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.'
languageCode = 'en-us'
pagination = 0
title = 'markpenner.space'
[params]
  author = 'Mark Penner'
[author]
  email = 'mrpenner at mailbox.org'
  name = 'Mark Penner'
[markup]
  [markup.highlight]
    lineNos = true
    lineNumbersInTable = true
    style = 'pygments'
[taxonomies]
    tag = 'tags'

M content/_index.org => content/_index.org +3 -3
@@ 1,4 1,4 @@
#+title: Homepage
#+title: markpenner.space
#+date: 2023-07-26T19:26:28-05:00
#+draft: false
#+tags[]:


@@ 9,8 9,8 @@ Mostly mirrored across:
- [[https://codeberg.org/mrp][Codeberg]]
- [[https://git.sr.ht/~mrp/][sourcehut]]
- [[https://gitlab.com/mrpenner][GitLab]]
GitHub I only use for forking projects already there.
- [[https://github.com/mrpenner][GitHub]]

I also have a [[https://github.com/mrpenner][GitHub]] account that I only use for forking projects that are there already.

** Other interests:


M content/blog/_index.org => content/blog/_index.org +1 -3
@@ 1,6 1,4 @@
#+title: Blog
#+date: 2023-07-26T19:26:28-05:00
#+date: 2023-07-29
#+draft: false
#+tags[]:

* Mark Penner's Blog

M layouts/_default/baseof.html => layouts/_default/baseof.html +3 -3
@@ 1,15 1,15 @@
<!doctype html>
<html lang="en-us">
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "meta.html" . }}
</head>

<body>
{{ partial "header.html" }}

<main>
{{ block "main" . }}
{{ end }}

</main>
{{ partial "footer.html" }}
</body>
</html>

M layouts/_default/index.html => layouts/_default/index.html +0 -2
@@ 1,5 1,3 @@
{{ define "main" }}
<main>
  {{ .Content }}
</main>
{{ end }}

M layouts/_default/list.html => layouts/_default/list.html +0 -2
@@ 1,5 1,4 @@
{{ define "main" }}
<main>
  <article>
    {{ .Content }}
  </article>


@@ 10,5 9,4 @@
      </li>
    {{ end }}
  </ul>
</main>
{{ end }}

M layouts/_default/single.html => layouts/_default/single.html +11 -2
@@ 1,5 1,14 @@
{{ define "main" }}
<main>
<article>

  {{ .Content }}
</main>
  {{ $taxonomy := "tags" }}
  {{ with .GetTerms $taxonomy }}
    <p>{{ (site.GetPage $taxonomy).LinkTitle }}:
      {{ range . }}
        <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
      {{ end }}
    </p>
  {{ end }}
</article>
{{ end }}

A layouts/_default/taxonomy.html => layouts/_default/taxonomy.html +12 -0
@@ 0,0 1,12 @@
{{ define "main" }}
<main>
    <h2>{{ .Title }}</h2>
    {{ range .Pages }}
        <ul>
            <li>
                <p hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}">{{ .LinkTitle }}</a></p>
            </li>
        </ul>
    {{ end }}
</main>
{{ end }}

A layouts/blog/list.html => layouts/blog/list.html +20 -0
@@ 0,0 1,20 @@
{{ define "main" }}
  <article>
    {{ .Content }}
  </article>
  <h3>Posts</h3>
  <ul>
    {{ range .Pages }}
      <li>
        <a href="{{ .Permalink }}">{{ .Date.Format "2006-01-02" }} - {{ .Title }}</a>
      </li>
    {{ end }}
  </ul>
  <h3>Tags</h3>
  <ul>
  {{ range .Site.Taxonomies.tags }}
    <li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
  {{ end }}
</ul>

{{ end }}

M layouts/partials/footer.html => layouts/partials/footer.html +2 -2
@@ 1,5 1,5 @@
<footer>
  <hr>
  <p>&copy; {{ now.Year }} {{ site.Params.Author }}<br />
  This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.</p>
  &copy; {{ now.Year }} {{ site.Author.name }}<br />
  This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
</footer>

M layouts/partials/header.html => layouts/partials/header.html +8 -1
@@ 1,6 1,13 @@
<header>
    <nav>
    <a href="/">{{ site.Title }}</a> | <a href="/blog">blog</a>
    <div>
      <a href="/"><strong>{{ site.Title }}</strong></a>
    </div>
    <div>
      <a href="/blog">blog</a>
      <a href="/gitweb">git</a>
      <a href="/index.xml">rss</a>
    </div>
    </nav>
    <hr>
</header>

M layouts/partials/meta.html => layouts/partials/meta.html +3 -0
@@ 1,4 1,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="/styles.css" />
{{ with .OutputFormats.Get "rss" -}}
    {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
<title>{{ .Page.Title }}</title>

M static/styles.css => static/styles.css +6 -32
@@ 1,43 1,17 @@
:root {
  background-color: gainsboro;
  color: black;
}

a {
  outline: none;
}
a:link {
  color: darkgreen;
}
a:visited {
  color: darkslateblue;
}
a:focus,
a:hover {
  text-decoration: none;
  background: lightgray;
  color: darkslategray;
}
a:active {
  color: red;
}

header {
  text-align: left;
nav {
  display: flex;
  justify-content: space-between;
  margin: 0.5em;
}
body {
  width: device-width;
  max-width: 50em;
  margin: 0 auto;
  margin: 0 auto+1em;
  font-family: sans-serif;
}
table {
  margin-left: auto;
  margin-right:auto;
  border-collapse: collapse;
}
tr {
  border-bottom: 1px dotted;
}
footer {
  text-align: center;
}