From 59800f50e28d84ac3fc90005bb611f3c4ca52f9c Mon Sep 17 00:00:00 2001 From: zzossig Date: Mon, 10 Feb 2020 23:11:01 +0900 Subject: [PATCH] when javascript blocked, hide post contents --- i18n/en.toml | 5 ++++- i18n/fa.toml | 2 ++ i18n/ko.toml | 3 +++ i18n/zh.toml | 5 ++++- layouts/_default/baseof.html | 2 +- layouts/_default/single.html | 6 +++++- layouts/partials/body/breadcrumb.html | 3 ++- layouts/partials/body/main-left.html | 3 ++- layouts/partials/body/main-right.html | 3 ++- layouts/partials/comments/livere.html | 3 +-- layouts/partials/sidebar/sidebar-single.html | 3 ++- 11 files changed, 28 insertions(+), 10 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index d8ea4c3..670ff48 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -92,4 +92,7 @@ other = "Reading Time" other = "Overview" [showcase-pinned] -other = "Pinned" \ No newline at end of file +other = "Pinned" + +[nojs-message] +other = "Please enable Javascript to view the contents" \ No newline at end of file diff --git a/i18n/fa.toml b/i18n/fa.toml index 55926ca..98adc40 100644 --- a/i18n/fa.toml +++ b/i18n/fa.toml @@ -94,3 +94,5 @@ other = "بررسی اجمالی" [showcase-pinned] other = "پین شده" +[nojs-message] +other = "Please enable Javascript to view the contents" \ No newline at end of file diff --git a/i18n/ko.toml b/i18n/ko.toml index 0ee7779..c9a0bf0 100644 --- a/i18n/ko.toml +++ b/i18n/ko.toml @@ -93,3 +93,6 @@ other = "개요" [showcase-pinned] other = "고정" + +[nojs-message] +other = "내용을 보시려면 자바스크립트를 활성화 해주세요" \ No newline at end of file diff --git a/i18n/zh.toml b/i18n/zh.toml index 214dc95..4923aea 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -92,4 +92,7 @@ other = "阅读时长" other = "总览" [showcase-pinned] -other = "固定" \ No newline at end of file +other = "固定" + +[nojs-message] +other = "Please enable Javascript to view the contents" \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b83bd47..d8bcecd 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,7 +3,7 @@ - + {{ block "title" . }}{{ .Title }} – {{ .Site.Title }}{{ end }} {{ partial "head/scripts" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9d64e00..c50cd26 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,11 @@ {{ if $.Param "enableBreadcrumb" }} {{ partial "body/breadcrumb" . }} {{ end }} -
+ +
+

{{ .Title }}

{{ partial "body/infos" . }} diff --git a/layouts/partials/body/breadcrumb.html b/layouts/partials/body/breadcrumb.html index f00cec0..4d36ff2 100644 --- a/layouts/partials/body/breadcrumb.html +++ b/layouts/partials/body/breadcrumb.html @@ -1,4 +1,5 @@ -