Added post history link (#14)

This commit is contained in:
Alejandro Angulo 2022-01-01 11:30:51 -08:00 committed by GitHub
parent dc9b131e72
commit 1c8718b16c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11484 additions and 59 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,11 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ partial "metadata.html" . }}
<a
class="glyph-link"
href="{{ $.Param "githubURL" }}/commits/{{ $.Param "gitBranch" }}/content/{{ .File.Dir }}/{{ .File.LogicalName }}"
>
View post history <i class="nf nf-fa-github_alt"></i>
</a>
{{ .Content }}
{{ end }}

View file

@ -4,11 +4,12 @@
<link
rel="stylesheet"
type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/hack-font/3.3.0/web/hack.min.css"
href="https://cdn.jsdelivr.net/npm/hack-font@3/build/web/hack.css"
/>
{{ $main_style := resources.Get "css/main.css" | minify }}
{{ $highlight_style := resources.Get "css/highlight.css" | minify }}
{{ $css := slice $main_style $highlight_style | resources.Concat "css/style.css" | fingerprint }}
{{ $nerdfont_style := resources.Get "css/nerd-fonts-generated.css" | minify }}
{{ $css := slice $main_style $highlight_style $nerdfont_style | resources.Concat "css/style.css" | fingerprint }}
<link
rel="stylesheet"
type="text/css"

View file

@ -1,17 +1,13 @@
<div class="post-meta">
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<time datetime="{{ $dateTime }}">
{{ .PublishDate.Format $dateFormat }}
</time>
{{ with .Params.tags }}
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
<a href="{{ $href }}">#{{ . }}</a>
{{ end }}
</div>
{{ end }}
</div>
</div>
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<time datetime="{{ $dateTime }}">
{{ .PublishDate.Format $dateFormat }}
</time>
{{ with .Params.tags }}
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
<a href="{{ $href }}">#{{ . }}</a>
{{ end }}
{{ end }}
</div>