Skip to content

Commit

Permalink
Fix index display and clean up head formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ezell committed Apr 24, 2022
1 parent b28f033 commit 38f82d9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore all HTML files:
*.html
23 changes: 23 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ define "main" }}
<div class="posts h-feed">

{{ range ( .Paginate (where .Site.RegularPages "Type" "post")).Pages }}

<div class="post">
<a href="{{ .Permalink }}" class="post-date u-url">
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02 15:04:05 -0700" }}">
{{ .Date.Format "2 Jan 2006 // 15:04" }}
</time>
</a>
{{ if .Title }}
<h1 class="page-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ end }}
<div class="e-content">
{{ .Content }}
</div>
</div>

{{ end }}

</div>
{{ end }}
27 changes: 14 additions & 13 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
/>

<title>
{{ if .IsHome }} {{ .Site.Title }} {{ else }} {{ .Site.Title }} &middot; {{
.Title }} {{ end }}
{{ if .IsHome }} {{ .Site.Title }} {{ else }} {{ .Site.Title }} &middot; {{ .Title }} {{ end }}
</title>

<link
Expand All @@ -21,10 +20,10 @@
/>

<!-- CSS -->
<link rel="stylesheet" href="{{ "css/poole.css" | relURL }}"> <link
rel="stylesheet" href="{{ "css/syntax.css" | relURL }}"> <link
rel="stylesheet" href="{{ "css/vapor1994.css" | relURL }}"> <link
rel="stylesheet" href="{{ "custom.css" | relURL }}">
<link rel="stylesheet" href="{{ "css/poole.css" | relURL }}">
<link rel="stylesheet" href="{{ "css/syntax.css" | relURL }}">
<link rel="stylesheet" href="{{ "css/vapor1994.css" | relURL }}">
<link rel="stylesheet" href="{{ "custom.css" | relURL }}">
<link
href="https://fonts.googleapis.com/css2?family=Bungee&family=Roboto:wght@300&display=swap"
rel="stylesheet"
Expand All @@ -37,18 +36,20 @@
type="application/rss+xml"
title="{{ .Site.Title }}"
/>
<link href="{{ "podcast.xml" | absURL }}" rel="alternate"
type="application/rss+xml" title="Podcast" /> <link rel="alternate"
type="application/json" title="{{ .Site.Title }}" href="{{ "feed.json" |
absURL }}" /> <link rel="EditURI" type="application/rsd+xml" href="{{
"rsd.xml" | absURL }}" /> {{ end -}}
<link href="{{ "podcast.xml" | absURL }}" rel="alternate" type="application/rss+xml" title="Podcast" />
<link rel="alternate" type="application/json" title="{{ .Site.Title }}" href="{{ "feed.json" |
absURL }}" />
<link rel="EditURI" type="application/rsd+xml" href="{{ "rsd.xml" | absURL }}" />
{{ end -}}

<link rel="me" href="https://micro.blog/{{ .Site.Author.username }}" />
{{ with .Site.Params.twitter_username }}
<link rel="me" href="https://twitter.com/{{ . }}" />
{{ end }} {{ with .Site.Params.github_username }}
{{ end }}
{{ with .Site.Params.github_username }}
<link rel="me" href="https://github.com/{{ . }}" />
{{ end }} {{ with .Site.Params.instagram_username }}
{{ end }}
{{ with .Site.Params.instagram_username }}
<link rel="me" href="https://instagram.com/{{ . }}" />
{{ end }}
<link rel="authorization_endpoint" href="https://micro.blog/indieauth/auth" />
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.1",
"version": "1.0.2",
"title": "Vapor1994 theme",
"description": "Changes your blog to use the Vapor1994 theme."
}

0 comments on commit 38f82d9

Please sign in to comment.