mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
fc6168c467
* 'master' of github.com:rhazdon/hugo-theme-hello-friend-ng: (129 commits) Update LICENSE.md Update LICENSE.md fix typo added additional font-display configuration Added font-display: auto to _fonts.scss Add pre scrollbar custom like hermit Small fix on name of language sass: make logo font monospaced icons: add Telegram icon sass: fix h1 position Add translations and support for pt-br. Set correct theme color after page is loaded Better multilingual support: absURL -> absLangURL Fix menu items are not clickable on smart devices sometimes Added spanish support for flag and translation switching to RelPermalink instead of Permalink for JS and CSS files Adding media query for reduced motion to turn off animation in that case Add main tag in homepage Rename css in pipeline Fix assets generation path ... Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
59 lines
2.5 KiB
HTML
59 lines
2.5 KiB
HTML
{{ define "main" }}
|
|
<main class="post">
|
|
|
|
<div class="post-info">
|
|
{{ if .IsTranslated }}
|
|
{{ i18n "postAvailable" }}
|
|
{{ range .Translations }}
|
|
<a href="{{ .Permalink }}"><span class="flag flag-icon flag-icon-{{ index $.Site.Data.langFlags (.Lang) }} flag-icon-squared"></span></a>
|
|
{{ end}}
|
|
{{ end }}
|
|
</p>
|
|
</div>
|
|
|
|
<article>
|
|
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
|
|
|
{{- if .Params.toc }}
|
|
<hr />
|
|
<aside id="toc">
|
|
<div class="toc-title">{{ i18n "tableOfContents" }}</div>
|
|
{{ .TableOfContents }}
|
|
</aside>
|
|
<hr />
|
|
{{- end }}
|
|
|
|
{{ with .Params.Cover }}
|
|
<img src="/img/{{ . }}" class="post-cover" />
|
|
{{ end }}
|
|
|
|
<div class="post-content">
|
|
{{ .Content }}
|
|
</div>
|
|
</article>
|
|
|
|
<hr />
|
|
|
|
<div class="post-info">
|
|
{{- with .Params.tags }}
|
|
<p>
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-tag meta-icon"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7" y2="7"></line></svg>
|
|
{{- range . -}}
|
|
<span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{.}}</a></span>
|
|
{{- end }}
|
|
</p>
|
|
{{- end }}
|
|
|
|
{{- if .GitInfo }}
|
|
<p><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-git-commit"><circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line></svg><a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank" rel="noopener">{{ .GitInfo.AbbreviatedHash }}</a> @ {{ if .Site.Params.dateformNum }}{{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }}{{ else }}{{ dateFormat "2006-01-02" .GitInfo.AuthorDate.Local }}{{ end }}</p>
|
|
{{- end }}
|
|
</div>
|
|
|
|
{{ if .Params.comments }}
|
|
<div id="comments" class="thin">
|
|
{{- partial "comments.html" . -}}
|
|
</div>
|
|
{{ end }}
|
|
</main>
|
|
{{ end }}
|