Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
shivan-s committed Oct 23, 2024
1 parent 6b96e18 commit 031188c
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
9 changes: 9 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,15 @@ section {
}

section.posts {
& header {
display: flex;
flex-wrap: nowrap;
flex-direction: row;
align-items: center;
justify-content: center;
gap: var(--small-gap);
}

& .page-groupby:hover {
transform: rotate(1deg);
}
Expand Down
4 changes: 4 additions & 0 deletions layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ <h2>About</h2>
<section class="posts">
<header>
<h2>Posts</h2>
<span>{{ with .OutputFormats.Get "rss" -}}
<a title="RSS" href="{{ .Permalink }}">{{ readFile 'static/rss.svg' | safeHTML }}</a>
{{ end }}
</span>
</header>
{{ $pages := where site.RegularPages "Type" "posts" }} {{ range
$pages.GroupByPublishDate "2006" }}
Expand Down
15 changes: 10 additions & 5 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>
{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title
site.Title }}{{ end }}
</title>
{{ with .OutputFormats.Get "rss" -}} {{ printf `
<link rel="%q" type="%q" href="%q" title="%q" />` .Rel .MediaType.Type
.Permalink site.Title | safeHTML }} {{ end }} {{ partialCached "head/css.html" .
}} {{ partialCached "head/js.html" . }}
3 changes: 3 additions & 0 deletions layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ <h1>{{ .Title }}</h1>
<span>{{ .Params.author }}</span>
<span><a href="{{ .Params.githubRepo }}">Suggest Changes</a></span>
</small>
{{ with .TableOfContents }} {{ if . }}
<details>{{ . }}</details>
{{ end }} {{ end }}
</header>
<div class="content">{{ .Content }}</div>
<footer>{{ partial "tags.html" (dict "taxonomy" "tags" "page" .) }}</footer>
Expand Down
1 change: 1 addition & 0 deletions static/img/rss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 031188c

Please sign in to comment.