layouts: reset to theme versions

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-07-14 18:56:54 +05:30
parent 0ae39df5df
commit 11715fcfd1
3 changed files with 12 additions and 8 deletions

View File

@ -13,7 +13,14 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Twitter -->
{{ partial "social_metadata.html" . }}
{{ if isset .Site.Params "twitter" }}
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta name="twitter:description" content="{{ if .IsHome }}{{ htmlEscape .Site.Params.description }}{{ else }}{{ htmlEscape .Description }}{{ end }}"
/>
<meta name="twitter:site" content="@{{ .Site.Params.twitter }}" />
<meta name="twitter:creator" content="@{{ .Site.Params.twitter }}" />
{{ end }}
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />

View File

@ -19,11 +19,8 @@
{{ partial "math.html" . }}
{{ end }}
</article>
{{ partial "tags.html" .}}
{{ if and .Site.Params.CommentoURL (and (not .Site.BuildDrafts) (not .Site.IsServer)) -}}
{{ partialCached "commento.html" . }}
{{- end }}
{{ partial "post-pagination.html" .}}
{{ partial "tags.html" .}} {{ partial "post-pagination.html" .}}
{{ template "_internal/disqus.html" . }}
<footer class="post__footer">
{{ partial "social-icons.html" .}}
<p>{{ replace .Site.Copyright "{year}" now.Year }}</p>

View File

@ -1,7 +1,7 @@
<ul class="tags__list">
{{ range $category, $value := $.Site.Taxonomies.categories }}
{{ range $tag, $value := $.Site.Taxonomies.tags }}
<li class="tag__item">
<a class="tag__link" href="{{ "/categories/" | relLangURL}}{{ $category | urlize }}">{{ $category | urlize }} ({{ len $value }})</a>
<a class="tag__link" href="{{ "/tags/" | relLangURL}}{{ $tag | urlize }}">{{ $tag | urlize }} ({{ len $value }})</a>
</li>
{{ end }}
</ul>