From 9fd41505095cf5d9f421235284b32405f411370e Mon Sep 17 00:00:00 2001 From: mivinci <1366723936@qq.com> Date: Sun, 18 Jul 2021 18:54:56 +0800 Subject: [PATCH] use vercel --- exampleSite/config.toml | 13 +++++++------ exampleSite/content/emoji-support.md | 4 +--- layouts/_default/single.html | 2 +- layouts/partials/disqus.html | 2 +- layouts/partials/head.html | 8 ++++---- static/css/main.css | 4 ++++ 6 files changed, 18 insertions(+), 15 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f6c884f..96e62a9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,30 +1,31 @@ -baseURL = "http://example.org" +baseURL = "http://h.xjj.pub" languageCode = "en-us" title = "Hi Folks" copyright = "© Copyright notice" theme = "minima" paginate = 5 googleAnalytics = "" -disqusShortname = "" +disqusShortname = "hugo-minima" [author] name = "XJJ" slogon = "A student and web developer from Earth 🌍" description = "This is Minima, a clean and minimal Hugo theme porting from Minima on Hexo. It not only inherits everything from Hexo Minima like dark/light mode but intgrated KaTeX and some taxonomies like categories, series and tags. I created this from scratch using pure CSS and Vanilla JS without using unnecessary development packs! 😁" + [params] subtitle = "" recent_posts = 5 [[params.social]] name = "github" -url = "" +url = "https://github.com/mivinci" [[params.social]] name = "linkedin" -url = "" +url = "https://linkedin/in/leonard-mivinci-63895317a" [[params.social]] name = "twitter" -url = "" +url = "https://twitter.com/Leonard14733745" [[params.social]] name = "rss" url = "/index.xml" @@ -53,7 +54,7 @@ category = "categories" tag = "tags" series = "series" -# Better not edit this + [markup.highlight] lineNos = true noClasses = false diff --git a/exampleSite/content/emoji-support.md b/exampleSite/content/emoji-support.md index 2ae067d..3908939 100644 --- a/exampleSite/content/emoji-support.md +++ b/exampleSite/content/emoji-support.md @@ -3,9 +3,7 @@ author = "Hugo Authors" title = "Emoji Support" date = "2021-07-18T10:52:59+08:00" description = "Guide to emoji usage in Hugo" -tags = [ - "emoji", -] +comment = true +++ Emoji can be enabled in a Hugo project in a number of ways. diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 330373e..53d315e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -17,7 +17,7 @@ {{ if or .Params.math .Site.Params.math }} {{ partial "math.html" . }} {{ end }} -{{ if .Params.disqus }} +{{ if .Params.comment }} {{ partial "disqus.html" . }} {{ end }} {{ end }} diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html index 14de1c0..b739aae 100644 --- a/layouts/partials/disqus.html +++ b/layouts/partials/disqus.html @@ -1,4 +1,4 @@ -
+
+ + + +