Added post history link (#14)
This commit is contained in:
parent
dc9b131e72
commit
1c8718b16c
5 changed files with 11484 additions and 59 deletions
11461
themes/alejandro-angulo/assets/css/nerd-fonts-generated.css
Normal file
11461
themes/alejandro-angulo/assets/css/nerd-fonts-generated.css
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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 }}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue