Skip to content

Commit

Permalink
style(pastes): smol-v2 styles
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Oct 3, 2024
1 parent 5359de0 commit af3ceae
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pastes/html/blog.page.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@

{{define "body"}}
<header class="text-center">
<h1 class="text-2xl font-bold">{{.Header.Title}}</h1>
<hr />
<h1 class="text-2xl">{{.Header.Title}}</h1>
<hr class="my-2" />
</header>
<main>
<section class="posts">
{{range .Posts}}
<article class="my">
<div class="flex items-center">
<time datetime="{{.PublishAtISO}}" class="font-italic text-sm post-date">{{.PublishAt}}</time>
<div class="text-md flex-1"><a href="{{.URL}}">{{.Title}}</a></div>
<div class="text-md flex-1 transform-none m-0"><a href="{{.URL}}">{{.Title}}</a></div>
</div>
</article>
{{end}}
Expand Down
2 changes: 1 addition & 1 deletion pastes/html/footer.partial.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{define "footer"}}
<footer>
<hr />
<hr class="my-2" />
published with <a href={{.Site.HomeURL}}>{{.Site.Domain}}</a>
</footer>
{{end}}
2 changes: 1 addition & 1 deletion pastes/html/post.page.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

{{define "body"}}
<header>
<h1 class="text-2xl font-bold">{{.Title}}</h1>
<h1 class="text-2xl font-bold transform-none">{{.Title}}</h1>
<p class="font-bold m-0">
{{if .Unlisted}} <code>unlisted</code>{{end}}
<time datetime="{{.PublishAtISO}}">{{.PublishAt}}</time>
Expand Down
4 changes: 4 additions & 0 deletions pastes/public/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ body {
.post-date {
width: 110px;
}

.transform-none {
text-transform: none;
}

0 comments on commit af3ceae

Please sign in to comment.