Update single.html
This commit is contained in:
parent
5896d295f7
commit
76e10bce67
@ -12,110 +12,8 @@
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{{- if (.Param "isapage")}}
|
|
||||||
<article class="post-single">
|
|
||||||
<div style="display: flex; align-items: center; margin-bottom: 20px;" class="contenaire">
|
|
||||||
|
|
||||||
|
|
||||||
<header class="post-header">
|
|
||||||
{{ partial "breadcrumbs.html" . }}
|
|
||||||
<h1 class="post-title">
|
|
||||||
{{ .Title }}
|
|
||||||
{{- if .Draft }}<sup><span class="entry-isdraft"> [draft]</span></sup>{{- end }}
|
|
||||||
</h1>
|
|
||||||
{{- if .Description }}
|
|
||||||
<div class="post-description">
|
|
||||||
{{ .Description }}
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
||||||
{{- if not (.Param "hideMeta") }}
|
|
||||||
{{- if (.Param "ShowToc") }}
|
|
||||||
{{- partial "toc.html" . }}
|
|
||||||
{{- end }}
|
|
||||||
<div class="post-meta">
|
|
||||||
{{- partial "post_meta.html" . -}}
|
|
||||||
{{- partial "translation_list.html" . -}}
|
|
||||||
{{- partial "edit_post.html" . -}}
|
|
||||||
{{- partial "post_canonical.html" . -}}
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
||||||
</header>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{- if (.Param "ShowToc") }}
|
|
||||||
{{- partial "toc.html" . }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
|
|
||||||
{{- if .Description }}
|
|
||||||
<div class="post-description">
|
|
||||||
{{ .Description }}
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{- if (.Param "curriculum") }}
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.main {
|
|
||||||
max-width: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (hover: none) and (pointer: coarse){
|
|
||||||
|
|
||||||
.main {
|
|
||||||
max-width: 100%;
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
|
|
||||||
{{- if not (.Param "english") }}
|
|
||||||
<iframe id="iFrame1" src="/cv-template" width="150%" onload='javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+"px";}(this));' style="height:200px;width:100%;border:none;overflow:hidden;"></iframe>
|
|
||||||
{{- else }}
|
|
||||||
<iframe id="iFrame1" src="/en/cv-template/index.en.html" width="150%" onload='javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+"px";}(this));' style="height:200px;width:100%;border:none;overflow:hidden;"></iframe>
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- if .Content }}
|
|
||||||
<div class="post-content">
|
|
||||||
{{- if not (.Param "disableAnchoredHeadings") }}
|
|
||||||
{{- partial "anchored_headings.html" .Content -}}
|
|
||||||
{{- else }}{{ .Content }}{{ end }}
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
<footer class="post-footer">
|
|
||||||
{{- if .Params.tags }}
|
|
||||||
<ul class="post-tags">
|
|
||||||
{{- range ($.GetTerms "tags") }}
|
|
||||||
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
|
||||||
{{- end }}
|
|
||||||
</ul>
|
|
||||||
{{- end }}
|
|
||||||
{{- if (.Param "ShowPostNavLinks") }}
|
|
||||||
{{- partial "post_nav_links.html" . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
|
|
||||||
{{- partial "share_icons.html" . -}}
|
|
||||||
{{- end }}
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
{{- if (.Param "comments") }}
|
|
||||||
{{- partial "comments.html" . }}
|
|
||||||
{{- end }}
|
|
||||||
</article>
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- if not (.Param "isapage") }}
|
|
||||||
<article class="post-single">
|
<article class="post-single">
|
||||||
<div style="display: flex; align-items: center; margin-bottom: 20px;" class="contenaire">
|
<div style="display: flex; align-items: center; margin-bottom: 20px;" class="contenaire">
|
||||||
<div style="width: 30%;">
|
<div style="width: 30%;">
|
||||||
@ -182,6 +80,6 @@
|
|||||||
{{- partial "comments.html" . }}
|
{{- partial "comments.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</article>
|
</article>
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- end }}{{/* end main */}}
|
{{- end }}{{/* end main */}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user