Fixes #2
This commit is contained in:
parent
a0df983ae7
commit
ad5f17e77a
6 changed files with 33 additions and 8 deletions
|
@ -15,7 +15,7 @@ theme = "hyde-hyde"
|
||||||
title = "Title"
|
title = "Title"
|
||||||
# description = "..."
|
# description = "..."
|
||||||
authorimage = "/img/hugo.png"
|
authorimage = "/img/hugo.png"
|
||||||
dateformat = "Jan 1, 2006"
|
dateformat = "Jan 2, 2006"
|
||||||
highlightjs = true
|
highlightjs = true
|
||||||
# highlightjsstyle = "github"
|
# highlightjsstyle = "github"
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,13 @@
|
||||||
{{ range where .Data.Pages "Type" "posts" }}
|
{{ range where .Data.Pages "Type" "posts" }}
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||||
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
<span class="post-date">
|
||||||
|
{{- if isset .Site.Params "dateformat" -}}
|
||||||
|
{{ .Date.Format .Site.Params.dateformat }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ .Date.Format "Jan 02 2006" }}
|
||||||
|
{{- end -}}
|
||||||
|
</span>
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
{{ if .Truncated }}
|
{{ if .Truncated }}
|
||||||
<div class="read-more-link">
|
<div class="read-more-link">
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i,500">
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i,500">
|
||||||
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" /> -->
|
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" /> -->
|
||||||
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
|
<script defer src="https://use.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-8iPTk2s/jMVj81dnzb/iFR2sdA7u06vHJyyLlAd4snFpCl/SnyUjRrbdJsw1pGIl" crossorigin="anonymous"></script>
|
||||||
{{ if .Site.Params.highlightjs -}}
|
{{ if .Site.Params.highlightjs -}}
|
||||||
{{ "<!-- highlight.js-->" | safeHTML }}
|
{{ "<!-- highlight.js-->" | safeHTML }}
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.highlightjsstyle | default "default" }}.min.css">
|
||||||
|
|
|
@ -4,7 +4,15 @@
|
||||||
<li>
|
<li>
|
||||||
<span>
|
<span>
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
<time class="pull-right post-list"> {{ .Date.Format "Jan 2, 2006" }}</time>
|
{{ if not .Date.IsZero }}
|
||||||
|
<time class="pull-right post-list">
|
||||||
|
{{- if isset .Site.Params "dateformat" -}}
|
||||||
|
{{ .Date.Format .Site.Params.dateformat }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ .Date.Format "Jan 02 2006" }}
|
||||||
|
{{- end -}}
|
||||||
|
</time>
|
||||||
|
{{end}}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -4,7 +4,14 @@
|
||||||
<div class="col-sm-12 col-md-12">
|
<div class="col-sm-12 col-md-12">
|
||||||
<span class="text-left post-date meta">
|
<span class="text-left post-date meta">
|
||||||
<!-- published date -->
|
<!-- published date -->
|
||||||
{{ if not .Date.IsZero }} <i class="fa fa-calendar" aria-hidden="true"></i> {{ .Date.Format .Site.Params.dateformat }} {{end}}
|
{{ if not .Date.IsZero }}
|
||||||
|
<i class="fas fa-calendar-alt"></i>
|
||||||
|
{{ if isset .Site.Params "dateformat" -}}
|
||||||
|
{{ .Date.Format .Site.Params.dateformat }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ .Date.Format "Jan 02 2006" }}
|
||||||
|
{{- end -}}
|
||||||
|
{{ end }}
|
||||||
<!-- categories -->
|
<!-- categories -->
|
||||||
{{ if isset .Params "categories" }}
|
{{ if isset .Params "categories" }}
|
||||||
{{ $total := len .Params.categories }}
|
{{ $total := len .Params.categories }}
|
||||||
|
@ -22,7 +29,7 @@
|
||||||
{{ $total := len .Params.tags }}
|
{{ $total := len .Params.tags }}
|
||||||
{{ if gt $total 0 }}
|
{{ if gt $total 0 }}
|
||||||
<br/>
|
<br/>
|
||||||
{{ $subtotal := sub $total 1 }} <i class="fa fa-tags" aria-hidden="true"></i>
|
{{ $subtotal := sub $total 1 }} <i class="fas fa-tags"></i>
|
||||||
{{ range $i, $tag := sort $.Params.tags }}
|
{{ range $i, $tag := sort $.Params.tags }}
|
||||||
<a class="meta" href="{{ "/tags/" | relURL }}{{ $tag | urlize }}">{{ $tag | lower }}</a>{{ if lt $i $subtotal }} {{ end }}
|
<a class="meta" href="{{ "/tags/" | relURL }}{{ $tag | urlize }}">{{ $tag | lower }}</a>{{ if lt $i $subtotal }} {{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -56,11 +56,11 @@ code
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: .85em;
|
font-size: .9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
padding:.15em .3em;
|
padding:.20em .2em .10em;
|
||||||
background: #272932!important;
|
background: #272932!important;
|
||||||
color: #ececec!important;
|
color: #ececec!important;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -82,3 +82,7 @@ img.center
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
/* Changing from font-awesome 4 to 5, the class pull-right was removed */
|
||||||
|
.pull-right {
|
||||||
|
float: right;
|
||||||
|
}
|
Loading…
Reference in a new issue