use vercel

This commit is contained in:
mivinci 2021-07-18 18:54:56 +08:00
parent 063f2bb49a
commit 9fd4150509
6 changed files with 18 additions and 15 deletions

View file

@ -1,30 +1,31 @@
baseURL = "http://example.org" baseURL = "http://h.xjj.pub"
languageCode = "en-us" languageCode = "en-us"
title = "Hi Folks" title = "Hi Folks"
copyright = "© Copyright notice" copyright = "© Copyright notice"
theme = "minima" theme = "minima"
paginate = 5 paginate = 5
googleAnalytics = "" googleAnalytics = ""
disqusShortname = "" disqusShortname = "hugo-minima"
[author] [author]
name = "XJJ" name = "XJJ"
slogon = "A student and web developer from Earth 🌍" 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! 😁" 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] [params]
subtitle = "" subtitle = ""
recent_posts = 5 recent_posts = 5
[[params.social]] [[params.social]]
name = "github" name = "github"
url = "" url = "https://github.com/mivinci"
[[params.social]] [[params.social]]
name = "linkedin" name = "linkedin"
url = "" url = "https://linkedin/in/leonard-mivinci-63895317a"
[[params.social]] [[params.social]]
name = "twitter" name = "twitter"
url = "" url = "https://twitter.com/Leonard14733745"
[[params.social]] [[params.social]]
name = "rss" name = "rss"
url = "/index.xml" url = "/index.xml"
@ -53,7 +54,7 @@ category = "categories"
tag = "tags" tag = "tags"
series = "series" series = "series"
# Better not edit this
[markup.highlight] [markup.highlight]
lineNos = true lineNos = true
noClasses = false noClasses = false

View file

@ -3,9 +3,7 @@ author = "Hugo Authors"
title = "Emoji Support" title = "Emoji Support"
date = "2021-07-18T10:52:59+08:00" date = "2021-07-18T10:52:59+08:00"
description = "Guide to emoji usage in Hugo" description = "Guide to emoji usage in Hugo"
tags = [ comment = true
"emoji",
]
+++ +++
Emoji can be enabled in a Hugo project in a number of ways. Emoji can be enabled in a Hugo project in a number of ways.

View file

@ -17,7 +17,7 @@
{{ if or .Params.math .Site.Params.math }} {{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }} {{ partial "math.html" . }}
{{ end }} {{ end }}
{{ if .Params.disqus }} {{ if .Params.comment }}
{{ partial "disqus.html" . }} {{ partial "disqus.html" . }}
{{ end }} {{ end }}
{{ end }} {{ end }}

View file

@ -1,4 +1,4 @@
<div id="disqus_thread"></div> <div id="disqus_thread" class="mt-2"></div>
<script type="text/javascript"> <script type="text/javascript">
(function () { (function () {
// Don't ever inject Disqus on localhost--it creates unwanted // Don't ever inject Disqus on localhost--it creates unwanted

View file

@ -20,10 +20,10 @@
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap" <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap"
rel="stylesheet"> rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/normalize.css"> <link rel="stylesheet" href="https://unpkg.com/normalize.css">
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}/css/main.css" /> <link rel="stylesheet" type="text/css" media="screen" href="/css/main.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}/css/md.css" /> <link rel="stylesheet" type="text/css" media="screen" href="/css/md.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}/css/syntax.css" /> <link rel="stylesheet" type="text/css" media="screen" href="/css/syntax.css" />
<script src="{{ .Site.BaseURL }}/js/main.js"></script> <script src="/js/main.js"></script>
</head> </head>
<script> <script>
try { try {

View file

@ -101,14 +101,17 @@ main {
.gap-1 { .gap-1 {
gap: 1rem; gap: 1rem;
row-gap: 1rem;
} }
.gap-2 { .gap-2 {
gap: 2rem; gap: 2rem;
row-gap: 2rem;
} }
.gap-3 { .gap-3 {
gap: 3rem; gap: 3rem;
row-gap: 3rem;
} }
.lg-1 { .lg-1 {
@ -182,6 +185,7 @@ main {
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
gap: 0; gap: 0;
row-gap: 0;
} }
.al-c-mob { .al-c-mob {