Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ <h2 class="read-more">{{ i18n "readMore" }}</h2>
{{ $date := dateFormat "Jan 2, 2006" .Date }}
<section class="item">
<div>
<h1 class="title"><a href='{{ .RelPermalink }}'>{{ $title }}</a></h1>
{{ if isset .Params "externallink" }}
<h1 class="title"><a href="{{ .Params.externallink }}" target="_blank">{{ $title }} <i class="fas fa-external-link-alt"></i></a></h1>
{{else}}
<h1 class="title"><a href='{{ .RelPermalink }}'>{{ $title }}</a></h1>
{{ end }}
<div class="date">{{ $date }}</div>
</div>
</section>
Expand Down
14 changes: 10 additions & 4 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ <h3 class="key">
<time datetime="{{ .PublishDate }}">{{ i18n "publishDateShort" . }}</time>
</div>
<div class="title">
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
{{ if isset .Params "externallink" }}
<a href="{{ .Params.externallink }}" target="_blank">
{{ .Title }} <i class="fas fa-external-link-alt"></i>
</a>
{{else}}
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
{{ end }}

{{ with .Params.tags }}
<div class="tags">
Expand All @@ -35,4 +41,4 @@ <h3 class="key">
</section>


{{ end }}
{{ end }}
14 changes: 10 additions & 4 deletions layouts/_default/taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ <h3 class="key">
<time datetime="{{ .PublishDate }}">{{ i18n "publishDateShort" . }}</time>
</div>
<div class="title">
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
{{ if isset .Params "externallink" }}
<a href="{{ .Params.externallink }}" target="_blank">
{{ .Title }} <i class="fas fa-external-link-alt"></i>
</a>
{{else}}
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
{{ end }}

{{ with .Params.tags }}
<div class="tags">
Expand All @@ -38,4 +44,4 @@ <h3 class="key">
</section>


{{ end }}
{{ end }}
12 changes: 8 additions & 4 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
{{ $title := .Title }}
{{ $summary := .Summary }}
<section class="item">
<div>
<h1 class="title"><a href='{{ .RelPermalink }}'>{{ $title }}</a></h1>
<div class ="date">
<div>
{{ if isset .Params "externallink" }}
<h1 class="title"><a href="{{ .Params.externallink }}" target="_blank">{{ $title }} <i class="fas fa-external-link-alt"></i></a></h1>
{{else}}
<h1 class="title"><a href='{{ .RelPermalink }}'>{{ $title }}</a></h1>
{{ end }}
<div class ="date">
<time datetime="{{ .PublishDate }}">{{ i18n "publishDate" . }}</time>
</div>
</div>
</div>

{{ if ne .Site.Params.hiddenPostSummaryInHomePage true }}
<div class="summary">{{ $summary | plainify | htmlUnescape }}</div>
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{{ end }}

<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add font-awesome ?


{{ range .Site.Params.customCSS }}
{{ if ( or ( hasPrefix . "http://" ) ( hasPrefix . "https://" ) ) }}
Expand All @@ -37,4 +38,4 @@
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }}
{{ end }}
{{ end }}