🎨 Finish folder structure redesign and add some scripts.
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
{{- end }}
|
||||
</li>
|
||||
<li class="post-copyright-link">
|
||||
{{- if isset .Params "originlink" }}
|
||||
{{- if isset .Params "link" }}
|
||||
<strong>{{ print (T "PostCROriginLink") (T "SymbolColon") }} </strong>
|
||||
<a target="_blank" href="{{ .Params.OriginLink }}" title="{{ .Title }}">{{ .Params.OriginLink }}</a>
|
||||
<a target="_blank" href="{{ .Params.OriginLink }}" title="{{ .Title }}">{{ .Params.Link }}</a>
|
||||
{{- else }}
|
||||
<strong>{{ print (T "PostCRLink") (T "SymbolColon") }}</strong>
|
||||
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Permalink }}</a>
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
</span>
|
||||
{{- end }}
|
||||
{{- if $.IsHome }}
|
||||
{{- if and (isset .Params "link") (ne .Params.Link "") }}
|
||||
<a href="{{ .Params.Link }}" rel="noopener external nofollow noreferrer" target="_blank" class="exturl post-title-link post-title-link-external">
|
||||
{{- if and (isset .Params "extlink") (ne .Params.Extlink "") }}
|
||||
<a href="{{ .Params.Extlink }}" rel="noopener external nofollow noreferrer" target="_blank" class="exturl post-title-link post-title-link-external">
|
||||
{{ .Title }}
|
||||
<i class="fa fa-external-link-alt"></i>
|
||||
</a>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{{- if .Site.Params.postMeta.created }}
|
||||
{{ $timeF := .Site.Params.timeFormat }}
|
||||
{{ $createdTime := (.Date.Format $timeF) | default (.PublishDate.Format $timeF) }}
|
||||
{{ $createdTime := (.Date.Format $timeF) | default (.Date.Format $timeF) }}
|
||||
<span class="post-meta-item">
|
||||
<span class="post-meta-item-icon">
|
||||
<i class="far fa-calendar"></i>
|
||||
</span>
|
||||
<span class="post-meta-item-text">{{- print (T "PostPublishDate") (T "SymbolColon") -}}</span>
|
||||
<time title="{{ print (T "PostPublishDate") (T "SymbolColon") }}{{ .PublishDate }}" itemprop="dateCreated datePublished" datetime="{{ .PublishDate }}">
|
||||
{{- .PublishDate.Format .Site.Params.dateFormat -}}
|
||||
<time title="{{ print (T "PostPublishDate") (T "SymbolColon") }}{{ .Date }}" itemprop="dateCreated datePublished" datetime="{{ .Date }}">
|
||||
{{- .Date.Format .Site.Params.dateFormat -}}
|
||||
</time>
|
||||
</span>
|
||||
{{- end }}
|
||||
@@ -1,5 +1,5 @@
|
||||
{{- if and .Site.Params.postMeta.updated.enable .Site.Params.postMeta.updated.anotherDay }}
|
||||
{{- if and .Lastmod (gt .Lastmod .PublishDate) }}
|
||||
{{- if and .Lastmod (gt .Lastmod .Date) }}
|
||||
{{ $modTime := .Lastmod.Format .Site.Params.timeFormat }}
|
||||
<span class="post-meta-item">
|
||||
<span class="post-meta-item-icon">
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
|
||||
<div class="post-block">
|
||||
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="{{ .Scratch.Get "lang" }}">
|
||||
|
||||
{{ partial "post/header.html" (dict "ctx" .ctx "IsHome" .IsHome) }}
|
||||
<!-- POST BODY -->
|
||||
{{ partial "post/body.html" (dict "ctx" .ctx "IsHome" .IsHome) }}
|
||||
<footer class="post-footer">
|
||||
{{ partial "post/footer.html" (dict "ctx" .ctx "IsHome" .IsHome) }}
|
||||
</footer>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
<div class="collection-year">
|
||||
<span class="collection-header">{{ .Key }}</span>
|
||||
</div>
|
||||
{{ range .Pages }}
|
||||
<article itemscope itemtype="http://schema.org/Article">
|
||||
<header class="post-header">
|
||||
<div class="post-meta-container">
|
||||
{{ $month := .Date.Format .Site.Params.monthFormat }}
|
||||
<time itemprop="dateCreated" datetime="{{ .Date.Format .Site.Params.timeFormat }}" content="{{ $month }}">
|
||||
{{ $month }}
|
||||
</time>
|
||||
</div>
|
||||
<div class="post-title">
|
||||
{{- if isset .Params "extlink" }}
|
||||
<a href="{{ .Params.extlink }}" rel="noopener external nofollow noreferrer" target="_blank" class="exturl post-title-link post-title-link-external" title="">
|
||||
<span itemprop="name">{{- .Title -}}</span>
|
||||
<i class="fa fa-external-link-alt"></i>
|
||||
</a>
|
||||
{{- else }}
|
||||
<a class="post-title-link" href="{{ .Permalink }}" itemprop="url">
|
||||
<span itemprop="name">{{ .Title }}</span>
|
||||
</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
</header>
|
||||
</article>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user