when javascript blocked, hide post contents
This commit is contained in:
parent
cd89d9feb7
commit
59800f50e2
|
@ -92,4 +92,7 @@ other = "Reading Time"
|
|||
other = "Overview"
|
||||
|
||||
[showcase-pinned]
|
||||
other = "Pinned"
|
||||
other = "Pinned"
|
||||
|
||||
[nojs-message]
|
||||
other = "Please enable Javascript to view the contents"
|
|
@ -94,3 +94,5 @@ other = "بررسی اجمالی"
|
|||
[showcase-pinned]
|
||||
other = "پین شده"
|
||||
|
||||
[nojs-message]
|
||||
other = "Please enable Javascript to view the contents"
|
|
@ -93,3 +93,6 @@ other = "개요"
|
|||
|
||||
[showcase-pinned]
|
||||
other = "고정"
|
||||
|
||||
[nojs-message]
|
||||
other = "내용을 보시려면 자바스크립트를 활성화 해주세요"
|
|
@ -92,4 +92,7 @@ other = "阅读时长"
|
|||
other = "总览"
|
||||
|
||||
[showcase-pinned]
|
||||
other = "固定"
|
||||
other = "固定"
|
||||
|
||||
[nojs-message]
|
||||
other = "Please enable Javascript to view the contents"
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<head prefix="og: http://ogp.me/ns#">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{{ block "title" . }}{{ .Title }} – {{ .Site.Title }}{{ end }}</title>
|
||||
{{ partial "head/scripts" . }}
|
||||
|
|
|
@ -4,7 +4,11 @@
|
|||
{{ if $.Param "enableBreadcrumb" }}
|
||||
{{ partial "body/breadcrumb" . }}
|
||||
{{ end }}
|
||||
<div class="single">
|
||||
<noscript>
|
||||
{{ i18n "nojs-message" }}
|
||||
</noscript>
|
||||
<div class="single hide">
|
||||
<script>document.querySelector('.single').classList.remove('hide')</script>
|
||||
<h2 class="single__title">{{ .Title }}</h2>
|
||||
<div class="single__meta">
|
||||
{{ partial "body/infos" . }}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<nav class="breadcrumb" aria-label="breadcrumbs">
|
||||
<nav class="breadcrumb hide" aria-label="breadcrumbs">
|
||||
<script>document.querySelector('.breadcrumb').classList.remove('hide')</script>
|
||||
<ol>
|
||||
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
||||
</ol>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{{ if eq ($.Param "languagedir") "rtl" }}
|
||||
<div class="wrapper__left" dir="rtl">
|
||||
<div class="wrapper__left hide" dir="rtl">
|
||||
<script>document.querySelector('.wrapper__left').classList.remove('hide')</script>
|
||||
{{ if and (eq ($.Param "tocPosition") "outer") .IsPage }}
|
||||
{{ if and (ne .Type "about") (ne .Type "contact") (ne .Type "gallery") }}
|
||||
{{ if or ($.Param "enableToc") ($.Param "toc") }}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{{ if ne ($.Param "languagedir") "rtl" }}
|
||||
<div class="wrapper__right" dir="ltr">
|
||||
<div class="wrapper__right hide" dir="ltr">
|
||||
<script>document.querySelector('.wrapper__right').classList.remove('hide')</script>
|
||||
{{ if and (eq ($.Param "tocPosition") "outer") .IsPage }}
|
||||
{{ if and (ne .Type "about") (ne .Type "contact") (ne .Type "gallery") }}
|
||||
{{ if or ($.Param "enableToc") ($.Param "toc") }}
|
||||
|
|
|
@ -12,6 +12,5 @@
|
|||
e.parentNode.insertBefore(j, e);
|
||||
})(document, 'script');
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the comments powered by <a
|
||||
href="https://livere.com/">LiveRe.</a></noscript>
|
||||
<noscript>Please enable JavaScript to view the comments powered by <a href="https://livere.com/">LiveRe.</a></noscript>
|
||||
</div>
|
|
@ -1,7 +1,8 @@
|
|||
{{ if $.Param "enableSidebar" }}
|
||||
{{ if and (or ($.Param "enableToc") ($.Param "toc")) (ne ($.Param "tocPosition") "outer") }}
|
||||
|
||||
<section class="sidebar">
|
||||
<section class="sidebar hide">
|
||||
<script>document.querySelector('.sidebar').classList.remove('hide')</script>
|
||||
<div class="toc__flexbox" data-position="{{ if $.Param "hideToc" }}absolute{{ else }}fixed{{ end }}">
|
||||
<h6 class="toc__title">{{ i18n "toc-label" }}</h6>
|
||||
{{ if $.Param "enableTocSwitch" }}
|
||||
|
|
Loading…
Reference in New Issue