style fixes to keep links page 3 columns

This commit is contained in:
yequari 2024-04-21 13:11:48 -07:00
parent 90c04ab544
commit d6899677d1
8 changed files with 24 additions and 10 deletions

View File

@ -2,7 +2,6 @@
title: "Projects" title: "Projects"
date: 2023-10-09T14:21:12-07:00 date: 2023-10-09T14:21:12-07:00
--- ---
# Projects
Here are some projects I'm currently working on or have worked on in the past. Here are some projects I'm currently working on or have worked on in the past.

View File

@ -0,0 +1,10 @@
{{- $u := urls.Parse .Destination -}}
<a href="{{ .Destination | safeURL }}"
{{- with .Title }} title="{{ . }}"{{ end -}}
{{- if $u.IsAbs }} rel="external"{{ end -}}
>
{{- with .Text | safeHTML }}{{ . }}{{ end -}}
</a>{{- if $u.IsAbs }}🔗{{ end -}}
{{- /* chomp trailing newline */ -}}

View File

@ -7,7 +7,7 @@
{{ .name }} {{ .name }}
<p> <p>
{{ $u := urls.Parse .url }} {{ $u := urls.Parse .url }}
<a target="_blank" href="{{ .url }}" >{{ $u.Hostname }}</a> 🔗<a target="_blank" href="{{ .url }}" >{{ $u.Hostname }}</a>
</p> </p>
</summary> </summary>
{{ .description }} {{ .description }}

View File

@ -1,4 +1,5 @@
{{ define "main" }} {{ define "main" }}
<h1>{{ .Title }}</h1>
<section class="content"> <section class="content">
{{ .Content }} {{ .Content }}
</section> </section>

View File

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
<h1>{{ .Title }}</h1>
<section class="content"> <section class="content">
<h1>{{ .Title }}</h1>
{{ .Content }} {{ .Content }}
</section> </section>
{{ end }} {{ end }}

View File

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
<h1>{{ .Title }}</h1>
<section class="content posts h-feed hfeed"> <section class="content posts h-feed hfeed">
<h1>{{ .Title }}</h1>
{{ range .Pages }} {{ range .Pages }}
<article class="h-entry"> <article class="h-entry">
<h2><a class="title u-url p-name" href="{{ .RelPermalink }}">{{ .Title }}</a></h2> <h2><a class="title u-url p-name" href="{{ .RelPermalink }}">{{ .Title }}</a></h2>

View File

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
<h1>{{ .Title }}</h1>
<section class="content posts h-feed hfeed"> <section class="content posts h-feed hfeed">
<h1>{{ .Title }}</h1>
{{ range .Paginator.Pages.ByPublishDate.Reverse }} {{ range .Paginator.Pages.ByPublishDate.Reverse }}
<article class="h-entry"> <article class="h-entry">
{{ partial "post-header.html" .}} {{ partial "post-header.html" .}}

View File

@ -265,13 +265,13 @@ nav li a:hover, nav li a:active {
display: flex; display: flex;
flex-flow: row wrap-reverse; flex-flow: row wrap-reverse;
box-shadow: 10px 5px 5px #00000066; box-shadow: 10px 5px 5px #00000066;
padding: 30px; padding: 30px 0;
} }
.sidebar { .sidebar {
flex: 0 1 20%; flex: 0 1 20%;
border-right: 1px solid black; border-right: 1px solid black;
padding: 15px 15px 15px 0; padding: 0 15px;
} }
.sidebar h1 { .sidebar h1 {
@ -321,7 +321,7 @@ nav li a:hover, nav li a:active {
main { main {
flex: 1 3 70%; flex: 1 3 70%;
padding: 15px 15px 15px 30px; padding: 0 25px;
} }
main li { main li {
@ -445,7 +445,7 @@ h3.index {
flex-flow: row wrap; flex-flow: row wrap;
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
gap: 20px; gap: 10px;
} }
#links-main ul { #links-main ul {
@ -481,10 +481,14 @@ h3.index {
.links-column { .links-column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex: 1 3 10%; flex: 1 3 20%;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
.links-column h2 {
text-align: center;
}
/* webmention box */ /* webmention box */
.send-webmention { .send-webmention {