From a719439e4c6633f9bacbbdb060ae986d37b41799 Mon Sep 17 00:00:00 2001 From: Andries Date: Sun, 23 May 2021 17:16:16 +0200 Subject: #93 add 'extended_head.html' partial --- archetypes/default.md | 6 +++--- exampleSite/layouts/partials/extended_head.html | 2 ++ layouts/partials/extended_head.html | 4 ++++ layouts/partials/head.html | 3 +++ 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 exampleSite/layouts/partials/extended_head.html create mode 100644 layouts/partials/extended_head.html diff --git a/archetypes/default.md b/archetypes/default.md index f8184fe..d1ef720 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,12 +1,12 @@ --- title: "" -date: +date: description: "" tags: [] featured_image: "" # images is optional, but needed for showing Twitter Card images: [] -categories: -comment : true +categories: +comment: true draft: true --- diff --git a/exampleSite/layouts/partials/extended_head.html b/exampleSite/layouts/partials/extended_head.html new file mode 100644 index 0000000..102c371 --- /dev/null +++ b/exampleSite/layouts/partials/extended_head.html @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/layouts/partials/extended_head.html b/layouts/partials/extended_head.html new file mode 100644 index 0000000..5fea31d --- /dev/null +++ b/layouts/partials/extended_head.html @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index dac390a..d17e57c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -127,4 +127,7 @@ $( {{ end }} + +{{- partial "extended_head.html" . }} + -- cgit v1.2.3 From 6484ed379fc1b87dcfd32816f48619561a280139 Mon Sep 17 00:00:00 2001 From: amazingrise <8315221+AmazingRise@users.noreply.github.com> Date: Tue, 6 Jul 2021 10:50:42 +0800 Subject: Anti spam --- README.md | 2 +- layouts/partials/journal.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c04ad57..9586a01 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ![](https://img.shields.io/badge/license-MIT-blue.svg) ![](https://img.shields.io/badge/version-1.3.0-brightgreen) -[✨Live Demo✨](https://amazingrise.net/) - +[My Blog with ✨Theme Diary✨](https://amazingrise.net/) - [Intro Video](https://www.bilibili.com/video/av84273002) - [Progress](https://github.com/AmazingRise/hugo-theme-diary/projects/) - [Wiki](https://github.com/amazingrise/hugo-theme-diary/wiki) diff --git a/layouts/partials/journal.html b/layouts/partials/journal.html index 32d917b..5480a60 100644 --- a/layouts/partials/journal.html +++ b/layouts/partials/journal.html @@ -259,6 +259,7 @@ app = new Vue({ new Waline({ el: '#waline', path: location.pathname, + requiredFields: ['nick','mail'], serverURL: {{.Site.Params.walineServer}} , }); {{ end }} -- cgit v1.2.3 From e5f880cc301a20658946831f7b99776a826636ef Mon Sep 17 00:00:00 2001 From: Flex Zhong Date: Wed, 11 Aug 2021 14:16:43 +0800 Subject: fix a link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9586a01..5afc3d4 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ See [/exampleSite/config.toml](https://github.com/AmazingRise/hugo-theme-diary/b * [Table Of Contents](https://github.com/AmazingRise/hugo-theme-diary/wiki/Table-Of-Contents) * [Enable/Disable Comment](https://github.com/AmazingRise/hugo-theme-diary/wiki/Comment-Area) - 3rd. party services - * [Comment Services](https://github.com/AmazingRise/hugo-theme-diary/wiki/Comment-Area) + * [Comment Services](https://github.com/AmazingRise/hugo-theme-diary/wiki/Comment) * [Google Analytics](https://github.com/AmazingRise/hugo-theme-diary/wiki/Customization#add-google-analytics) * [Google Site Verification](https://github.com/AmazingRise/hugo-theme-diary/wiki/Customization#add-google-site-verification) * [Google Search Intergration](https://github.com/AmazingRise/hugo-theme-diary/wiki/Customization#add-google-search-box-on-your-site) -- cgit v1.2.3 From 5d410758b6e55467b4adbb65fcbab5495f195607 Mon Sep 17 00:00:00 2001 From: amazingrise <8315221+AmazingRise@users.noreply.github.com> Date: Sat, 14 Aug 2021 02:59:33 +0800 Subject: Update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9586a01..a5fac2c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ![](https://img.shields.io/badge/license-MIT-blue.svg) ![](https://img.shields.io/badge/version-1.3.0-brightgreen) -[My Blog with ✨Theme Diary✨](https://amazingrise.net/) - +[My Blog with ✨Theme Diary✨](https://risehere.net/) - [Intro Video](https://www.bilibili.com/video/av84273002) - [Progress](https://github.com/AmazingRise/hugo-theme-diary/projects/) - [Wiki](https://github.com/amazingrise/hugo-theme-diary/wiki) -- cgit v1.2.3 From 080ce96f38441278401e9c3d28c15ab35e73ff79 Mon Sep 17 00:00:00 2001 From: jossemargt Date: Thu, 14 Oct 2021 00:49:57 -0600 Subject: Fix nav-title URL when i18n is enable Turns out when you enable i18n using diary theme, the link on the "navigation title" always pointed to the site URL instead of the language base url. --- layouts/partials/mobile-header.html | 4 ++-- layouts/partials/sidebar.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/mobile-header.html b/layouts/partials/mobile-header.html index 61a582c..ad59cda 100644 --- a/layouts/partials/mobile-header.html +++ b/layouts/partials/mobile-header.html @@ -48,7 +48,7 @@ menu - + {{.Site.Title}} {{ if not .Site.Params.disableDarkMode }} @@ -62,7 +62,7 @@