mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-02-14 15:51:13 +01:00
Fix: remove submodule
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +0,0 @@
|
||||
[submodule "themes/hugo-theme-yue"]
|
||||
path = themes/hugo-theme-yue
|
||||
url = https://github.com/CyrusYip/hugo-theme-yue.git
|
||||
|
||||
1
public/404.html
Normal file
1
public/404.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html class=html lang=en-us dir=ltr><head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta charset=utf-8><meta name=viewport content="width=device-width"><title>404 Page not found | Freedoms4</title><link rel=stylesheet href=/css/style.css><link rel=icon href=/favicon.ico><meta property="og:url" content="http://localhost:1313/404.html"><meta property="og:site_name" content="Freedoms4"><meta property="og:title" content="404 Page not found"><meta property="og:locale" content="en_us"><meta property="og:type" content="website"><meta itemprop=name content="404 Page not found"><link rel=stylesheet href=/css/custom.css></head><body class=body><header class=header><h1>Freedoms4</h1><nav class="menu language"><ul class="menu__list language__list"><li class=menu__item><a class=menu__link href=/>Home</a></li><li class=menu__item><a class=menu__link href=/posts/>Blog</a></li><li class=menu__item><a class=menu__link href=/categories/>Categories</a></li><li class=menu__item><a class=menu__link href=/about/>About</a></li></ul></nav></header><main class=main><h1>404</h1><p>The page you visited was not found.</p><p><a href=/>Return to the home page</a></p></main><footer class=footer><p class=footer__copyright-notice>© 2025</p><p class=footer__theme-info>Built with <a href=https://gohugo.io>Hugo</a> and <a href=https://github.com/CyrusYip/hugo-theme-yue>Yue</a></p></footer></body></html>
|
||||
1
public/categories/index.html
Normal file
1
public/categories/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html class=html lang=en-us dir=ltr><head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta charset=utf-8><meta name=viewport content="width=device-width"><title>Categories | Freedoms4</title><link rel=stylesheet href=/css/style.css><link rel=icon href=/favicon.ico><meta property="og:url" content="http://localhost:1313/categories/"><meta property="og:site_name" content="Freedoms4"><meta property="og:title" content="Categories"><meta property="og:locale" content="en_us"><meta property="og:type" content="website"><meta itemprop=name content="Categories"><meta itemprop=datePublished content="2025-11-11T02:50:36+05:30"><meta itemprop=dateModified content="2025-11-11T02:50:36+05:30"><link rel=alternate type=application/rss+xml href=/categories/index.xml title=Freedoms4><link rel=stylesheet href=/css/custom.css></head><body class=body><header class=header><h1>Freedoms4</h1><nav class="menu language"><ul class="menu__list language__list"><li class=menu__item><a class=menu__link href=/>Home</a></li><li class=menu__item><a class=menu__link href=/posts/>Blog</a></li><li class=menu__item><a class=menu__link href=/categories/>Categories</a></li><li class=menu__item><a class=menu__link href=/about/>About</a></li></ul></nav></header><main class=main><div class=breadcrumbs>You are here: <a href=/>Home</a> / <span>Categories</span></div><section class=term-list><h2 class=term-list__item><a class=term-list__link href=/categories/non-tech/>Non-Tech <sup>1</sup></a></h2></section></main><footer class=footer><p class=footer__rss-link><a href=/categories/index.xml>RSS</a></p><p class=footer__copyright-notice>© 2025</p><p class=footer__theme-info>Built with <a href=https://gohugo.io>Hugo</a> and <a href=https://github.com/CyrusYip/hugo-theme-yue>Yue</a></p></footer></body></html>
|
||||
1
public/categories/index.xml
Normal file
1
public/categories/index.xml
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Categories on Freedoms4</title><link>http://localhost:1313/categories/</link><description>Recent content in Categories on Freedoms4</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 11 Nov 2025 02:50:36 +0530</lastBuildDate><atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml"/><item><title>Non-Tech</title><link>http://localhost:1313/categories/non-tech/</link><pubDate>Tue, 11 Nov 2025 02:50:36 +0530</pubDate><guid>http://localhost:1313/categories/non-tech/</guid><description/></item></channel></rss>
|
||||
4
public/categories/non-tech/index.html
Normal file
4
public/categories/non-tech/index.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<!doctype html><html class=html lang=en-us dir=ltr><head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta charset=utf-8><meta name=viewport content="width=device-width"><title>Non-Tech | Freedoms4</title><link rel=stylesheet href=/css/style.css><link rel=icon href=/favicon.ico><meta property="og:url" content="http://localhost:1313/categories/non-tech/"><meta property="og:site_name" content="Freedoms4"><meta property="og:title" content="Non-Tech"><meta property="og:locale" content="en_us"><meta property="og:type" content="website"><meta itemprop=name content="Non-Tech"><meta itemprop=datePublished content="2025-11-11T02:50:36+05:30"><meta itemprop=dateModified content="2025-11-11T02:50:36+05:30"><link rel=alternate type=application/rss+xml href=/categories/non-tech/index.xml title=Freedoms4><link rel=stylesheet href=/css/custom.css></head><body class=body><header class=header><h1>Freedoms4</h1><nav class="menu language"><ul class="menu__list language__list"><li class=menu__item><a class=menu__link href=/>Home</a></li><li class=menu__item><a class=menu__link href=/posts/>Blog</a></li><li class=menu__item><a class=menu__link href=/categories/>Categories</a></li><li class=menu__item><a class=menu__link href=/about/>About</a></li></ul></nav></header><main class=main><div class=breadcrumbs>You are here:
|
||||
<a href=/>Home</a> /
|
||||
<a href=/categories/>Categories</a> /
|
||||
<span>Non-Tech</span></div><section class=posts-list><time class=published-date datetime=2025-11-11T02:50:36+05:30>2025-11-11</time><h2 class=term-post-title><a href=/posts/first-post/>First Post</a></h2></section></main><footer class=footer><p class=footer__rss-link><a href=/categories/non-tech/index.xml>RSS</a></p><p class=footer__copyright-notice>© 2025</p><p class=footer__theme-info>Built with <a href=https://gohugo.io>Hugo</a> and <a href=https://github.com/CyrusYip/hugo-theme-yue>Yue</a></p></footer></body></html>
|
||||
1
public/categories/non-tech/index.xml
Normal file
1
public/categories/non-tech/index.xml
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Non-Tech on Freedoms4</title><link>http://localhost:1313/categories/non-tech/</link><description>Recent content in Non-Tech on Freedoms4</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 11 Nov 2025 02:50:36 +0530</lastBuildDate><atom:link href="http://localhost:1313/categories/non-tech/index.xml" rel="self" type="application/rss+xml"/><item><title>First Post</title><link>http://localhost:1313/posts/first-post/</link><pubDate>Tue, 11 Nov 2025 02:50:36 +0530</pubDate><guid>http://localhost:1313/posts/first-post/</guid><description><p>This is the first post of the site!</p></description></item></channel></rss>
|
||||
32
public/css/custom.css
Normal file
32
public/css/custom.css
Normal file
@@ -0,0 +1,32 @@
|
||||
.breadcrumbs {
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 1rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.breadcrumbs a {
|
||||
color: #3498db;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.breadcrumbs a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.term-list {
|
||||
display: block;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.term-list__item {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.term-list__link {
|
||||
color: inherit; /* inherit theme text color */
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.term-list__link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
764
public/css/style.css
Normal file
764
public/css/style.css
Normal file
@@ -0,0 +1,764 @@
|
||||
/*
|
||||
Styles are mobile-first. Desktop styles are wrapped in media queries.
|
||||
Naming convention: BEM (Block, Element, Modifier). When it's difficult to add classes, I will use tag names.
|
||||
*/
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box; }
|
||||
|
||||
.body {
|
||||
margin: 0; }
|
||||
|
||||
a {
|
||||
text-decoration: none; }
|
||||
|
||||
.menu__list,
|
||||
.translation-list,
|
||||
.pagination {
|
||||
list-style-type: none;
|
||||
padding-inline-start: 0; }
|
||||
|
||||
ul:has(> li > input[type="checkbox"]) {
|
||||
list-style-type: none;
|
||||
padding-inline-start: 1em; }
|
||||
|
||||
blockquote {
|
||||
margin: 0; }
|
||||
|
||||
.body {
|
||||
margin-left: 16px;
|
||||
margin-right: 16px; }
|
||||
|
||||
@media (min-width: 800px) {
|
||||
.body {
|
||||
width: 768px;
|
||||
margin-left: auto;
|
||||
margin-right: auto; } }
|
||||
|
||||
:root {
|
||||
--background-color: #282828;
|
||||
--background-color1: #3c3836;
|
||||
--foreground-color: #ebdbb2;
|
||||
--foreground-color3: #bdae93;
|
||||
--accent-color: #fe8019; }
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
--background-color: #fbf1c7;
|
||||
--background-color1: #ebdbb2;
|
||||
--foreground-color: #3c3836;
|
||||
--foreground-color3: #665c54;
|
||||
--accent-color: #af3a03; } }
|
||||
|
||||
.body {
|
||||
background-color: var(--background-color);
|
||||
color: var(--foreground-color); }
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: var(--foreground-color); }
|
||||
|
||||
a {
|
||||
color: var(--accent-color); }
|
||||
|
||||
.header {
|
||||
border-bottom: 1px solid var(--background-color1); }
|
||||
|
||||
.footer {
|
||||
border-top: 1px solid var(--background-color1); }
|
||||
|
||||
blockquote {
|
||||
background-color: var(--background-color1); }
|
||||
[dir=rtl] blockquote {
|
||||
border-right: 0.5rem solid var(--accent-color); }
|
||||
[dir=ltr] blockquote {
|
||||
border-left: 0.5rem solid var(--accent-color); }
|
||||
|
||||
:not(pre) > code {
|
||||
background-color: var(--background-color1); }
|
||||
|
||||
hr {
|
||||
background: var(--background-color1); }
|
||||
|
||||
table {
|
||||
background-color: var(--background-color1); }
|
||||
|
||||
td,
|
||||
th {
|
||||
border: 1px solid var(--background-color); }
|
||||
|
||||
figcaption {
|
||||
color: var(--foreground-color3); }
|
||||
|
||||
/* Background */
|
||||
.bg {
|
||||
color: #3c3836;
|
||||
background-color: #fbf1c7; }
|
||||
|
||||
/* PreWrapper */
|
||||
.chroma {
|
||||
color: #3c3836;
|
||||
background-color: #fbf1c7; }
|
||||
|
||||
/* Other */
|
||||
/* Error */
|
||||
/* CodeLine */
|
||||
/* LineLink */
|
||||
.chroma .lnlinks {
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
color: inherit; }
|
||||
|
||||
/* LineTableTD */
|
||||
.chroma .lntd {
|
||||
vertical-align: top;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0; }
|
||||
|
||||
/* LineTable */
|
||||
.chroma .lntable {
|
||||
border-spacing: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0; }
|
||||
|
||||
/* LineHighlight */
|
||||
.chroma .hl {
|
||||
background-color: #e1d8b3; }
|
||||
|
||||
/* LineNumbersTable */
|
||||
.chroma .lnt {
|
||||
white-space: pre;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
margin-right: 0.4em;
|
||||
padding: 0 0.4em 0 0.4em;
|
||||
color: #9d9b9a; }
|
||||
|
||||
/* LineNumbers */
|
||||
.chroma .ln {
|
||||
white-space: pre;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
margin-right: 0.4em;
|
||||
padding: 0 0.4em 0 0.4em;
|
||||
color: #9d9b9a; }
|
||||
|
||||
/* Line */
|
||||
.chroma .line {
|
||||
display: flex; }
|
||||
|
||||
/* Keyword */
|
||||
.chroma .k {
|
||||
color: #af3a03; }
|
||||
|
||||
/* KeywordConstant */
|
||||
.chroma .kc {
|
||||
color: #af3a03; }
|
||||
|
||||
/* KeywordDeclaration */
|
||||
.chroma .kd {
|
||||
color: #af3a03; }
|
||||
|
||||
/* KeywordNamespace */
|
||||
.chroma .kn {
|
||||
color: #af3a03; }
|
||||
|
||||
/* KeywordPseudo */
|
||||
.chroma .kp {
|
||||
color: #af3a03; }
|
||||
|
||||
/* KeywordReserved */
|
||||
.chroma .kr {
|
||||
color: #af3a03; }
|
||||
|
||||
/* KeywordType */
|
||||
.chroma .kt {
|
||||
color: #b57614; }
|
||||
|
||||
/* Name */
|
||||
/* NameAttribute */
|
||||
.chroma .na {
|
||||
color: #79740e;
|
||||
font-weight: bold; }
|
||||
|
||||
/* NameBuiltin */
|
||||
.chroma .nb {
|
||||
color: #b57614; }
|
||||
|
||||
/* NameBuiltinPseudo */
|
||||
/* NameClass */
|
||||
/* NameConstant */
|
||||
.chroma .no {
|
||||
color: #d3869b; }
|
||||
|
||||
/* NameDecorator */
|
||||
/* NameEntity */
|
||||
.chroma .ni {
|
||||
color: #b57614; }
|
||||
|
||||
/* NameException */
|
||||
.chroma .ne {
|
||||
color: #fb4934; }
|
||||
|
||||
/* NameFunction */
|
||||
.chroma .nf {
|
||||
color: #b57614; }
|
||||
|
||||
/* NameFunctionMagic */
|
||||
/* NameLabel */
|
||||
.chroma .nl {
|
||||
color: #9d0006; }
|
||||
|
||||
/* NameNamespace */
|
||||
/* NameOther */
|
||||
/* NameProperty */
|
||||
/* NameTag */
|
||||
.chroma .nt {
|
||||
color: #9d0006; }
|
||||
|
||||
/* NameVariable */
|
||||
/* NameVariableClass */
|
||||
/* NameVariableGlobal */
|
||||
/* NameVariableInstance */
|
||||
/* NameVariableMagic */
|
||||
/* Literal */
|
||||
/* LiteralDate */
|
||||
/* LiteralString */
|
||||
.chroma .s {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringAffix */
|
||||
.chroma .sa {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringBacktick */
|
||||
.chroma .sb {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringChar */
|
||||
.chroma .sc {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringDelimiter */
|
||||
.chroma .dl {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringDoc */
|
||||
.chroma .sd {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringDouble */
|
||||
.chroma .s2 {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringEscape */
|
||||
.chroma .se {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringHeredoc */
|
||||
.chroma .sh {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringInterpol */
|
||||
.chroma .si {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringOther */
|
||||
.chroma .sx {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringRegex */
|
||||
.chroma .sr {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringSingle */
|
||||
.chroma .s1 {
|
||||
color: #79740e; }
|
||||
|
||||
/* LiteralStringSymbol */
|
||||
.chroma .ss {
|
||||
color: #076678; }
|
||||
|
||||
/* LiteralNumber */
|
||||
.chroma .m {
|
||||
color: #8f3f71; }
|
||||
|
||||
/* LiteralNumberBin */
|
||||
.chroma .mb {
|
||||
color: #8f3f71; }
|
||||
|
||||
/* LiteralNumberFloat */
|
||||
.chroma .mf {
|
||||
color: #8f3f71; }
|
||||
|
||||
/* LiteralNumberHex */
|
||||
.chroma .mh {
|
||||
color: #8f3f71; }
|
||||
|
||||
/* LiteralNumberInteger */
|
||||
.chroma .mi {
|
||||
color: #8f3f71; }
|
||||
|
||||
/* LiteralNumberIntegerLong */
|
||||
.chroma .il {
|
||||
color: #8f3f71; }
|
||||
|
||||
/* LiteralNumberOct */
|
||||
.chroma .mo {
|
||||
color: #8f3f71; }
|
||||
|
||||
/* Operator */
|
||||
.chroma .o {
|
||||
color: #af3a03; }
|
||||
|
||||
/* OperatorWord */
|
||||
.chroma .ow {
|
||||
color: #af3a03; }
|
||||
|
||||
/* Punctuation */
|
||||
/* Comment */
|
||||
.chroma .c {
|
||||
color: #928374;
|
||||
font-style: italic; }
|
||||
|
||||
/* CommentHashbang */
|
||||
.chroma .ch {
|
||||
color: #928374;
|
||||
font-style: italic; }
|
||||
|
||||
/* CommentMultiline */
|
||||
.chroma .cm {
|
||||
color: #928374;
|
||||
font-style: italic; }
|
||||
|
||||
/* CommentSingle */
|
||||
.chroma .c1 {
|
||||
color: #928374;
|
||||
font-style: italic; }
|
||||
|
||||
/* CommentSpecial */
|
||||
.chroma .cs {
|
||||
color: #928374;
|
||||
font-style: italic; }
|
||||
|
||||
/* CommentPreproc */
|
||||
.chroma .cp {
|
||||
color: #427b58; }
|
||||
|
||||
/* CommentPreprocFile */
|
||||
.chroma .cpf {
|
||||
color: #427b58;
|
||||
font-style: italic; }
|
||||
|
||||
/* Generic */
|
||||
/* GenericDeleted */
|
||||
.chroma .gd {
|
||||
color: #282828;
|
||||
background-color: #9d0006; }
|
||||
|
||||
/* GenericEmph */
|
||||
.chroma .ge {
|
||||
color: #076678;
|
||||
text-decoration: underline; }
|
||||
|
||||
/* GenericError */
|
||||
.chroma .gr {
|
||||
background-color: #9d0006;
|
||||
font-weight: bold; }
|
||||
|
||||
/* GenericHeading */
|
||||
.chroma .gh {
|
||||
color: #79740e;
|
||||
font-weight: bold; }
|
||||
|
||||
/* GenericInserted */
|
||||
.chroma .gi {
|
||||
color: #282828;
|
||||
background-color: #79740e; }
|
||||
|
||||
/* GenericOutput */
|
||||
.chroma .go {
|
||||
color: #504945; }
|
||||
|
||||
/* GenericPrompt */
|
||||
/* GenericStrong */
|
||||
/* GenericSubheading */
|
||||
.chroma .gu {
|
||||
color: #79740e;
|
||||
font-weight: bold; }
|
||||
|
||||
/* GenericTraceback */
|
||||
.chroma .gt {
|
||||
background-color: #3c3836;
|
||||
font-weight: bold; }
|
||||
|
||||
/* GenericUnderline */
|
||||
/* TextWhitespace */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
/* Background */
|
||||
.bg {
|
||||
color: #ebdbb2;
|
||||
background-color: #282828; }
|
||||
/* PreWrapper */
|
||||
.chroma {
|
||||
color: #ebdbb2;
|
||||
background-color: #282828; }
|
||||
/* Other */
|
||||
/* Error */
|
||||
/* CodeLine */
|
||||
/* LineLink */
|
||||
.chroma .lnlinks {
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
color: inherit; }
|
||||
/* LineTableTD */
|
||||
.chroma .lntd {
|
||||
vertical-align: top;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0; }
|
||||
/* LineTable */
|
||||
.chroma .lntable {
|
||||
border-spacing: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0; }
|
||||
/* LineHighlight */
|
||||
.chroma .hl {
|
||||
background-color: #3d3d3d; }
|
||||
/* LineNumbersTable */
|
||||
.chroma .lnt {
|
||||
white-space: pre;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
margin-right: 0.4em;
|
||||
padding: 0 0.4em 0 0.4em;
|
||||
color: #756d59; }
|
||||
/* LineNumbers */
|
||||
.chroma .ln {
|
||||
white-space: pre;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
margin-right: 0.4em;
|
||||
padding: 0 0.4em 0 0.4em;
|
||||
color: #756d59; }
|
||||
/* Line */
|
||||
.chroma .line {
|
||||
display: flex; }
|
||||
/* Keyword */
|
||||
.chroma .k {
|
||||
color: #fe8019; }
|
||||
/* KeywordConstant */
|
||||
.chroma .kc {
|
||||
color: #fe8019; }
|
||||
/* KeywordDeclaration */
|
||||
.chroma .kd {
|
||||
color: #fe8019; }
|
||||
/* KeywordNamespace */
|
||||
.chroma .kn {
|
||||
color: #fe8019; }
|
||||
/* KeywordPseudo */
|
||||
.chroma .kp {
|
||||
color: #fe8019; }
|
||||
/* KeywordReserved */
|
||||
.chroma .kr {
|
||||
color: #fe8019; }
|
||||
/* KeywordType */
|
||||
.chroma .kt {
|
||||
color: #fabd2f; }
|
||||
/* Name */
|
||||
/* NameAttribute */
|
||||
.chroma .na {
|
||||
color: #b8bb26;
|
||||
font-weight: bold; }
|
||||
/* NameBuiltin */
|
||||
.chroma .nb {
|
||||
color: #fabd2f; }
|
||||
/* NameBuiltinPseudo */
|
||||
/* NameClass */
|
||||
/* NameConstant */
|
||||
.chroma .no {
|
||||
color: #d3869b; }
|
||||
/* NameDecorator */
|
||||
/* NameEntity */
|
||||
.chroma .ni {
|
||||
color: #fabd2f; }
|
||||
/* NameException */
|
||||
.chroma .ne {
|
||||
color: #fb4934; }
|
||||
/* NameFunction */
|
||||
.chroma .nf {
|
||||
color: #fabd2f; }
|
||||
/* NameFunctionMagic */
|
||||
/* NameLabel */
|
||||
.chroma .nl {
|
||||
color: #fb4934; }
|
||||
/* NameNamespace */
|
||||
/* NameOther */
|
||||
/* NameProperty */
|
||||
/* NameTag */
|
||||
.chroma .nt {
|
||||
color: #fb4934; }
|
||||
/* NameVariable */
|
||||
/* NameVariableClass */
|
||||
/* NameVariableGlobal */
|
||||
/* NameVariableInstance */
|
||||
/* NameVariableMagic */
|
||||
/* Literal */
|
||||
/* LiteralDate */
|
||||
/* LiteralString */
|
||||
.chroma .s {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringAffix */
|
||||
.chroma .sa {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringBacktick */
|
||||
.chroma .sb {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringChar */
|
||||
.chroma .sc {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringDelimiter */
|
||||
.chroma .dl {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringDoc */
|
||||
.chroma .sd {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringDouble */
|
||||
.chroma .s2 {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringEscape */
|
||||
.chroma .se {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringHeredoc */
|
||||
.chroma .sh {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringInterpol */
|
||||
.chroma .si {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringOther */
|
||||
.chroma .sx {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringRegex */
|
||||
.chroma .sr {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringSingle */
|
||||
.chroma .s1 {
|
||||
color: #b8bb26; }
|
||||
/* LiteralStringSymbol */
|
||||
.chroma .ss {
|
||||
color: #83a598; }
|
||||
/* LiteralNumber */
|
||||
.chroma .m {
|
||||
color: #d3869b; }
|
||||
/* LiteralNumberBin */
|
||||
.chroma .mb {
|
||||
color: #d3869b; }
|
||||
/* LiteralNumberFloat */
|
||||
.chroma .mf {
|
||||
color: #d3869b; }
|
||||
/* LiteralNumberHex */
|
||||
.chroma .mh {
|
||||
color: #d3869b; }
|
||||
/* LiteralNumberInteger */
|
||||
.chroma .mi {
|
||||
color: #d3869b; }
|
||||
/* LiteralNumberIntegerLong */
|
||||
.chroma .il {
|
||||
color: #d3869b; }
|
||||
/* LiteralNumberOct */
|
||||
.chroma .mo {
|
||||
color: #d3869b; }
|
||||
/* Operator */
|
||||
.chroma .o {
|
||||
color: #fe8019; }
|
||||
/* OperatorWord */
|
||||
.chroma .ow {
|
||||
color: #fe8019; }
|
||||
/* Punctuation */
|
||||
/* Comment */
|
||||
.chroma .c {
|
||||
color: #928374;
|
||||
font-style: italic; }
|
||||
/* CommentHashbang */
|
||||
.chroma .ch {
|
||||
color: #928374;
|
||||
font-style: italic; }
|
||||
/* CommentMultiline */
|
||||
.chroma .cm {
|
||||
color: #928374;
|
||||
font-style: italic; }
|
||||
/* CommentSingle */
|
||||
.chroma .c1 {
|
||||
color: #928374;
|
||||
font-style: italic; }
|
||||
/* CommentSpecial */
|
||||
.chroma .cs {
|
||||
color: #928374;
|
||||
font-style: italic; }
|
||||
/* CommentPreproc */
|
||||
.chroma .cp {
|
||||
color: #8ec07c; }
|
||||
/* CommentPreprocFile */
|
||||
.chroma .cpf {
|
||||
color: #8ec07c;
|
||||
font-style: italic; }
|
||||
/* Generic */
|
||||
/* GenericDeleted */
|
||||
.chroma .gd {
|
||||
color: #282828;
|
||||
background-color: #fb4934; }
|
||||
/* GenericEmph */
|
||||
.chroma .ge {
|
||||
color: #83a598;
|
||||
text-decoration: underline; }
|
||||
/* GenericError */
|
||||
.chroma .gr {
|
||||
background-color: #fb4934;
|
||||
font-weight: bold; }
|
||||
/* GenericHeading */
|
||||
.chroma .gh {
|
||||
color: #b8bb26;
|
||||
font-weight: bold; }
|
||||
/* GenericInserted */
|
||||
.chroma .gi {
|
||||
color: #282828;
|
||||
background-color: #b8bb26; }
|
||||
/* GenericOutput */
|
||||
.chroma .go {
|
||||
color: #504945; }
|
||||
/* GenericPrompt */
|
||||
/* GenericStrong */
|
||||
/* GenericSubheading */
|
||||
.chroma .gu {
|
||||
color: #b8bb26;
|
||||
font-weight: bold; }
|
||||
/* GenericTraceback */
|
||||
.chroma .gt {
|
||||
background-color: #fb4934;
|
||||
font-weight: bold; }
|
||||
/* GenericUnderline */
|
||||
/* TextWhitespace */ }
|
||||
|
||||
pre:not(.chroma),
|
||||
.bg,
|
||||
.chroma,
|
||||
.highlight {
|
||||
background-color: var(--background-color1); }
|
||||
|
||||
.html {
|
||||
font-size: 18px; }
|
||||
|
||||
.body {
|
||||
font-family: sans-serif;
|
||||
line-height: 1.5; }
|
||||
|
||||
p,
|
||||
ul,
|
||||
ol,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
overflow-wrap: break-word; }
|
||||
|
||||
.toc {
|
||||
margin-block: 1rem; }
|
||||
.toc__summary {
|
||||
font-weight: bolder;
|
||||
cursor: pointer; }
|
||||
|
||||
blockquote {
|
||||
padding: 0.5rem; }
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
height: 1px; }
|
||||
|
||||
figure {
|
||||
margin-inline: 0; }
|
||||
|
||||
.heading__anchor {
|
||||
display: none; }
|
||||
|
||||
.heading:hover > .heading__anchor {
|
||||
display: inline; }
|
||||
|
||||
.table-wrapper {
|
||||
overflow-x: auto;
|
||||
margin-block: 1rem; }
|
||||
.table-wrapper > table {
|
||||
word-break: keep-all;
|
||||
border-collapse: collapse; }
|
||||
.table-wrapper > table td,
|
||||
.table-wrapper > table th {
|
||||
padding: 0.5rem;
|
||||
text-align: start; }
|
||||
|
||||
svg,
|
||||
img,
|
||||
video,
|
||||
iframe {
|
||||
max-width: 100%; }
|
||||
|
||||
.menu__list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap; }
|
||||
|
||||
.menu__link--active {
|
||||
font-weight: bolder; }
|
||||
|
||||
.pagination {
|
||||
display: flex;
|
||||
gap: 1rem; }
|
||||
|
||||
.page-item.active {
|
||||
font-weight: bolder; }
|
||||
|
||||
.page-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-block: 1rem; }
|
||||
|
||||
.section-post-title,
|
||||
.term-post-title {
|
||||
margin-block-start: 0; }
|
||||
|
||||
.home-post-title {
|
||||
margin-block-end: 0; }
|
||||
|
||||
.summary {
|
||||
margin-block-start: 0; }
|
||||
|
||||
:not(pre) > code {
|
||||
padding-inline: 0.25rem; }
|
||||
|
||||
div.highlight {
|
||||
overflow-x: auto;
|
||||
margin-block: 1rem; }
|
||||
div.highlight > div.chroma > table.lntable {
|
||||
padding-inline-end: 0.4rem; }
|
||||
div.highlight > pre.chroma {
|
||||
padding-inline: 0.4rem; }
|
||||
|
||||
pre:not(.chroma) {
|
||||
overflow-x: auto;
|
||||
padding-block: 1rem;
|
||||
padding-inline: 0.4rem; }
|
||||
|
||||
pre {
|
||||
font-size: 0.875rem; }
|
||||
|
||||
.footer {
|
||||
font-size: smaller; }
|
||||
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
1
public/index.html
Normal file
1
public/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html class=html lang=en-us dir=ltr><head><meta name=generator content="Hugo 0.152.2"><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta charset=utf-8><meta name=viewport content="width=device-width"><title>Freedoms4</title><link rel=stylesheet href=/css/style.css><link rel=icon href=/favicon.ico><meta property="og:url" content="http://localhost:1313/"><meta property="og:site_name" content="Freedoms4"><meta property="og:title" content="Freedoms4"><meta property="og:locale" content="en_us"><meta property="og:type" content="website"><meta itemprop=name content="Freedoms4"><meta itemprop=datePublished content="2025-11-11T02:50:36+05:30"><meta itemprop=dateModified content="2025-11-11T02:50:36+05:30"><link rel=alternate type=application/rss+xml href=/index.xml title=Freedoms4><link rel=stylesheet href=/css/custom.css></head><body class=body><header class=header><h1>Freedoms4</h1><nav class="menu language"><ul class="menu__list language__list"><li class=menu__item><a class=menu__link href=/>Home</a></li><li class=menu__item><a class=menu__link href=/posts/>Blog</a></li><li class=menu__item><a class=menu__link href=/categories/>Categories</a></li><li class=menu__item><a class=menu__link href=/about/>About</a></li></ul></nav></header><main class=main><h2 class=home-post-title><a href=/posts/first-post/>First Post</a></h2><time class=published-date datetime=2025-11-11T02:50:36+05:30>2025-11-11</time><p class=summary>This is the first post of the site!</p><nav class=paginator></nav></main><footer class=footer><p class=footer__rss-link><a href=/index.xml>RSS</a></p><p class=footer__copyright-notice>© 2025</p><p class=footer__theme-info>Built with <a href=https://gohugo.io>Hugo</a> and <a href=https://github.com/CyrusYip/hugo-theme-yue>Yue</a></p></footer></body></html>
|
||||
1
public/index.xml
Normal file
1
public/index.xml
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Freedoms4</title><link>http://localhost:1313/</link><description>Recent content on Freedoms4</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 11 Nov 2025 02:50:36 +0530</lastBuildDate><atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml"/><item><title>First Post</title><link>http://localhost:1313/posts/first-post/</link><pubDate>Tue, 11 Nov 2025 02:50:36 +0530</pubDate><guid>http://localhost:1313/posts/first-post/</guid><description><p>This is the first post of the site!</p></description></item></channel></rss>
|
||||
1
public/page/1/index.html
Normal file
1
public/page/1/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en-us><head><title>http://localhost:1313/</title><link rel=canonical href=http://localhost:1313/><meta charset=utf-8><meta http-equiv=refresh content="0; url=http://localhost:1313/"></head></html>
|
||||
1
public/posts/first-post/index.html
Normal file
1
public/posts/first-post/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html class=html lang=en-us dir=ltr><head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta charset=utf-8><meta name=viewport content="width=device-width"><title>First Post | Freedoms4</title><link rel=stylesheet href=/css/style.css><link rel=icon href=/favicon.ico><meta name=description content="This is the first post of the site!"><meta property="og:url" content="http://localhost:1313/posts/first-post/"><meta property="og:site_name" content="Freedoms4"><meta property="og:title" content="First Post"><meta property="og:description" content="This is the first post of the site!"><meta property="og:locale" content="en_us"><meta property="og:type" content="article"><meta property="article:section" content="posts"><meta property="article:published_time" content="2025-11-11T02:50:36+05:30"><meta property="article:modified_time" content="2025-11-11T02:50:36+05:30"><meta property="article:tag" content="First-Post"><meta itemprop=name content="First Post"><meta itemprop=description content="This is the first post of the site!"><meta itemprop=datePublished content="2025-11-11T02:50:36+05:30"><meta itemprop=dateModified content="2025-11-11T02:50:36+05:30"><meta itemprop=wordCount content="8"><meta itemprop=keywords content="First-Post"><link rel=stylesheet href=/css/custom.css></head><body class=body><header class=header><h1>Freedoms4</h1><nav class="menu language"><ul class="menu__list language__list"><li class=menu__item><a class=menu__link href=/>Home</a></li><li class=menu__item><a class=menu__link href=/posts/>Blog</a></li><li class=menu__item><a class=menu__link href=/categories/>Categories</a></li><li class=menu__item><a class=menu__link href=/about/>About</a></li></ul></nav></header><main class=main><h1>First Post</h1><time class=published-date datetime=2025-11-11T02:50:36+05:30>2025-11-11</time><p>This is the first post of the site!</p><div><div>Tags:</div><ul><li><a href=/tags/first-post/>First-Post</a></li></ul></div><div><div>Categories:</div><ul><li><a href=/categories/non-tech/>Non-Tech</a></li></ul></div></main><footer class=footer><p class=footer__copyright-notice>© 2025</p><p class=footer__theme-info>Built with <a href=https://gohugo.io>Hugo</a> and <a href=https://github.com/CyrusYip/hugo-theme-yue>Yue</a></p></footer></body></html>
|
||||
1
public/posts/index.html
Normal file
1
public/posts/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html class=html lang=en-us dir=ltr><head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta charset=utf-8><meta name=viewport content="width=device-width"><title>Posts | Freedoms4</title><link rel=stylesheet href=/css/style.css><link rel=icon href=/favicon.ico><meta property="og:url" content="http://localhost:1313/posts/"><meta property="og:site_name" content="Freedoms4"><meta property="og:title" content="Posts"><meta property="og:locale" content="en_us"><meta property="og:type" content="website"><meta itemprop=name content="Posts"><meta itemprop=datePublished content="2025-11-11T02:50:36+05:30"><meta itemprop=dateModified content="2025-11-11T02:50:36+05:30"><link rel=alternate type=application/rss+xml href=/posts/index.xml title=Freedoms4><link rel=stylesheet href=/css/custom.css></head><body class=body><header class=header><h1>Freedoms4</h1><nav class="menu language"><ul class="menu__list language__list"><li class=menu__item><a class=menu__link href=/>Home</a></li><li class=menu__item><a class=menu__link href=/posts/>Blog</a></li><li class=menu__item><a class=menu__link href=/categories/>Categories</a></li><li class=menu__item><a class=menu__link href=/about/>About</a></li></ul></nav></header><main class=main><time class=published-date datetime=2025-11-11T02:50:36+05:30>2025-11-11</time><h2 class=section-post-title><a href=/posts/first-post/>First Post</a></h2><nav class=paginator></nav></main><footer class=footer><p class=footer__rss-link><a href=/posts/index.xml>RSS</a></p><p class=footer__copyright-notice>© 2025</p><p class=footer__theme-info>Built with <a href=https://gohugo.io>Hugo</a> and <a href=https://github.com/CyrusYip/hugo-theme-yue>Yue</a></p></footer></body></html>
|
||||
1
public/posts/index.xml
Normal file
1
public/posts/index.xml
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on Freedoms4</title><link>http://localhost:1313/posts/</link><description>Recent content in Posts on Freedoms4</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 11 Nov 2025 02:50:36 +0530</lastBuildDate><atom:link href="http://localhost:1313/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>First Post</title><link>http://localhost:1313/posts/first-post/</link><pubDate>Tue, 11 Nov 2025 02:50:36 +0530</pubDate><guid>http://localhost:1313/posts/first-post/</guid><description><p>This is the first post of the site!</p></description></item></channel></rss>
|
||||
1
public/posts/page/1/index.html
Normal file
1
public/posts/page/1/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en-us><head><title>http://localhost:1313/posts/</title><link rel=canonical href=http://localhost:1313/posts/><meta charset=utf-8><meta http-equiv=refresh content="0; url=http://localhost:1313/posts/"></head></html>
|
||||
1
public/sitemap.xml
Normal file
1
public/sitemap.xml
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>http://localhost:1313/categories/</loc><lastmod>2025-11-11T02:50:36+05:30</lastmod></url><url><loc>http://localhost:1313/posts/first-post/</loc><lastmod>2025-11-11T02:50:36+05:30</lastmod></url><url><loc>http://localhost:1313/tags/first-post/</loc><lastmod>2025-11-11T02:50:36+05:30</lastmod></url><url><loc>http://localhost:1313/</loc><lastmod>2025-11-11T02:50:36+05:30</lastmod></url><url><loc>http://localhost:1313/categories/non-tech/</loc><lastmod>2025-11-11T02:50:36+05:30</lastmod></url><url><loc>http://localhost:1313/posts/</loc><lastmod>2025-11-11T02:50:36+05:30</lastmod></url><url><loc>http://localhost:1313/tags/</loc><lastmod>2025-11-11T02:50:36+05:30</lastmod></url></urlset>
|
||||
4
public/tags/first-post/index.html
Normal file
4
public/tags/first-post/index.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<!doctype html><html class=html lang=en-us dir=ltr><head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta charset=utf-8><meta name=viewport content="width=device-width"><title>First-Post | Freedoms4</title><link rel=stylesheet href=/css/style.css><link rel=icon href=/favicon.ico><meta property="og:url" content="http://localhost:1313/tags/first-post/"><meta property="og:site_name" content="Freedoms4"><meta property="og:title" content="First-Post"><meta property="og:locale" content="en_us"><meta property="og:type" content="website"><meta itemprop=name content="First-Post"><meta itemprop=datePublished content="2025-11-11T02:50:36+05:30"><meta itemprop=dateModified content="2025-11-11T02:50:36+05:30"><link rel=alternate type=application/rss+xml href=/tags/first-post/index.xml title=Freedoms4><link rel=stylesheet href=/css/custom.css></head><body class=body><header class=header><h1>Freedoms4</h1><nav class="menu language"><ul class="menu__list language__list"><li class=menu__item><a class=menu__link href=/>Home</a></li><li class=menu__item><a class=menu__link href=/posts/>Blog</a></li><li class=menu__item><a class=menu__link href=/categories/>Categories</a></li><li class=menu__item><a class=menu__link href=/about/>About</a></li></ul></nav></header><main class=main><div class=breadcrumbs>You are here:
|
||||
<a href=/>Home</a> /
|
||||
<a href=/categories/>Categories</a> /
|
||||
<span>First-Post</span></div><section class=posts-list><time class=published-date datetime=2025-11-11T02:50:36+05:30>2025-11-11</time><h2 class=term-post-title><a href=/posts/first-post/>First Post</a></h2></section></main><footer class=footer><p class=footer__rss-link><a href=/tags/first-post/index.xml>RSS</a></p><p class=footer__copyright-notice>© 2025</p><p class=footer__theme-info>Built with <a href=https://gohugo.io>Hugo</a> and <a href=https://github.com/CyrusYip/hugo-theme-yue>Yue</a></p></footer></body></html>
|
||||
1
public/tags/first-post/index.xml
Normal file
1
public/tags/first-post/index.xml
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>First-Post on Freedoms4</title><link>http://localhost:1313/tags/first-post/</link><description>Recent content in First-Post on Freedoms4</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 11 Nov 2025 02:50:36 +0530</lastBuildDate><atom:link href="http://localhost:1313/tags/first-post/index.xml" rel="self" type="application/rss+xml"/><item><title>First Post</title><link>http://localhost:1313/posts/first-post/</link><pubDate>Tue, 11 Nov 2025 02:50:36 +0530</pubDate><guid>http://localhost:1313/posts/first-post/</guid><description><p>This is the first post of the site!</p></description></item></channel></rss>
|
||||
1
public/tags/index.html
Normal file
1
public/tags/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html class=html lang=en-us dir=ltr><head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta charset=utf-8><meta name=viewport content="width=device-width"><title>Tags | Freedoms4</title><link rel=stylesheet href=/css/style.css><link rel=icon href=/favicon.ico><meta property="og:url" content="http://localhost:1313/tags/"><meta property="og:site_name" content="Freedoms4"><meta property="og:title" content="Tags"><meta property="og:locale" content="en_us"><meta property="og:type" content="website"><meta itemprop=name content="Tags"><meta itemprop=datePublished content="2025-11-11T02:50:36+05:30"><meta itemprop=dateModified content="2025-11-11T02:50:36+05:30"><link rel=alternate type=application/rss+xml href=/tags/index.xml title=Freedoms4><link rel=stylesheet href=/css/custom.css></head><body class=body><header class=header><h1>Freedoms4</h1><nav class="menu language"><ul class="menu__list language__list"><li class=menu__item><a class=menu__link href=/>Home</a></li><li class=menu__item><a class=menu__link href=/posts/>Blog</a></li><li class=menu__item><a class=menu__link href=/categories/>Categories</a></li><li class=menu__item><a class=menu__link href=/about/>About</a></li></ul></nav></header><main class=main><div class=breadcrumbs>You are here: <a href=/>Home</a> / <span>Tags</span></div><section class=term-list><h2 class=term-list__item><a class=term-list__link href=/tags/first-post/>First-Post <sup>1</sup></a></h2></section></main><footer class=footer><p class=footer__rss-link><a href=/tags/index.xml>RSS</a></p><p class=footer__copyright-notice>© 2025</p><p class=footer__theme-info>Built with <a href=https://gohugo.io>Hugo</a> and <a href=https://github.com/CyrusYip/hugo-theme-yue>Yue</a></p></footer></body></html>
|
||||
1
public/tags/index.xml
Normal file
1
public/tags/index.xml
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tags on Freedoms4</title><link>http://localhost:1313/tags/</link><description>Recent content in Tags on Freedoms4</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 11 Nov 2025 02:50:36 +0530</lastBuildDate><atom:link href="http://localhost:1313/tags/index.xml" rel="self" type="application/rss+xml"/><item><title>First-Post</title><link>http://localhost:1313/tags/first-post/</link><pubDate>Tue, 11 Nov 2025 02:50:36 +0530</pubDate><guid>http://localhost:1313/tags/first-post/</guid><description/></item></channel></rss>
|
||||
Submodule themes/hugo-theme-yue deleted from 93a438fbca
169
themes/hugo-theme-yue/CHANGELOG.md
Normal file
169
themes/hugo-theme-yue/CHANGELOG.md
Normal file
@@ -0,0 +1,169 @@
|
||||
<!-- Timezone: UTC -->
|
||||
|
||||
## 2025-05-13
|
||||
|
||||
Rename `single-end.html` to `page-end.html`.
|
||||
|
||||
---
|
||||
|
||||
Rename `_partials/single/` to `_partials/page/`.
|
||||
|
||||
## 2025-05-10
|
||||
|
||||
Rename `single.html` to `page.html`.
|
||||
|
||||
---
|
||||
|
||||
Split `list.html` into `section.html`, `taxonomy.html` and `term.html`, so templates are more understandable.
|
||||
|
||||
## 2025-05-06
|
||||
|
||||
Adapt to the new template system introduced by Hugo 0.146.0 . It's recommended to upgrade Hugo to 0.147.1 or newer version.
|
||||
|
||||
`layouts/partials/` has been renamed to `layouts/_partials/`. If you have customized partial files in your site, you will need to rename them accordingly. For example, rename `layouts/partials/head/head-start.html` to `layouts/_partials/head/head-start.html`.
|
||||
|
||||
## 2025-02-26
|
||||
|
||||
Support Arabic and improve French translation.
|
||||
|
||||
## 2025-01-01
|
||||
|
||||
Remove leading zero in Chinese dateFormat. Example: 2019年3月09日 -> 2019年3月9日.
|
||||
|
||||
## 2024-10-31
|
||||
|
||||
Add `_index.md` for sections.
|
||||
|
||||
## 2024-10-25
|
||||
|
||||
Add `head-start.html` and `body-end.html`.
|
||||
|
||||
---
|
||||
|
||||
Rename `comments_custom.html` to `single-end.html`. If you have `comments_custom.html`, you need to rename it accordingly.
|
||||
|
||||
---
|
||||
|
||||
Rename `head/custom.html` to `head/head-end.html`. If you have `head/custom.html`, you need to rename it accordingly.
|
||||
|
||||
---
|
||||
|
||||
Rename `_custom-*.scss` to `_style-*.scss`. If you have custom SCSS files, you need to rename them accordingly.
|
||||
|
||||
---
|
||||
|
||||
Move SCSS partial for faster CSS loading.
|
||||
|
||||
---
|
||||
|
||||
Rename `/assets/sass/` to `/assets/scss/`. If you have custom SCSS files, you need to rename them accordingly.
|
||||
|
||||
---
|
||||
|
||||
Remove unused JavaScript code.
|
||||
|
||||
## 2024-10-24
|
||||
|
||||
Add the page count to sections (`/posts/`, `/tags/`, etc.).
|
||||
|
||||
## 2024-10-18
|
||||
|
||||
Fix cell alignment in the table render hook. You need to upgrade Hugo to v0.136.0 .
|
||||
|
||||
Relevant issue: [Markdown render hook for tables doesn't recognize unset column alignment · Issue #12886 · gohugoio/hugo](https://github.com/gohugoio/hugo/issues/12886).
|
||||
|
||||
## 2024-10-09
|
||||
|
||||
Add class names for terms of a taxonomy, e.g., tags and categories. You can arrange terms into rows using this SCSS code:
|
||||
|
||||
```scss
|
||||
.term-list {
|
||||
&__item {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&__link {
|
||||
text-decoration-line: underline;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 2024-09-22
|
||||
|
||||
Break long words in lists to avoid overflowing.
|
||||
|
||||
## 2024-09-20
|
||||
|
||||
Only break long words for headings (`<h1>~<h6>`) and paragraphs (`<p>`).
|
||||
|
||||
---
|
||||
|
||||
Replace `word-break: break-word;` with `overflow-wrap: break-word;` since the former is deprecated in [CSS Text Module Level 3](https://drafts.csswg.org/css-text-3/#valdef-word-break-break-word).
|
||||
|
||||
> For compatibility with legacy content, the word-break property also supports a deprecated break-word keyword. When specified, this has the same effect as word-break: normal and overflow-wrap: anywhere, regardless of the actual value of the overflow-wrap property.
|
||||
|
||||
---
|
||||
|
||||
Use table render hook to add wrapper. Users need to upgrade Hugo to 0.134.2 .
|
||||
|
||||
## 2024-09-11
|
||||
|
||||
Add support for French.
|
||||
|
||||
## 2024-09-06
|
||||
|
||||
Set padding-inline to 0.25rem for inline code.
|
||||
|
||||
## 2024-07-31
|
||||
|
||||
Set the font size of the code block to 0.875rem (85% of the base font size).
|
||||
|
||||
---
|
||||
|
||||
Add padding to code block (https://github.com/CyrusYip/hugo-theme-yue/issues/7).
|
||||
|
||||
## 2024-07-30
|
||||
|
||||
Font size of footer is set to `smaller` (about 83.33%).
|
||||
|
||||
## 2024-07-29
|
||||
|
||||
Use fullwidth colon (`:`) for zh-CN in translation list. Example: `中文:文章 3`.
|
||||
|
||||
---
|
||||
|
||||
Apply BEM naming to translation list classes.
|
||||
|
||||
```html
|
||||
<ul class="translation-list">
|
||||
<li class="translation-list__item">
|
||||
<a class="translation-list__link" href="/en/posts/post-4/">English: Post 4 Markdown Test</a>
|
||||
</li>
|
||||
</ul>
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Rename `i18n_list.html` to `translation_list.html`.
|
||||
|
||||
---
|
||||
|
||||
Add classes to links inside the page nav.
|
||||
|
||||
```html
|
||||
<nav class="page-nav">
|
||||
<a class="page-nav__previous-link" href="/en/posts/post-5/">Prev: Post 5</a>
|
||||
<a class="page-nav__next-link" href="/en/posts/post-3/">Next: Post 3</a>
|
||||
</nav>
|
||||
```
|
||||
|
||||
## 2024-07-28
|
||||
|
||||
Table of contents is folded by default now. If you want folded one, set `params.tocFolded` to `true` in your config file.
|
||||
|
||||
```yaml
|
||||
# hugo.yaml
|
||||
params:
|
||||
toc: true
|
||||
tocFolded: true
|
||||
```
|
||||
21
themes/hugo-theme-yue/LICENSE
Normal file
21
themes/hugo-theme-yue/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 Cyrus Yip
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
376
themes/hugo-theme-yue/README.md
Normal file
376
themes/hugo-theme-yue/README.md
Normal file
@@ -0,0 +1,376 @@
|
||||
# Yue
|
||||
|
||||
**[Demo website](https://yue.cyrusyip.org/)** | [Changelog](CHANGELOG.md)
|
||||
|
||||
Yue is a minimal, multilingual and customizable Hugo theme, suitable for blogging.
|
||||
|
||||
## Screenshots
|
||||
|
||||
Screenshots may be outdated, so it's better to visit the [demo website](https://yue.cyrusyip.org/).
|
||||
|
||||
<details open>
|
||||
<summary>Light mode on desktop</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Dark mode on desktop</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Light mode on mobile</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Dark mode on mobile</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
|
||||
## Features
|
||||
|
||||
- Minimal appearance
|
||||
- Easy to install (with Git and Hugo installed, create a website in a few seconds)
|
||||
- Detailed documentation
|
||||
- Automatic dark mode
|
||||
- Multilingual
|
||||
- Translation list in single page
|
||||
- Language selector (go to corresponding page or homepage)
|
||||
- Multiple authors
|
||||
- Table of Content (foldable, only generated when available)
|
||||
- Modification date on home page, single page, section page and term page
|
||||
- Custom date format
|
||||
- Pagination on home page and section page
|
||||
- Full-text RSS
|
||||
- Tags and categories
|
||||
- Copyright notice (author and year span can be set)
|
||||
- RSS link
|
||||
- Heading anchor link
|
||||
- Mobile-first and responsive
|
||||
- SCSS
|
||||
- Search engine optimization
|
||||
- [Microdata](https://developer.mozilla.org/en-US/docs/Web/HTML/Microdata)
|
||||
- meta description
|
||||
- [Open Graph](https://ogp.me/)
|
||||
- Page count to sections (`/posts/`, `/tags/`, etc.)
|
||||
- Customization
|
||||
- Favicon
|
||||
- Styles (SCSS)
|
||||
- Contents (HTML)
|
||||
|
||||
To find out all features, check [hugo.yaml](hugo.yaml) (default configuration) and [exampleSite/hugo.yaml](exampleSite/hugo.yaml) (demo site's configuration).
|
||||
|
||||
## Get started
|
||||
|
||||
### Install
|
||||
|
||||
Install [Git](https://git-scm.com/downloads) and latest [Hugo extended](https://gohugo.io/installation/).
|
||||
|
||||
```shell
|
||||
# Create website
|
||||
git init my-website
|
||||
cd my-website
|
||||
# Install theme
|
||||
git submodule add --depth=1 https://github.com/CyrusYip/hugo-theme-yue themes/hugo-theme-yue
|
||||
git commit --message "add theme"
|
||||
# Create demo content
|
||||
cp --recursive themes/hugo-theme-yue/exampleSite/* .
|
||||
# Preview
|
||||
hugo server
|
||||
```
|
||||
|
||||
Now we have a working demo webiste. The `content` directory contains the content, and `hugo.yaml` is configuration file. Feel free to play around with them.
|
||||
|
||||
### Update theme
|
||||
|
||||
```shell
|
||||
cd my-website
|
||||
git submodule update --remote
|
||||
```
|
||||
|
||||
It's recommended to read [CHANGELOG.md](CHANGELOG.md) before updating the theme.
|
||||
|
||||
You can subscribe updates and the changelog in a feed aggregator (e.g. Inoreader).
|
||||
|
||||
- Updates: <https://github.com/CyrusYip/hugo-theme-yue/commits/main.atom>
|
||||
- Changelog: <https://github.com/CyrusYip/hugo-theme-yue/commits/main/CHANGELOG.md.atom>
|
||||
|
||||
### Clone website
|
||||
|
||||
You need to use additional options when you clone your website project.
|
||||
|
||||
```shell
|
||||
git clone --recurse-submodules --shallow-submodules git@github.com:your-user-name/my-website.git
|
||||
```
|
||||
|
||||
### Deploy
|
||||
|
||||
After setting up the website, you probably want to host it on Internet. There are many methods for doing it, see [Hosting and deployment | Hugo](https://gohugo.io/hosting-and-deployment/). If you don't know what to choose, you can start from Netlify, see [Host on Netlify | Hugo](https://gohugo.io/hosting-and-deployment/hosting-on-netlify/).
|
||||
|
||||
Make sure you change baseURL to your domain name (e.g. `https://my-cool-domain.org/`) in `hugo.yaml`.
|
||||
|
||||
```diff
|
||||
-baseURL: https://yue.cyrusyip.org/
|
||||
+baseURL: https://my-cool-domain.org/
|
||||
```
|
||||
|
||||
Recommended build command:
|
||||
|
||||
```shell
|
||||
hugo --gc --minify
|
||||
```
|
||||
|
||||
`--gc` remove unused cache files
|
||||
, and `--minify` reduce the size of the website (mainly HTML).
|
||||
|
||||
## Usage
|
||||
|
||||
Create a new post.
|
||||
|
||||
```
|
||||
hugo new content content/en/posts/my-first-post.md
|
||||
```
|
||||
|
||||
To learn more about usage, see:
|
||||
|
||||
- [Basic usage | Hugo](https://gohugo.io/getting-started/usage/)
|
||||
- [Directory structure | Hugo](https://gohugo.io/getting-started/directory-structure/)
|
||||
|
||||
## Config
|
||||
|
||||
Settings are listed in [exampleSite/hugo.yaml](exampleSite/hugo.yaml) (demo site's config) and [hugo.yaml](hugo.yaml) (default config, imported by the former).
|
||||
|
||||
In the root of your website project, `hugo.yaml` is the config file, which is a copy of [exampleSite/hugo.yaml](exampleSite/hugo.yaml).
|
||||
|
||||
To learn configuration, see [Configure Hugo | Hugo](https://gohugo.io/getting-started/configuration/).
|
||||
|
||||
### Multilingual mode
|
||||
|
||||
Supported languages:
|
||||
|
||||
- `ar`: Arabic
|
||||
- `en`: English
|
||||
- `fr`: French
|
||||
- `zh-CN`: Simplified Chinese
|
||||
|
||||
To create a multilingual website, see [Multilingual mode | Hugo](https://gohugo.io/content-management/multilingual/) and [exampleSite/hugo.yaml](exampleSite/hugo.yaml).
|
||||
|
||||
Translation files are located in the [i18n](i18n) directory and [data/i18n.yaml](data/i18n.yaml). Contributions for additional languages are welcome.
|
||||
|
||||
To contribute a new language:
|
||||
|
||||
1. Create a language file (e.g., `fr.yaml` for French) in the [i18n](i18n) directory.
|
||||
1. Copy the content of [i18n/en.yaml](i18n/en.yaml) into the new file.
|
||||
1. Remove all comments (`# ...`) and translate the content.
|
||||
1. Translate the content in [data/i18n.yaml](data/i18n.yaml) as well.
|
||||
|
||||
If you want to keep contributing to translation, you can get latest changes by subscribing the feed of [i18n/en.yaml](i18n/en.yaml) (<https://github.com/CyrusYip/hugo-theme-yue/commits/main/i18n/en.yaml.atom>) using an RSS reader.
|
||||
|
||||
#### Title of tags and categories
|
||||
|
||||
If your website is not in English, you probably want to customize title of `/tags` and `/categories`.
|
||||
|
||||
For example, to customize `/tags` title of `zh-CN` website, create `content/zh-CN/tags/_index.md` and add the following content into the file.
|
||||
|
||||
```
|
||||
---
|
||||
title: Chinese Tags
|
||||
---
|
||||
```
|
||||
|
||||
## Customize
|
||||
|
||||
Yue allows you to customize favicon, styles (SCSS), and contents (HTML).
|
||||
|
||||
### Favicon
|
||||
|
||||
Favicon is the icon next to title in a browser tab. To use your favicon, put `favicon.ico` under `static` directory. You can create `favicon.ico` on online favicon.ico generators.
|
||||
|
||||
### Styles (SCSS)
|
||||
|
||||
Yue uses SCSS (libsass) to add styles. All files are in [assets/scss](assets/scss).To customize styles, create `assets/scss/_style-start.scss` and `assets/scss/_style-end.scss`.
|
||||
|
||||
`_style-start.scss` is applied first, and you can override variables in this file.
|
||||
|
||||
```scss
|
||||
$base-font-size: 15px;
|
||||
```
|
||||
|
||||
`_style-end.scss` is applied last, and you can add styles in this file.
|
||||
|
||||
Vanilla CSS is also valid in SCSS.
|
||||
|
||||
References:
|
||||
|
||||
- [CSS: Cascading Style Sheets | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS)
|
||||
- [Sass: Sass Basics](https://sass-lang.com/guide/)
|
||||
- [Directory structure | Hugo](https://gohugo.io/getting-started/directory-structure/)
|
||||
|
||||
### Contents (HTML)
|
||||
|
||||
You can create these files to insert HTML code.
|
||||
|
||||
- `layouts/_partials/head/head-start.html`
|
||||
- `layouts/_partials/head/head-end.html`
|
||||
- `layouts/_partials/page/page-end.html`
|
||||
- `layouts/_partials/body/body-end.html`
|
||||
|
||||
#### head-start.html
|
||||
|
||||
`head-start.html` is added near the start of the `<head>` element.
|
||||
|
||||
Use cases:
|
||||
|
||||
- Preload scripts
|
||||
- Load scripts
|
||||
- Load styles
|
||||
|
||||
Here is an example of preloading scripts:
|
||||
|
||||
```html
|
||||
<link rel="preload" as="script" href="https://unpkg.com/@swup/head-plugin@2">
|
||||
<link rel="preload" as="script" href="https://unpkg.com/@swup/preload-plugin@3">
|
||||
<link rel="preload" as="script" href="https://unpkg.com/swup@4">
|
||||
```
|
||||
|
||||
#### head-end.html
|
||||
|
||||
`head-end.html` is added to the end of the `<head>` element.
|
||||
|
||||
Use cases:
|
||||
|
||||
- Load scripts
|
||||
- Load styles
|
||||
|
||||
Here is an example of adding Google Analytics and a local script:
|
||||
|
||||
```html
|
||||
<!-- Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-F46B15BRUF"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-F46B15BRUF');
|
||||
</script>
|
||||
|
||||
<!-- Local script, path: assets/js/my-script.js -->
|
||||
{{ with resources.Get "js/my-script.js" | js.Build }}
|
||||
<script defer src="{{ .RelPermalink }}"></script>
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
#### page-end.html
|
||||
|
||||
`page-end.html` is added to the end of the `<main>` element in a post.
|
||||
|
||||
Use cases:
|
||||
|
||||
- comment services, e.g., Disqus and giscus
|
||||
|
||||
Here is an example of adding [Giscus](https://giscus.app/):
|
||||
|
||||
```html
|
||||
{{ $language := "" }}
|
||||
{{- /*
|
||||
Workaround for lowercase LanguagePrefix,
|
||||
see https://github.com/gohugoio/hugo/issues/9404
|
||||
*/ -}}
|
||||
{{ if eq site.LanguagePrefix "/zh-cn" }}
|
||||
{{ $language = "zh-CN" }}
|
||||
{{ else }}
|
||||
{{ $language = "en" }}
|
||||
{{ end }}
|
||||
<script src="https://giscus.app/client.js"
|
||||
data-repo="CyrusYip/yue-test"
|
||||
data-repo-id="P_9hJMbXtqr"
|
||||
data-category="General"
|
||||
data-category-id="SIB_ldsflk712ldRsjf7"
|
||||
data-mapping="pathname"
|
||||
data-strict="0"
|
||||
data-reactions-enabled="1"
|
||||
data-emit-metadata="0"
|
||||
data-input-position="bottom"
|
||||
data-theme="preferred_color_scheme"
|
||||
data-lang="{{ $language }}"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
||||
```
|
||||
|
||||
List of comment services: [Comments | Hugo](https://gohugo.io/content-management/comments/).
|
||||
|
||||
#### body-end.html
|
||||
|
||||
`body-end.html` is added to the end of the `<body>` element.
|
||||
|
||||
Use cases:
|
||||
|
||||
- Dynamically load scripts
|
||||
|
||||
## Support
|
||||
|
||||
To report bugs, submit an [issue](https://github.com/CyrusYip/hugo-theme-yue/issues). To ask questions, start a [discussion](https://github.com/CyrusYip/hugo-theme-yue/discussions).
|
||||
|
||||
## Further reading
|
||||
|
||||
Hugo has many features, read [Hugo Documentation](https://gohugo.io/documentation/) to learn.
|
||||
|
||||
## Changelog
|
||||
|
||||
See [CHANGELOG.md](CHANGELOG.md).
|
||||
|
||||
## Development
|
||||
|
||||
This project uses [hugo-bin - npm](https://www.npmjs.com/package/hugo-bin) to manage Hugo version. Prerequisite: [Node.js](https://nodejs.org/en) and [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
|
||||
|
||||
Clone this repository.
|
||||
|
||||
```shell
|
||||
npm install
|
||||
npm run clean:server:shared
|
||||
```
|
||||
|
||||
There are other useful commands listed in [package.json](package.json). To use recommended Hugo version, run `npx hugo`.
|
||||
|
||||
---
|
||||
|
||||
If you don't have Node.js and npm installed, just install the version listed in [package.json](package.json).
|
||||
|
||||
```json
|
||||
"hugo-bin": {
|
||||
"buildTags": "extended",
|
||||
"version": "x.yyy.z"
|
||||
},
|
||||
```
|
||||
|
||||
CHANGELOG.md should be updated in each commit.
|
||||
|
||||
## Websites built with Yue
|
||||
|
||||
If you are using Yue and source code of your website is hosted on GitHub, you can add `hugo-theme-yue` topic to your repository.
|
||||
|
||||
[Link to `hugo-theme-yue` topic](https://github.com/topics/hugo-theme-yue).
|
||||
|
||||
## Acknowledgement
|
||||
|
||||
I have learned a lot from many projects. Thank you, developers.
|
||||
|
||||
- [hugo-xmin](https://github.com/yihui/hugo-xmin/) (minimal templates)
|
||||
- [hugo-theme-jane](https://github.com/xianmin/hugo-theme-jane/) ([RSS template](https://github.com/xianmin/hugo-theme-jane/blob/6bef93b29e96bcf8b5b9a86b94cdd0dce99002bc/layouts/rss.xml#L30))
|
||||
- [hugo-theme-zen](https://github.com/frjo/hugo-theme-zen) ([language selector](https://github.com/frjo/hugo-theme-zen/blob/d3b2b6e1eea2bc67b3409238b9c347ab628876da/layouts/partials/language-selector.html))
|
||||
- [hugo-theme-gruvbox](https://github.com/schnerring/hugo-theme-gruvbox) (color)
|
||||
- [gruvbox](https://github.com/morhetz/gruvbox) (color)
|
||||
- [hugo-theme-stack](https://github.com/CaiJimmy/hugo-theme-stack) (source code, documentation and config)
|
||||
- [hugo-PaperMod](https://github.com/adityatelange/hugo-PaperMod) (source code, documentation and config)
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under [MIT](LICENSE).
|
||||
12
themes/hugo-theme-yue/archetypes/default.md
Normal file
12
themes/hugo-theme-yue/archetypes/default.md
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- $fileContentBaseName := .File.ContentBaseName -}}
|
||||
---
|
||||
title: {{ replace $fileContentBaseName "-" " " | title }}
|
||||
slug: {{ $fileContentBaseName | lower }}
|
||||
date: {{ .Date }}
|
||||
# lastmod: {{ .Date }} # Last modification date
|
||||
tags:
|
||||
- tag1
|
||||
categories:
|
||||
- category1
|
||||
# draft: true
|
||||
---
|
||||
82
themes/hugo-theme-yue/assets/scss/_color-scheme.scss
Normal file
82
themes/hugo-theme-yue/assets/scss/_color-scheme.scss
Normal file
@@ -0,0 +1,82 @@
|
||||
// Dark theme by default
|
||||
:root {
|
||||
--background-color: #{$background-color-dark}; // body
|
||||
--background-color1: #{$background-color1-dark}; // blockquote, code block, border, table, hr
|
||||
--foreground-color: #{$foreground-color-dark}; // text
|
||||
--foreground-color3: #{$foreground-color3-dark}; // figcaption
|
||||
--accent-color: #{$accent-color-dark}; // link, blockquote
|
||||
}
|
||||
|
||||
// Override variables for light theme
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
--background-color: #{$background-color-light};
|
||||
--background-color1: #{$background-color1-light};
|
||||
--foreground-color: #{$foreground-color-light};
|
||||
--foreground-color3: #{$foreground-color3-light}; // figcaption
|
||||
--accent-color: #{$accent-color-light};
|
||||
}
|
||||
}
|
||||
|
||||
// Set color
|
||||
.body {
|
||||
background-color: var(--background-color);
|
||||
color: var(--foreground-color);
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: var(--foreground-color);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
.header {
|
||||
border-bottom: 1px solid var(--background-color1);
|
||||
}
|
||||
|
||||
.footer {
|
||||
border-top: 1px solid var(--background-color1);
|
||||
}
|
||||
|
||||
blockquote {
|
||||
background-color: var(--background-color1);
|
||||
|
||||
[dir=rtl] & {
|
||||
border-right: 0.5rem solid var(--accent-color);
|
||||
}
|
||||
|
||||
[dir=ltr] & {
|
||||
border-left: 0.5rem solid var(--accent-color);
|
||||
}
|
||||
}
|
||||
|
||||
// Don't apply inline code's style to code block
|
||||
:not(pre)>code {
|
||||
background-color: var(--background-color1);
|
||||
}
|
||||
|
||||
hr {
|
||||
background: var(--background-color1);
|
||||
}
|
||||
|
||||
// Table
|
||||
table {
|
||||
background-color: var(--background-color1);
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
border: 1px solid var(--background-color);
|
||||
}
|
||||
|
||||
// Figure
|
||||
figcaption {
|
||||
color: var(--foreground-color3);
|
||||
}
|
||||
21
themes/hugo-theme-yue/assets/scss/_init.scss
Normal file
21
themes/hugo-theme-yue/assets/scss/_init.scss
Normal file
@@ -0,0 +1,21 @@
|
||||
// Variables
|
||||
$body-margin-left: 16px !default;
|
||||
$body-margin-right: 16px !default;
|
||||
$font-family: sans-serif !default;
|
||||
$base-font-size: 18px !default;
|
||||
$line-height: 1.5 !default;
|
||||
$body-max-width: 768px !default;
|
||||
$desktop-breakpoint: $body-max-width + $body-margin-left + $body-margin-right !default;
|
||||
|
||||
// Color, see https://github.com/morhetz/gruvbox
|
||||
$background-color-light: #fbf1c7 !default;
|
||||
$background-color1-light: #ebdbb2 !default;
|
||||
$foreground-color-light: #3c3836 !default;
|
||||
$foreground-color3-light: #665c54 !default;
|
||||
$accent-color-light: #af3a03 !default; // orange
|
||||
|
||||
$background-color-dark: #282828 !default;
|
||||
$background-color1-dark: #3c3836 !default;
|
||||
$foreground-color-dark: #ebdbb2 !default;
|
||||
$foreground-color3-dark: #bdae93 !default;
|
||||
$accent-color-dark: #fe8019 !default;
|
||||
14
themes/hugo-theme-yue/assets/scss/_layout.scss
Normal file
14
themes/hugo-theme-yue/assets/scss/_layout.scss
Normal file
@@ -0,0 +1,14 @@
|
||||
// On mobile, add little margins
|
||||
.body {
|
||||
margin-left: $body-margin-left;
|
||||
margin-right: $body-margin-right;
|
||||
}
|
||||
|
||||
// On desktop, use fixed width and center <body>
|
||||
@media (min-width: $desktop-breakpoint) {
|
||||
.body {
|
||||
width: $body-max-width;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
31
themes/hugo-theme-yue/assets/scss/_reset.scss
Normal file
31
themes/hugo-theme-yue/assets/scss/_reset.scss
Normal file
@@ -0,0 +1,31 @@
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
// List
|
||||
.menu__list,
|
||||
.translation-list,
|
||||
.pagination {
|
||||
list-style-type: none;
|
||||
padding-inline-start: 0;
|
||||
}
|
||||
|
||||
// Task list
|
||||
ul:has(>li>input[type="checkbox"]) {
|
||||
list-style-type: none;
|
||||
padding-inline-start: 1em;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0;
|
||||
}
|
||||
1
themes/hugo-theme-yue/assets/scss/_style-end.scss
Normal file
1
themes/hugo-theme-yue/assets/scss/_style-end.scss
Normal file
@@ -0,0 +1 @@
|
||||
// This file will be applied last
|
||||
3
themes/hugo-theme-yue/assets/scss/_style-start.scss
Normal file
3
themes/hugo-theme-yue/assets/scss/_style-start.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file will be applied first
|
||||
// You can override variables, example:
|
||||
// $base-font-size: 10px;
|
||||
180
themes/hugo-theme-yue/assets/scss/_style.scss
Normal file
180
themes/hugo-theme-yue/assets/scss/_style.scss
Normal file
@@ -0,0 +1,180 @@
|
||||
// Global
|
||||
.html {
|
||||
font-size: $base-font-size; // rem
|
||||
}
|
||||
|
||||
.body {
|
||||
font-family: $font-family;
|
||||
line-height: $line-height;
|
||||
}
|
||||
|
||||
p,
|
||||
ul,
|
||||
ol,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
// Break long words
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.toc {
|
||||
margin-block: 1rem;
|
||||
|
||||
&__summary {
|
||||
font-weight: bolder;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
blockquote {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin-inline: 0;
|
||||
}
|
||||
|
||||
// Heading anchor link
|
||||
.heading {
|
||||
&__anchor {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:hover>&__anchor {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
// Table
|
||||
.table-wrapper {
|
||||
// Horizontal scrollbar for table
|
||||
overflow-x: auto;
|
||||
// Margin
|
||||
margin-block: 1rem;
|
||||
|
||||
>table {
|
||||
// Override global word-break, don't break Chinese/Japanese/Korean (CJK) text
|
||||
word-break: keep-all;
|
||||
// Style
|
||||
border-collapse: collapse;
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0.5rem;
|
||||
text-align: start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Avoid overflow
|
||||
svg,
|
||||
img,
|
||||
video,
|
||||
iframe {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
// Menu and language selector
|
||||
.menu {
|
||||
&__list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
// Selected link
|
||||
&__link {
|
||||
&--active {
|
||||
font-weight: bolder;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Paginator
|
||||
.pagination {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.page-item.active {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
// Page nav
|
||||
.page-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-block: 1rem;
|
||||
}
|
||||
|
||||
// Make [section post title / term post title] close to date info
|
||||
.section-post-title,
|
||||
.term-post-title {
|
||||
margin-block-start: 0;
|
||||
}
|
||||
|
||||
// Make home post title close to summary
|
||||
.home-post-title {
|
||||
margin-block-end: 0;
|
||||
}
|
||||
|
||||
// Make summary close to home post title
|
||||
.summary {
|
||||
margin-block-start: 0;
|
||||
}
|
||||
|
||||
// Inline code
|
||||
:not(pre)>code {
|
||||
padding-inline: 0.25rem;
|
||||
}
|
||||
|
||||
// Fenced code block (with line number, with language): div.highlight > div.chroma > table.lntable > tbody > tr > td.lntd > pre.chroma > code.language-javascript
|
||||
// Fenced code block (without line number, with language): div.highlight > pre.chroma > code.language-javascript
|
||||
// Fenced code block (without line number, without language) / indented code block: pre > code
|
||||
|
||||
// Code block with specified language
|
||||
div.highlight {
|
||||
// Horizontal scrollbar
|
||||
overflow-x: auto;
|
||||
// Prevent two code blocks sticking together
|
||||
margin-block: 1rem;
|
||||
|
||||
// With line number
|
||||
// Prevent italic character overflowing
|
||||
>div.chroma>table.lntable {
|
||||
padding-inline-end: 0.4rem; // same as line number's padding
|
||||
}
|
||||
|
||||
// Without line number
|
||||
// Prevent italic character overflowing (padding-inline-end doesn't work on Firefox Linux 128.0 and Chrome Linux 126.0.6478.182)
|
||||
>pre.chroma {
|
||||
padding-inline: 0.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
// Code block [without specified language / indented with 4 spaces]
|
||||
pre:not(.chroma) {
|
||||
// Horizontal scrollbar
|
||||
overflow-x: auto;
|
||||
padding-block: 1rem;
|
||||
padding-inline: 0.4rem; // padding-inline-end doesn't work on Firefox Linux 128.0
|
||||
}
|
||||
|
||||
pre {
|
||||
// Smaller font size
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.footer {
|
||||
font-size: smaller;
|
||||
}
|
||||
14
themes/hugo-theme-yue/assets/scss/_syntax-highlight.scss
Normal file
14
themes/hugo-theme-yue/assets/scss/_syntax-highlight.scss
Normal file
@@ -0,0 +1,14 @@
|
||||
@import "syntax-highlight/gruvbox-light";
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@import "syntax-highlight/gruvbox-dark";
|
||||
}
|
||||
|
||||
// Use background color slightly different from that of <body>
|
||||
// Without language
|
||||
pre:not(.chroma),
|
||||
// With language
|
||||
.bg,
|
||||
.chroma,
|
||||
.highlight {
|
||||
background-color: var(--background-color1);
|
||||
}
|
||||
13
themes/hugo-theme-yue/assets/scss/main.scss
Normal file
13
themes/hugo-theme-yue/assets/scss/main.scss
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
Styles are mobile-first. Desktop styles are wrapped in media queries.
|
||||
Naming convention: BEM (Block, Element, Modifier). When it's difficult to add classes, I will use tag names.
|
||||
*/
|
||||
|
||||
@import 'style-start'; // variables can be overridden in this file
|
||||
@import 'init'; // variables
|
||||
@import 'reset';
|
||||
@import 'layout';
|
||||
@import 'color-scheme';
|
||||
@import 'syntax-highlight';
|
||||
@import 'style';
|
||||
@import 'style-end';
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Background */ .bg { color:#ebdbb2;background-color:#282828; }
|
||||
/* PreWrapper */ .chroma { color:#ebdbb2;background-color:#282828; }
|
||||
/* Other */ .chroma .x { }
|
||||
/* Error */ .chroma .err { }
|
||||
/* CodeLine */ .chroma .cl { }
|
||||
/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color:#3d3d3d }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#756d59 }
|
||||
/* LineNumbers */ .chroma .ln { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#756d59 }
|
||||
/* Line */ .chroma .line { display:flex; }
|
||||
/* Keyword */ .chroma .k { color:#fe8019 }
|
||||
/* KeywordConstant */ .chroma .kc { color:#fe8019 }
|
||||
/* KeywordDeclaration */ .chroma .kd { color:#fe8019 }
|
||||
/* KeywordNamespace */ .chroma .kn { color:#fe8019 }
|
||||
/* KeywordPseudo */ .chroma .kp { color:#fe8019 }
|
||||
/* KeywordReserved */ .chroma .kr { color:#fe8019 }
|
||||
/* KeywordType */ .chroma .kt { color:#fabd2f }
|
||||
/* Name */ .chroma .n { }
|
||||
/* NameAttribute */ .chroma .na { color:#b8bb26;font-weight:bold }
|
||||
/* NameBuiltin */ .chroma .nb { color:#fabd2f }
|
||||
/* NameBuiltinPseudo */ .chroma .bp { }
|
||||
/* NameClass */ .chroma .nc { }
|
||||
/* NameConstant */ .chroma .no { color:#d3869b }
|
||||
/* NameDecorator */ .chroma .nd { }
|
||||
/* NameEntity */ .chroma .ni { color:#fabd2f }
|
||||
/* NameException */ .chroma .ne { color:#fb4934 }
|
||||
/* NameFunction */ .chroma .nf { color:#fabd2f }
|
||||
/* NameFunctionMagic */ .chroma .fm { }
|
||||
/* NameLabel */ .chroma .nl { color:#fb4934 }
|
||||
/* NameNamespace */ .chroma .nn { }
|
||||
/* NameOther */ .chroma .nx { }
|
||||
/* NameProperty */ .chroma .py { }
|
||||
/* NameTag */ .chroma .nt { color:#fb4934 }
|
||||
/* NameVariable */ .chroma .nv { }
|
||||
/* NameVariableClass */ .chroma .vc { }
|
||||
/* NameVariableGlobal */ .chroma .vg { }
|
||||
/* NameVariableInstance */ .chroma .vi { }
|
||||
/* NameVariableMagic */ .chroma .vm { }
|
||||
/* Literal */ .chroma .l { }
|
||||
/* LiteralDate */ .chroma .ld { }
|
||||
/* LiteralString */ .chroma .s { color:#b8bb26 }
|
||||
/* LiteralStringAffix */ .chroma .sa { color:#b8bb26 }
|
||||
/* LiteralStringBacktick */ .chroma .sb { color:#b8bb26 }
|
||||
/* LiteralStringChar */ .chroma .sc { color:#b8bb26 }
|
||||
/* LiteralStringDelimiter */ .chroma .dl { color:#b8bb26 }
|
||||
/* LiteralStringDoc */ .chroma .sd { color:#b8bb26 }
|
||||
/* LiteralStringDouble */ .chroma .s2 { color:#b8bb26 }
|
||||
/* LiteralStringEscape */ .chroma .se { color:#b8bb26 }
|
||||
/* LiteralStringHeredoc */ .chroma .sh { color:#b8bb26 }
|
||||
/* LiteralStringInterpol */ .chroma .si { color:#b8bb26 }
|
||||
/* LiteralStringOther */ .chroma .sx { color:#b8bb26 }
|
||||
/* LiteralStringRegex */ .chroma .sr { color:#b8bb26 }
|
||||
/* LiteralStringSingle */ .chroma .s1 { color:#b8bb26 }
|
||||
/* LiteralStringSymbol */ .chroma .ss { color:#83a598 }
|
||||
/* LiteralNumber */ .chroma .m { color:#d3869b }
|
||||
/* LiteralNumberBin */ .chroma .mb { color:#d3869b }
|
||||
/* LiteralNumberFloat */ .chroma .mf { color:#d3869b }
|
||||
/* LiteralNumberHex */ .chroma .mh { color:#d3869b }
|
||||
/* LiteralNumberInteger */ .chroma .mi { color:#d3869b }
|
||||
/* LiteralNumberIntegerLong */ .chroma .il { color:#d3869b }
|
||||
/* LiteralNumberOct */ .chroma .mo { color:#d3869b }
|
||||
/* Operator */ .chroma .o { color:#fe8019 }
|
||||
/* OperatorWord */ .chroma .ow { color:#fe8019 }
|
||||
/* Punctuation */ .chroma .p { }
|
||||
/* Comment */ .chroma .c { color:#928374;font-style:italic }
|
||||
/* CommentHashbang */ .chroma .ch { color:#928374;font-style:italic }
|
||||
/* CommentMultiline */ .chroma .cm { color:#928374;font-style:italic }
|
||||
/* CommentSingle */ .chroma .c1 { color:#928374;font-style:italic }
|
||||
/* CommentSpecial */ .chroma .cs { color:#928374;font-style:italic }
|
||||
/* CommentPreproc */ .chroma .cp { color:#8ec07c }
|
||||
/* CommentPreprocFile */ .chroma .cpf { color:#8ec07c;font-style:italic }
|
||||
/* Generic */ .chroma .g { }
|
||||
/* GenericDeleted */ .chroma .gd { color:#282828;background-color:#fb4934 }
|
||||
/* GenericEmph */ .chroma .ge { color:#83a598;text-decoration:underline }
|
||||
/* GenericError */ .chroma .gr { background-color:#fb4934;font-weight:bold }
|
||||
/* GenericHeading */ .chroma .gh { color:#b8bb26;font-weight:bold }
|
||||
/* GenericInserted */ .chroma .gi { color:#282828;background-color:#b8bb26 }
|
||||
/* GenericOutput */ .chroma .go { color:#504945 }
|
||||
/* GenericPrompt */ .chroma .gp { }
|
||||
/* GenericStrong */ .chroma .gs { }
|
||||
/* GenericSubheading */ .chroma .gu { color:#b8bb26;font-weight:bold }
|
||||
/* GenericTraceback */ .chroma .gt { background-color:#fb4934;font-weight:bold }
|
||||
/* GenericUnderline */ .chroma .gl { }
|
||||
/* TextWhitespace */ .chroma .w { }
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Background */ .bg { color:#3c3836;background-color:#fbf1c7; }
|
||||
/* PreWrapper */ .chroma { color:#3c3836;background-color:#fbf1c7; }
|
||||
/* Other */ .chroma .x { }
|
||||
/* Error */ .chroma .err { }
|
||||
/* CodeLine */ .chroma .cl { }
|
||||
/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color:#e1d8b3 }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#9d9b9a }
|
||||
/* LineNumbers */ .chroma .ln { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#9d9b9a }
|
||||
/* Line */ .chroma .line { display:flex; }
|
||||
/* Keyword */ .chroma .k { color:#af3a03 }
|
||||
/* KeywordConstant */ .chroma .kc { color:#af3a03 }
|
||||
/* KeywordDeclaration */ .chroma .kd { color:#af3a03 }
|
||||
/* KeywordNamespace */ .chroma .kn { color:#af3a03 }
|
||||
/* KeywordPseudo */ .chroma .kp { color:#af3a03 }
|
||||
/* KeywordReserved */ .chroma .kr { color:#af3a03 }
|
||||
/* KeywordType */ .chroma .kt { color:#b57614 }
|
||||
/* Name */ .chroma .n { }
|
||||
/* NameAttribute */ .chroma .na { color:#79740e;font-weight:bold }
|
||||
/* NameBuiltin */ .chroma .nb { color:#b57614 }
|
||||
/* NameBuiltinPseudo */ .chroma .bp { }
|
||||
/* NameClass */ .chroma .nc { }
|
||||
/* NameConstant */ .chroma .no { color:#d3869b }
|
||||
/* NameDecorator */ .chroma .nd { }
|
||||
/* NameEntity */ .chroma .ni { color:#b57614 }
|
||||
/* NameException */ .chroma .ne { color:#fb4934 }
|
||||
/* NameFunction */ .chroma .nf { color:#b57614 }
|
||||
/* NameFunctionMagic */ .chroma .fm { }
|
||||
/* NameLabel */ .chroma .nl { color:#9d0006 }
|
||||
/* NameNamespace */ .chroma .nn { }
|
||||
/* NameOther */ .chroma .nx { }
|
||||
/* NameProperty */ .chroma .py { }
|
||||
/* NameTag */ .chroma .nt { color:#9d0006 }
|
||||
/* NameVariable */ .chroma .nv { }
|
||||
/* NameVariableClass */ .chroma .vc { }
|
||||
/* NameVariableGlobal */ .chroma .vg { }
|
||||
/* NameVariableInstance */ .chroma .vi { }
|
||||
/* NameVariableMagic */ .chroma .vm { }
|
||||
/* Literal */ .chroma .l { }
|
||||
/* LiteralDate */ .chroma .ld { }
|
||||
/* LiteralString */ .chroma .s { color:#79740e }
|
||||
/* LiteralStringAffix */ .chroma .sa { color:#79740e }
|
||||
/* LiteralStringBacktick */ .chroma .sb { color:#79740e }
|
||||
/* LiteralStringChar */ .chroma .sc { color:#79740e }
|
||||
/* LiteralStringDelimiter */ .chroma .dl { color:#79740e }
|
||||
/* LiteralStringDoc */ .chroma .sd { color:#79740e }
|
||||
/* LiteralStringDouble */ .chroma .s2 { color:#79740e }
|
||||
/* LiteralStringEscape */ .chroma .se { color:#79740e }
|
||||
/* LiteralStringHeredoc */ .chroma .sh { color:#79740e }
|
||||
/* LiteralStringInterpol */ .chroma .si { color:#79740e }
|
||||
/* LiteralStringOther */ .chroma .sx { color:#79740e }
|
||||
/* LiteralStringRegex */ .chroma .sr { color:#79740e }
|
||||
/* LiteralStringSingle */ .chroma .s1 { color:#79740e }
|
||||
/* LiteralStringSymbol */ .chroma .ss { color:#076678 }
|
||||
/* LiteralNumber */ .chroma .m { color:#8f3f71 }
|
||||
/* LiteralNumberBin */ .chroma .mb { color:#8f3f71 }
|
||||
/* LiteralNumberFloat */ .chroma .mf { color:#8f3f71 }
|
||||
/* LiteralNumberHex */ .chroma .mh { color:#8f3f71 }
|
||||
/* LiteralNumberInteger */ .chroma .mi { color:#8f3f71 }
|
||||
/* LiteralNumberIntegerLong */ .chroma .il { color:#8f3f71 }
|
||||
/* LiteralNumberOct */ .chroma .mo { color:#8f3f71 }
|
||||
/* Operator */ .chroma .o { color:#af3a03 }
|
||||
/* OperatorWord */ .chroma .ow { color:#af3a03 }
|
||||
/* Punctuation */ .chroma .p { }
|
||||
/* Comment */ .chroma .c { color:#928374;font-style:italic }
|
||||
/* CommentHashbang */ .chroma .ch { color:#928374;font-style:italic }
|
||||
/* CommentMultiline */ .chroma .cm { color:#928374;font-style:italic }
|
||||
/* CommentSingle */ .chroma .c1 { color:#928374;font-style:italic }
|
||||
/* CommentSpecial */ .chroma .cs { color:#928374;font-style:italic }
|
||||
/* CommentPreproc */ .chroma .cp { color:#427b58 }
|
||||
/* CommentPreprocFile */ .chroma .cpf { color:#427b58;font-style:italic }
|
||||
/* Generic */ .chroma .g { }
|
||||
/* GenericDeleted */ .chroma .gd { color:#282828;background-color:#9d0006 }
|
||||
/* GenericEmph */ .chroma .ge { color:#076678;text-decoration:underline }
|
||||
/* GenericError */ .chroma .gr { background-color:#9d0006;font-weight:bold }
|
||||
/* GenericHeading */ .chroma .gh { color:#79740e;font-weight:bold }
|
||||
/* GenericInserted */ .chroma .gi { color:#282828;background-color:#79740e }
|
||||
/* GenericOutput */ .chroma .go { color:#504945 }
|
||||
/* GenericPrompt */ .chroma .gp { }
|
||||
/* GenericStrong */ .chroma .gs { }
|
||||
/* GenericSubheading */ .chroma .gu { color:#79740e;font-weight:bold }
|
||||
/* GenericTraceback */ .chroma .gt { background-color:#3c3836;font-weight:bold }
|
||||
/* GenericUnderline */ .chroma .gl { }
|
||||
/* TextWhitespace */ .chroma .w { }
|
||||
8
themes/hugo-theme-yue/data/i18n.yaml
Normal file
8
themes/hugo-theme-yue/data/i18n.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
ar:
|
||||
colonInTranslationList: ': ' # Example: "العربية: المقالة الثالثة"
|
||||
en:
|
||||
colonInTranslationList: ': ' # Example: "English: Post 3"
|
||||
fr:
|
||||
colonInTranslationList: ' : ' # Example: "Français : Post 3"
|
||||
zh-cn: # This should be zh-CN but Hugo convert languagePrefix to lowercase, see https://github.com/gohugoio/hugo/issues/9404
|
||||
colonInTranslationList: ':' # Example: "中文:文章 3"
|
||||
5
themes/hugo-theme-yue/exampleSite/.gitignore
vendored
Normal file
5
themes/hugo-theme-yue/exampleSite/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
node_modules/
|
||||
/public
|
||||
/resources/_gen/
|
||||
/assets/jsconfig.json
|
||||
.hugo_build.lock
|
||||
7
themes/hugo-theme-yue/exampleSite/content/en/_index.md
Normal file
7
themes/hugo-theme-yue/exampleSite/content/en/_index.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
date: "2023-01-01T08:00:00-07:00"
|
||||
draft: false
|
||||
title: Home
|
||||
---
|
||||
|
||||
Yue is a minimal Hugo theme. Source code: <https://github.com/CyrusYip/hugo-theme-yue>.
|
||||
6
themes/hugo-theme-yue/exampleSite/content/en/about.md
Normal file
6
themes/hugo-theme-yue/exampleSite/content/en/about.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: About
|
||||
date: 2024-06-27T23:14:15+08:00
|
||||
---
|
||||
|
||||
Yue is a minimal Hugo theme. Source code: <https://github.com/CyrusYip/hugo-theme-yue>.
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
title: Categories
|
||||
---
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
title: Posts
|
||||
---
|
||||
@@ -0,0 +1,146 @@
|
||||
---
|
||||
author: Hugo Authors
|
||||
categories:
|
||||
- themes
|
||||
- syntax
|
||||
date: 2019-03-11T00:00:00+00:00
|
||||
lastmod: 2024-07-22T00:00:00+00:00
|
||||
description: Sample article showcasing basic Markdown syntax and formatting for HTML
|
||||
elements.
|
||||
tags:
|
||||
- markdown
|
||||
- css
|
||||
- html
|
||||
title: Markdown Syntax Guide
|
||||
---
|
||||
|
||||
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
|
||||
<!--more-->
|
||||
|
||||
## Headings
|
||||
|
||||
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
|
||||
|
||||
# H1
|
||||
## H2
|
||||
### H3
|
||||
#### H4
|
||||
##### H5
|
||||
###### H6
|
||||
|
||||
## Paragraph
|
||||
|
||||
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
|
||||
|
||||
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
|
||||
|
||||
## Blockquotes
|
||||
|
||||
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
|
||||
|
||||
#### Blockquote without attribution
|
||||
|
||||
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||||
> **Note** that you can use *Markdown syntax* within a blockquote.
|
||||
|
||||
#### Blockquote with attribution
|
||||
|
||||
> Don't communicate by sharing memory, share memory by communicating.<br>
|
||||
> — <cite>Rob Pike[^1]</cite>
|
||||
|
||||
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
|
||||
|
||||
## Tables
|
||||
|
||||
Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-box.
|
||||
|
||||
Name | Age
|
||||
--------|------
|
||||
Bob | 27
|
||||
Alice | 23
|
||||
|
||||
#### Inline Markdown within tables
|
||||
|
||||
| Italics | Bold | Code |
|
||||
| -------- | -------- | ------ |
|
||||
| *italics* | **bold** | `code` |
|
||||
|
||||
## Code Blocks
|
||||
|
||||
#### Code block with backticks
|
||||
|
||||
```html
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
#### Code block indented with four spaces
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
#### Code block with Hugo's internal highlight shortcode
|
||||
{{< highlight html >}}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
{{< /highlight >}}
|
||||
|
||||
## List Types
|
||||
|
||||
#### Ordered List
|
||||
|
||||
1. First item
|
||||
2. Second item
|
||||
3. Third item
|
||||
|
||||
#### Unordered List
|
||||
|
||||
* List item
|
||||
* Another item
|
||||
* And another item
|
||||
|
||||
#### Nested list
|
||||
|
||||
* Fruit
|
||||
* Apple
|
||||
* Orange
|
||||
* Banana
|
||||
* Dairy
|
||||
* Milk
|
||||
* Cheese
|
||||
|
||||
## Other Elements — abbr, sub, sup, kbd, mark
|
||||
|
||||
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
|
||||
|
||||
H<sub>2</sub>O
|
||||
|
||||
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
||||
|
||||
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
|
||||
|
||||
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
||||
@@ -0,0 +1,47 @@
|
||||
---
|
||||
author: Hugo Authors
|
||||
date: 2019-03-09T00:00:00Z
|
||||
lastmod: 2019-03-09T00:00:00Z # Won't show because it's equal to date
|
||||
description: Lorem Ipsum Dolor Si Amet
|
||||
tags:
|
||||
- markdown
|
||||
- text
|
||||
title: Placeholder Text
|
||||
---
|
||||
|
||||
Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
|
||||
|
||||
1. Exierant elisi ambit vivere dedere
|
||||
2. Duce pollice
|
||||
3. Eris modo
|
||||
4. Spargitque ferrea quos palude
|
||||
|
||||
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
|
||||
|
||||
1. Comas hunc haec pietate fetum procerum dixit
|
||||
2. Post torum vates letum Tiresia
|
||||
3. Flumen querellas
|
||||
4. Arcanaque montibus omnes
|
||||
5. Quidem et
|
||||
|
||||
# Vagus elidunt
|
||||
|
||||
<!-- SVG should not overflow. -->
|
||||
|
||||
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
|
||||
|
||||
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
|
||||
|
||||
## Mane refeci capiebant unda mulcebat
|
||||
|
||||
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
|
||||
|
||||
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
|
||||
|
||||
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
|
||||
|
||||
{{< css.inline >}}
|
||||
<style>
|
||||
.canon { background: white; width: 100%; height: auto; }
|
||||
</style>
|
||||
{{< /css.inline >}}
|
||||
11
themes/hugo-theme-yue/exampleSite/content/en/posts/post-1.md
Normal file
11
themes/hugo-theme-yue/exampleSite/content/en/posts/post-1.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
date: "2023-01-15T09:00:00-07:00"
|
||||
draft: false
|
||||
tags:
|
||||
- red
|
||||
title: Post 1
|
||||
---
|
||||
|
||||
Tempor proident minim aliquip reprehenderit dolor et ad anim Lorem duis sint eiusmod. Labore ut ea duis dolor. Incididunt consectetur proident qui occaecat incididunt do nisi Lorem. Tempor do laborum elit laboris excepteur eiusmod do. Eiusmod nisi excepteur ut amet pariatur adipisicing Lorem.
|
||||
|
||||
Occaecat nulla excepteur dolore excepteur duis eiusmod ullamco officia anim in voluptate ea occaecat officia. Cillum sint esse velit ea officia minim fugiat. Elit ea esse id aliquip pariatur cupidatat id duis minim incididunt ea ea. Anim ut duis sunt nisi. Culpa cillum sit voluptate voluptate eiusmod dolor. Enim nisi Lorem ipsum irure est excepteur voluptate eu in enim nisi. Nostrud ipsum Lorem anim sint labore consequat do.
|
||||
16
themes/hugo-theme-yue/exampleSite/content/en/posts/post-2.md
Normal file
16
themes/hugo-theme-yue/exampleSite/content/en/posts/post-2.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
date: 2023-02-15T10:00:00-07:00
|
||||
lastmod: 2024-07-22T10:00:00+00:00
|
||||
draft: false
|
||||
tags:
|
||||
- red
|
||||
- green
|
||||
title: Post 2 | Multiple authors
|
||||
author:
|
||||
- John Doe
|
||||
- Jane Doe
|
||||
---
|
||||
|
||||
Anim eiusmod irure incididunt sint cupidatat. Incididunt irure irure irure nisi ipsum do ut quis fugiat consectetur proident cupidatat incididunt cillum. Dolore voluptate occaecat qui mollit laborum ullamco et. Ipsum laboris officia anim laboris culpa eiusmod ex magna ex cupidatat anim ipsum aute. Mollit aliquip occaecat qui sunt velit ut cupidatat reprehenderit enim sunt laborum. Velit veniam in officia nulla adipisicing ut duis officia.
|
||||
|
||||
Exercitation voluptate irure in irure tempor mollit Lorem nostrud ad officia. Velit id fugiat occaecat do tempor. Sit officia Lorem aliquip eu deserunt consectetur. Aute proident deserunt in nulla aliquip dolore ipsum Lorem ut cupidatat consectetur sit sint laborum. Esse cupidatat sit sint sunt tempor exercitation deserunt. Labore dolor duis laborum est do nisi ut veniam dolor et nostrud nostrud.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -0,0 +1,31 @@
|
||||
---
|
||||
date: "2023-03-15T11:00:00-07:00"
|
||||
draft: false
|
||||
tags:
|
||||
- red
|
||||
- green
|
||||
- blue
|
||||
title: Post 3
|
||||
---
|
||||
|
||||
TOC test
|
||||
|
||||
# h1 1
|
||||
## h2 1
|
||||
### h3 1
|
||||
#### h4 1
|
||||
##### h5 1
|
||||
###### h6 1
|
||||
|
||||
# h1 2
|
||||
## h2 2
|
||||
### h3 2
|
||||
#### h4 2
|
||||
##### h5 2
|
||||
###### h6 2
|
||||
|
||||
Occaecat aliqua consequat laborum ut ex aute aliqua culpa quis irure esse magna dolore quis. Proident fugiat labore eu laboris officia Lorem enim. Ipsum occaecat cillum ut tempor id sint aliqua incididunt nisi incididunt reprehenderit. Voluptate ad minim sint est aute aliquip esse occaecat tempor officia qui sunt. Aute ex ipsum id ut in est velit est laborum incididunt. Aliqua qui id do esse sunt eiusmod id deserunt eu nostrud aute sit ipsum. Deserunt esse cillum Lorem non magna adipisicing mollit amet consequat.
|
||||
|
||||

|
||||
|
||||
Sit excepteur do velit veniam mollit in nostrud laboris incididunt ea. Amet eu cillum ut reprehenderit culpa aliquip labore laborum amet sit sit duis. Laborum id proident nostrud dolore laborum reprehenderit quis mollit nulla amet veniam officia id id. Aliquip in deserunt qui magna duis qui pariatur officia sunt deserunt.
|
||||
321
themes/hugo-theme-yue/exampleSite/content/en/posts/post-4.md
Normal file
321
themes/hugo-theme-yue/exampleSite/content/en/posts/post-4.md
Normal file
@@ -0,0 +1,321 @@
|
||||
---
|
||||
date: 2024-07-13T16:15:49+08:00
|
||||
lastmod: 2024-07-22T11:00:00+00:00
|
||||
tags:
|
||||
- red
|
||||
title: Post 4 Markdown Test
|
||||
slug: post-4
|
||||
---
|
||||
|
||||
|
||||
# GitHub Flavored Markdown Test
|
||||
|
||||
## Headers
|
||||
# H1
|
||||
## H2
|
||||
### H3
|
||||
#### H4
|
||||
##### H5
|
||||
###### H6
|
||||
|
||||
## Emoji
|
||||
|
||||
`:see_no_evil:` :see_no_evil:
|
||||
|
||||
## Text
|
||||
|
||||
### Normal text
|
||||
|
||||
I can eat glass, it does not hurt me.I can eat glass, it does not hurt me.I can eat glass, it does not hurt me.I can eat glass, it does not hurt me.I can eat glass, it does not hurt me.I can eat glass, it does not hurt me.I can eat glass, it does not hurt me.I can eat glass, it does not hurt me.I can eat glass, it does not hurt me.I can eat glass, it does not hurt me.
|
||||
|
||||
The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.
|
||||
|
||||
### Long word
|
||||
|
||||
word aVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWord word
|
||||
|
||||
List:
|
||||
|
||||
- word aVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWord word
|
||||
|
||||
1. word aVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWordaVeryLongWord word
|
||||
|
||||
### Long link
|
||||
|
||||
A long URL: <https://example.org/aVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURL>.
|
||||
|
||||
A link with a long word: [aLinkWithALongWordaLinkWithALongWordaLinkWithALongWordaLinkWithALongWordaLinkWithALongWordaLinkWithALongWordaLinkWithALongWordaLinkWithALongWordaLinkWithALongWordaLinkWithALongWord](https://example.org/aVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURL).
|
||||
|
||||
A link with a long text: [A link with a long text. A link with a long text. A link with a long text. A link with a long text. A link with a long text. A link with a long text. A link with a long text. A link with a long text. A link with a long text. A link with a long text.](https://example.org/aVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURL)
|
||||
|
||||
List:
|
||||
|
||||
- A long URL: <https://example.org/aVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURL>.
|
||||
|
||||
1. A long URL: <https://example.org/aVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURLaVeryLongURL>.
|
||||
|
||||
## Emphasis
|
||||
|
||||
*Italic text*
|
||||
_Italic text_
|
||||
|
||||
**Bold text**
|
||||
|
||||
__Bold text__
|
||||
|
||||
***Bold and Italic text***
|
||||
|
||||
___Bold and Italic text___
|
||||
|
||||
## Blockquotes
|
||||
|
||||
This is a blockquote demo. This is a blockquote demo. This is a blockquote demo. This is a blockquote demo. This is a blockquote demo. This is a blockquote demo. This is a blockquote demo. This is a blockquote demo.
|
||||
|
||||
> This is a blockquote. This is a blockquote. This is a blockquote. This is a blockquote. This is a blockquote. This is a blockquote. This is a blockquote.
|
||||
>
|
||||
> This is a blockquote. This is a blockquote. This is a blockquote. This is a blockquote. This is a blockquote. This is a blockquote. This is a blockquote.
|
||||
|
||||
## Lists
|
||||
|
||||
### Unordered List
|
||||
|
||||
- Item 1
|
||||
- Subitem 1
|
||||
- Subitem 2
|
||||
- Item 2
|
||||
|
||||
### Ordered List
|
||||
|
||||
1. First item
|
||||
2. Second item
|
||||
3. Third item
|
||||
|
||||
## Code
|
||||
|
||||
### Inline Code
|
||||
|
||||
Here is some `inline code`. Here is longer `inline code inline code inline codeinline codeinline codeinline codeinline code`.
|
||||
|
||||
### Code Block with JavaScript Tag
|
||||
|
||||
#### Line number enabled
|
||||
|
||||
```javascript {linenos=true}
|
||||
// Comments are in italics. The last character of a line overflows if there is no padding.
|
||||
// WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
|
||||
// MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
```
|
||||
|
||||
```javascript {linenos=true}
|
||||
console.log("Hello")
|
||||
console.log("Hello")
|
||||
console.log("Hello")
|
||||
```
|
||||
|
||||
```javascript {linenos=true}
|
||||
function sayHello() {
|
||||
console.log("Hello, world!"); console.log("Hello, world!"); console.log("Hello, world!"); console.log("Hello, world!");
|
||||
}
|
||||
```
|
||||
|
||||
#### Line number disabled
|
||||
|
||||
```javascript {linenos=false}
|
||||
// Comments are in italics. The last character of a line overflows if there is no padding.
|
||||
// https://github.com/CyrusYip/hugo-theme-yue/issues/7
|
||||
// WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
|
||||
// MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
|
||||
```
|
||||
|
||||
```javascript {linenos=false}
|
||||
function sayHello() {
|
||||
console.log("Hello, world!"); console.log("Hello, world!"); console.log("Hello, world!"); console.log("Hello, world!");
|
||||
}
|
||||
```
|
||||
|
||||
### Code Block with Bash Tag
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
echo "Hello, world!"
|
||||
```
|
||||
|
||||
### Code Block without Language Tag
|
||||
|
||||
```
|
||||
code block without
|
||||
a language tag.
|
||||
```
|
||||
|
||||
```
|
||||
code block without
|
||||
a language tag.
|
||||
```
|
||||
|
||||
Paragraph.
|
||||
|
||||
```
|
||||
This is a code block without a language tag. This is a code block without a language tag. This is a code block without a language tag.
|
||||
This is a code block without a language tag. This is a code block without a language tag. This is a code block without a language tag.
|
||||
```
|
||||
|
||||
Paragraph.
|
||||
|
||||
```
|
||||
#!/bin/bash
|
||||
echo "Hello, world!"
|
||||
```
|
||||
|
||||
### Code block indented with four spaces
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
<p>Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text Long Text</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
### Code block with Hugo's internal highlight shortcode
|
||||
|
||||
{{< highlight html >}}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
{{< /highlight >}}
|
||||
|
||||
## Horizontal Rule
|
||||
|
||||
1
|
||||
|
||||
---
|
||||
|
||||
2
|
||||
|
||||
***
|
||||
|
||||
3
|
||||
|
||||
___
|
||||
|
||||
## Links
|
||||
|
||||
[GitHub](https://github.com)
|
||||
|
||||
## Images without caption
|
||||
|
||||
12
|
||||
|
||||
12
|
||||
|
||||
## Images with caption
|
||||
|
||||
text text
|
||||
|
||||
<figure>
|
||||
<img src="https://via.placeholder.com/2000">
|
||||
<figcaption>2000×2000 image</figcaption>
|
||||
</figure>
|
||||
|
||||
text text
|
||||
|
||||
<figure>
|
||||
<img src="https://via.placeholder.com/200">
|
||||
<figcaption>200×200 image</figcaption>
|
||||
</figure>
|
||||
|
||||
text text
|
||||
|
||||
## iframe
|
||||
|
||||
<iframe
|
||||
id="inlineFrameExample"
|
||||
title="Inline Frame Example"
|
||||
width="2000"
|
||||
src="https://www.openstreetmap.org/export/embed.html?bbox=-0.004017949104309083%2C51.47612752641776%2C0.00030577182769775396%2C51.478569861898606&layer=mapnik">
|
||||
</iframe>
|
||||
|
||||
## video
|
||||
|
||||
This is fake video, which is used to test overflow.
|
||||
|
||||
<video controls width="2000">
|
||||
<source src="/media/cc0-videos/flower.webm" type="video/webm" />
|
||||
<source src="/media/cc0-videos/flower.mp4" type="video/mp4" />
|
||||
</video>
|
||||
|
||||
## Tables
|
||||
|
||||
### Ordinary Table
|
||||
|
||||
| Header 1 | Header 2 |
|
||||
|----------|----------|
|
||||
| Cell 1 | Cell 2 |
|
||||
| Cell 3 | Cell 4 |
|
||||
|
||||
### Long Table
|
||||
|
||||
| Header 1 | Header 2 | Header 3 | Header 4 | Header 5 | Header 6 | Header 7 | Header 8 | Header 9 | Header 10 |
|
||||
|----------|----------|----------|----------|----------|----------|----------|----------|----------|-----------|
|
||||
| Cell 1 | Cell 2 | Cell 3 | Cell 4 | Cell 5 | Cell 6 | Cell 7 | Cell 8 | Cell 9 | Cell 10 |
|
||||
| Cell 11 | Cell 12 | Cell 13 | Cell 14 | Cell 15 | Cell 16 | Cell 17 | Cell 18 | Cell 19 | Cell 20 |
|
||||
| Cell 21 | Cell 22 | Cell 23 | Cell 24 | Cell 25 | Cell 26 | Cell 27 | Cell 28 | Cell 29 | Cell 30 |
|
||||
|
||||
|
||||
### Long Table with 20 Headers
|
||||
|
||||
| Header 1 | Header 2 | Header 3 | Header 4 | Header 5 | Header 6 | Header 7 | Header 8 | Header 9 | Header 10 | Header 11 | Header 12 | Header 13 | Header 14 | Header 15 | Header 16 | Header 17 | Header 18 | Header 19 | Header 20 |
|
||||
|----------|----------|----------|----------|----------|----------|----------|----------|----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|
|
||||
| Cell 1 | Cell 2 | Cell 3 | Cell 4 | Cell 5 | Cell 6 | Cell 7 | Cell 8 | Cell 9 | Cell 10 | Cell 11 | Cell 12 | Cell 13 | Cell 14 | Cell 15 | Cell 16 | Cell 17 | Cell 18 | Cell 19 | Cell 20 |
|
||||
| Cell 21 | Cell 22 | Cell 23 | Cell 24 | Cell 25 | Cell 26 | Cell 27 | Cell 28 | Cell 29 | Cell 30 | Cell 31 | Cell 32 | Cell 33 | Cell 34 | Cell 35 | Cell 36 | Cell 37 | Cell 38 | Cell 39 | Cell 40 |
|
||||
| Cell 41 | Cell 42 | Cell 43 | Cell 44 | Cell 45 | Cell 46 | Cell 47 | Cell 48 | Cell 49 | Cell 50 | Cell 51 | Cell 52 | Cell 53 | Cell 54 | Cell 55 | Cell 56 | Cell 57 | Cell 58 | Cell 59 | Cell 60 |
|
||||
| Cell 61 | Cell 62 | Cell 63 | Cell 64 | Cell 65 | Cell 66 | Cell 67 | Cell 68 | Cell 69 | Cell 70 | Cell 71 | Cell 72 | Cell 73 | Cell 74 | Cell 75 | Cell 76 | Cell 77 | Cell 78 | Cell 79 | Cell 80 |
|
||||
| Cell 81 | Cell 82 | Cell 83 | Cell 84 | Cell 85 | Cell 86 | Cell 87 | Cell 88 | Cell 89 | Cell 90 | Cell 91 | Cell 92 | Cell 93 | Cell 94 | Cell 95 | Cell 96 | Cell 97 | Cell 98 | Cell 99 | Cell 100 |
|
||||
| Cell 101 | Cell 102 | Cell 103 | Cell 104 | Cell 105 | Cell 106 | Cell 107 | Cell 108 | Cell 109 | Cell 110 | Cell 111 | Cell 112 | Cell 113 | Cell 114 | Cell 115 | Cell 116 | Cell 117 | Cell 118 | Cell 119 | Cell 120 |
|
||||
| Cell 121 | Cell 122 | Cell 123 | Cell 124 | Cell 125 | Cell 126 | Cell 127 | Cell 128 | Cell 129 | Cell 130 | Cell 131 | Cell 132 | Cell 133 | Cell 134 | Cell 135 | Cell 136 | Cell 137 | Cell 138 | Cell 139 | Cell 140 |
|
||||
| Cell 141 | Cell 142 | Cell 143 | Cell 144 | Cell 145 | Cell 146 | Cell 147 | Cell 148 | Cell 149 | Cell 150 | Cell 151 | Cell 152 | Cell 153 | Cell 154 | Cell 155 | Cell 156 | Cell 157 | Cell 158 | Cell 159 | Cell 160 |
|
||||
| Cell 161 | Cell 162 | Cell 163 | Cell 164 | Cell 165 | Cell 166 | Cell 167 | Cell 168 | Cell 169 | Cell 170 | Cell 171 | Cell 172 | Cell 173 | Cell 174 | Cell 175 | Cell 176 | Cell 177 | Cell 178 | Cell 179 | Cell 180 |
|
||||
| Cell 181 | Cell 182 | Cell 183 | Cell 184 | Cell 185 | Cell 186 | Cell 187 | Cell 188 | Cell 189 | Cell 190 | Cell 191 | Cell 192 | Cell 193 | Cell 194 | Cell 195 | Cell 196 | Cell 197 | Cell 198 | Cell 199 | Cell 200 |
|
||||
| Cell 201 | Cell 202 | Cell 203 | Cell 204 | Cell 205 | Cell 206 | Cell 207 | Cell 208 | Cell 209 | Cell 210 | Cell 211 | Cell 212 | Cell 213 | Cell 214 | Cell 215 | Cell 216 | Cell 217 | Cell 218 | Cell 219 | Cell 220 |
|
||||
| Cell 221 | Cell 222 | Cell 223 | Cell 224 | Cell 225 | Cell 226 | Cell 227 | Cell 228 | Cell 229 | Cell 230 | Cell 231 | Cell 232 | Cell 233 | Cell 234 | Cell 235 | Cell 236 | Cell 237 | Cell 238 | Cell 239 | Cell 240 |
|
||||
| Cell 241 | Cell 242 | Cell 243 | Cell 244 | Cell 245 | Cell 246 | Cell 247 | Cell 248 | Cell 249 | Cell 250 | Cell 251 | Cell 252 | Cell 253 | Cell 254 | Cell 255 | Cell 256 | Cell 257 | Cell 258 | Cell 259 | Cell 260 |
|
||||
| Cell 261 | Cell 262 | Cell 263 | Cell 264 | Cell 265 | Cell 266 | Cell 267 | Cell 268 | Cell 269 | Cell 270 | Cell 271 | Cell 272 | Cell 273 | Cell 274 | Cell 275 | Cell 276 | Cell 277 | Cell 278 | Cell 279 | Cell 280 |
|
||||
| Cell 281 | Cell 282 | Cell 283 | Cell 284 | Cell 285 | Cell 286 | Cell 287 | Cell 288 | Cell 289 | Cell 290 | Cell 291 | Cell 292 | Cell 293 | Cell 294 | Cell 295 | Cell 296 | Cell 297 | Cell 298 | Cell 299 | Cell 300 |
|
||||
| Cell 301 | Cell 302 | Cell 303 | Cell 304 | Cell 305 | Cell 306 | Cell 307 | Cell 308 | Cell 309 | Cell 310 | Cell 311 | Cell 312 | Cell 313 | Cell 314 | Cell 315 | Cell 316 | Cell 317 | Cell 318 | Cell 319 | Cell 320 |
|
||||
| Cell 321 | Cell 322 | Cell 323 | Cell 324 | Cell 325 | Cell 326 | Cell 327 | Cell 328 | Cell 329 | Cell 330 | Cell 331 | Cell 332 | Cell 333 | Cell 334 | Cell 335 | Cell 336 | Cell 337 | Cell 338 | Cell 339 | Cell 340 |
|
||||
| Cell 341 | Cell 342 | Cell 343 | Cell 344 | Cell 345 | Cell 346 | Cell 347 | Cell 348 | Cell 349 | Cell 350 | Cell 351 | Cell 352 | Cell 353 | Cell 354 | Cell 355 | Cell 356 | Cell 357 | Cell 358 | Cell 359 | Cell 360 |
|
||||
| Cell 361 | Cell 362 | Cell 363 | Cell 364 | Cell 365 | Cell 366 | Cell 367 | Cell 368 | Cell 369 | Cell 370 | Cell 371 | Cell 372 | Cell 373 | Cell 374 | Cell 375 | Cell 376 | Cell 377 | Cell 378 | Cell 379 | Cell 380 |
|
||||
| Cell 381 | Cell 382 | Cell 383 | Cell 384 | Cell 385 | Cell 386 | Cell 387 | Cell 388 | Cell 389 | Cell 390 | Cell 391 | Cell 392 | Cell 393 | Cell 394 | Cell 395 | Cell 396 | Cell 397 | Cell 398 | Cell 399 | Cell 400 |
|
||||
|
||||
|
||||
## Task Lists
|
||||
|
||||
Task list:
|
||||
|
||||
- [x] Task 1
|
||||
- [x] Task 1.1
|
||||
- [x] Task 1.1.1
|
||||
- [x] Task 1.1.2
|
||||
- [ ] Task 1.2
|
||||
- [ ] Task 2
|
||||
- [x] Task 3
|
||||
|
||||
## Strikethrough
|
||||
|
||||
~~This was a mistake.~~
|
||||
|
||||
## Footnotes
|
||||
Here is a footnote reference[^1].
|
||||
|
||||
[^1]: Here is the footnote.
|
||||
15
themes/hugo-theme-yue/exampleSite/content/en/posts/post-5.md
Normal file
15
themes/hugo-theme-yue/exampleSite/content/en/posts/post-5.md
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
date: 2024-07-22T00:00:00+08:00
|
||||
tags:
|
||||
- red
|
||||
title: Post 5
|
||||
slug: post-5
|
||||
---
|
||||
|
||||
Post 5.
|
||||
|
||||
## Lorem
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
title: Tags
|
||||
---
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
date: "2023-01-01T08:00:00-07:00"
|
||||
draft: false
|
||||
title: 主页
|
||||
---
|
||||
|
||||
Yue 是极简的 Hugo 主题。源代码:<https://github.com/CyrusYip/hugo-theme-yue>。
|
||||
6
themes/hugo-theme-yue/exampleSite/content/zh-CN/about.md
Normal file
6
themes/hugo-theme-yue/exampleSite/content/zh-CN/about.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: 关于
|
||||
date: 2024-06-27T23:14:15+08:00
|
||||
---
|
||||
|
||||
Yue 是极简的 Hugo 主题。源代码:<https://github.com/CyrusYip/hugo-theme-yue>。
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
title: 类别
|
||||
---
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
date: "2023-01-01T08:30:00-07:00"
|
||||
draft: false
|
||||
title: 文章
|
||||
---
|
||||
|
||||
这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。这里列举了所有文章。
|
||||
@@ -0,0 +1,146 @@
|
||||
---
|
||||
author: Hugo Authors
|
||||
categories:
|
||||
- themes
|
||||
- syntax
|
||||
date: 2019-03-11T00:00:00+00:00
|
||||
lastmod: 2024-07-22T00:00:00+00:00
|
||||
description: Sample article showcasing basic Markdown syntax and formatting for HTML
|
||||
elements.
|
||||
tags:
|
||||
- markdown
|
||||
- css
|
||||
- html
|
||||
title: Markdown Syntax Guide
|
||||
---
|
||||
|
||||
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
|
||||
<!--more-->
|
||||
|
||||
## Headings
|
||||
|
||||
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
|
||||
|
||||
# H1
|
||||
## H2
|
||||
### H3
|
||||
#### H4
|
||||
##### H5
|
||||
###### H6
|
||||
|
||||
## Paragraph
|
||||
|
||||
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
|
||||
|
||||
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
|
||||
|
||||
## Blockquotes
|
||||
|
||||
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
|
||||
|
||||
#### Blockquote without attribution
|
||||
|
||||
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||||
> **Note** that you can use *Markdown syntax* within a blockquote.
|
||||
|
||||
#### Blockquote with attribution
|
||||
|
||||
> Don't communicate by sharing memory, share memory by communicating.<br>
|
||||
> — <cite>Rob Pike[^1]</cite>
|
||||
|
||||
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
|
||||
|
||||
## Tables
|
||||
|
||||
Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-box.
|
||||
|
||||
Name | Age
|
||||
--------|------
|
||||
Bob | 27
|
||||
Alice | 23
|
||||
|
||||
#### Inline Markdown within tables
|
||||
|
||||
| Italics | Bold | Code |
|
||||
| -------- | -------- | ------ |
|
||||
| *italics* | **bold** | `code` |
|
||||
|
||||
## Code Blocks
|
||||
|
||||
#### Code block with backticks
|
||||
|
||||
```html
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
#### Code block indented with four spaces
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
#### Code block with Hugo's internal highlight shortcode
|
||||
{{< highlight html >}}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
{{< /highlight >}}
|
||||
|
||||
## List Types
|
||||
|
||||
#### Ordered List
|
||||
|
||||
1. First item
|
||||
2. Second item
|
||||
3. Third item
|
||||
|
||||
#### Unordered List
|
||||
|
||||
* List item
|
||||
* Another item
|
||||
* And another item
|
||||
|
||||
#### Nested list
|
||||
|
||||
* Fruit
|
||||
* Apple
|
||||
* Orange
|
||||
* Banana
|
||||
* Dairy
|
||||
* Milk
|
||||
* Cheese
|
||||
|
||||
## Other Elements — abbr, sub, sup, kbd, mark
|
||||
|
||||
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
|
||||
|
||||
H<sub>2</sub>O
|
||||
|
||||
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
||||
|
||||
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
|
||||
|
||||
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
||||
@@ -0,0 +1,45 @@
|
||||
---
|
||||
author: Hugo Authors
|
||||
date: 2019-03-09T00:00:00Z
|
||||
lastmod: 2019-03-09T00:00:00Z # Won't show because it's equal to date
|
||||
description: Lorem Ipsum Dolor Si Amet
|
||||
tags:
|
||||
- markdown
|
||||
- text
|
||||
title: Placeholder Text
|
||||
---
|
||||
|
||||
Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
|
||||
|
||||
1. Exierant elisi ambit vivere dedere
|
||||
2. Duce pollice
|
||||
3. Eris modo
|
||||
4. Spargitque ferrea quos palude
|
||||
|
||||
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
|
||||
|
||||
1. Comas hunc haec pietate fetum procerum dixit
|
||||
2. Post torum vates letum Tiresia
|
||||
3. Flumen querellas
|
||||
4. Arcanaque montibus omnes
|
||||
5. Quidem et
|
||||
|
||||
# Vagus elidunt
|
||||
|
||||
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
|
||||
|
||||
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
|
||||
|
||||
## Mane refeci capiebant unda mulcebat
|
||||
|
||||
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
|
||||
|
||||
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
|
||||
|
||||
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
|
||||
|
||||
{{< css.inline >}}
|
||||
<style>
|
||||
.canon { background: white; width: 100%; height: auto; }
|
||||
</style>
|
||||
{{< /css.inline >}}
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
date: "2023-01-15T09:00:00-07:00"
|
||||
draft: false
|
||||
tags:
|
||||
- red
|
||||
title: 文章 1
|
||||
---
|
||||
|
||||
Tempor proident minim aliquip reprehenderit dolor et ad anim Lorem duis sint eiusmod. Labore ut ea duis dolor. Incididunt consectetur proident qui occaecat incididunt do nisi Lorem. Tempor do laborum elit laboris excepteur eiusmod do. Eiusmod nisi excepteur ut amet pariatur adipisicing Lorem.
|
||||
|
||||
Occaecat nulla excepteur dolore excepteur duis eiusmod ullamco officia anim in voluptate ea occaecat officia. Cillum sint esse velit ea officia minim fugiat. Elit ea esse id aliquip pariatur cupidatat id duis minim incididunt ea ea. Anim ut duis sunt nisi. Culpa cillum sit voluptate voluptate eiusmod dolor. Enim nisi Lorem ipsum irure est excepteur voluptate eu in enim nisi. Nostrud ipsum Lorem anim sint labore consequat do.
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
date: 2023-02-15T10:00:00-07:00
|
||||
lastmod: 2024-07-22T10:00:00+00:00
|
||||
draft: false
|
||||
tags:
|
||||
- red
|
||||
- green
|
||||
title: 文章 2 | 多位作者
|
||||
author:
|
||||
- 张三
|
||||
- 李四
|
||||
---
|
||||
|
||||
Anim eiusmod irure incididunt sint cupidatat. Incididunt irure irure irure nisi ipsum do ut quis fugiat consectetur proident cupidatat incididunt cillum. Dolore voluptate occaecat qui mollit laborum ullamco et. Ipsum laboris officia anim laboris culpa eiusmod ex magna ex cupidatat anim ipsum aute. Mollit aliquip occaecat qui sunt velit ut cupidatat reprehenderit enim sunt laborum. Velit veniam in officia nulla adipisicing ut duis officia.
|
||||
|
||||
Exercitation voluptate irure in irure tempor mollit Lorem nostrud ad officia. Velit id fugiat occaecat do tempor. Sit officia Lorem aliquip eu deserunt consectetur. Aute proident deserunt in nulla aliquip dolore ipsum Lorem ut cupidatat consectetur sit sint laborum. Esse cupidatat sit sint sunt tempor exercitation deserunt. Labore dolor duis laborum est do nisi ut veniam dolor et nostrud nostrud.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -0,0 +1,15 @@
|
||||
---
|
||||
date: "2023-03-15T11:00:00-07:00"
|
||||
draft: false
|
||||
tags:
|
||||
- red
|
||||
- green
|
||||
- blue
|
||||
title: 文章 3
|
||||
---
|
||||
|
||||
Occaecat aliqua consequat laborum ut ex aute aliqua culpa quis irure esse magna dolore quis. Proident fugiat labore eu laboris officia Lorem enim. Ipsum occaecat cillum ut tempor id sint aliqua incididunt nisi incididunt reprehenderit. Voluptate ad minim sint est aute aliquip esse occaecat tempor officia qui sunt. Aute ex ipsum id ut in est velit est laborum incididunt. Aliqua qui id do esse sunt eiusmod id deserunt eu nostrud aute sit ipsum. Deserunt esse cillum Lorem non magna adipisicing mollit amet consequat.
|
||||
|
||||

|
||||
|
||||
Sit excepteur do velit veniam mollit in nostrud laboris incididunt ea. Amet eu cillum ut reprehenderit culpa aliquip labore laborum amet sit sit duis. Laborum id proident nostrud dolore laborum reprehenderit quis mollit nulla amet veniam officia id id. Aliquip in deserunt qui magna duis qui pariatur officia sunt deserunt.
|
||||
@@ -0,0 +1,52 @@
|
||||
---
|
||||
date: 2024-06-30T14:18:49+08:00
|
||||
lastmod: 2024-07-22T11:00:00+00:00
|
||||
tags:
|
||||
- red
|
||||
title: 文章 4 | 表格测试
|
||||
slug: post-4
|
||||
---
|
||||
|
||||
中文文章 4。
|
||||
|
||||
| 序号 | 姓名 | 年龄 | 职业 | 所在城市 | 电子邮件 |
|
||||
|------|--------------|------|--------------|------------------|---------------------------|
|
||||
| 1 | 张三 | 28 | 软件工程师 | 北京市 | zhangsan@example.com |
|
||||
| 2 | 李四 | 34 | 数据分析师 | 上海市 | lisi@example.com |
|
||||
| 3 | 王五 | 45 | 产品经理 | 深圳市 | wangwu@example.com |
|
||||
| 4 | 赵六 | 29 | 设计师 | 广州市 | zhaoliu@example.com |
|
||||
| 5 | 周七 | 41 | 销售总监 | 成都市 | zhouqi@example.com |
|
||||
| 6 | 吴八 | 37 | 运维工程师 | 杭州市 | wuba@example.com |
|
||||
| 7 | 郑九 | 32 | 市场专员 | 南京市 | zhengjiu@example.com |
|
||||
| 8 | 王十 | 39 | 技术支持 | 武汉市 | wangshi@example.com |
|
||||
| 9 | 李十一 | 27 | 网络安全专家 | 西安市 | lishiyi@example.com |
|
||||
| 10 | 张十二 | 36 | 数据库管理员 | 天津市 | zhangshier@example.com |
|
||||
| 11 | 周十三 | 50 | 首席执行官 | 重庆市 | zhoushisan@example.com |
|
||||
| 12 | 王十四 | 29 | 项目经理 | 苏州市 | wangshisi@example.com |
|
||||
| 13 | 李十五 | 44 | 人力资源经理 | 长沙市 | lishiwv@example.com |
|
||||
| 14 | 赵十六 | 38 | 质量保证工程师 | 郑州市 | zhaoshiliu@example.com |
|
||||
| 15 | 周十七 | 26 | 前端开发工程师 | 南宁市 | zhoushiq@example.com |
|
||||
| 16 | 吴十八 | 31 | 系统架构师 | 哈尔滨市 | wushiba@example.com |
|
||||
| 17 | 郑十九 | 35 | 商务经理 | 济南市 | zhengshijiu@example.com |
|
||||
| 18 | 王二十 | 33 | 运维总监 | 青岛市 | wangershi@example.com |
|
||||
|
||||
| 序号 | 姓名 | 年龄 | 职业 | 所在城市 | 电子邮件 | 学历 | 入职年份 | 联系电话 |
|
||||
|------|--------------|------|--------------|------------------|---------------------------|------------|----------|-----------------|
|
||||
| 1 | 张三 | 28 | 软件工程师 | 北京市 | zhangsan@example.com | 本科 | 2015 | 12345678901 |
|
||||
| 2 | 李四 | 34 | 数据分析师 | 上海市 | lisi@example.com | 硕士 | 2012 | 12345678902 |
|
||||
| 3 | 王五 | 45 | 产品经理 | 深圳市 | wangwu@example.com | 本科 | 2005 | 12345678903 |
|
||||
| 4 | 赵六 | 29 | 设计师 | 广州市 | zhaoliu@example.com | 本科 | 2016 | 12345678904 |
|
||||
| 5 | 周七 | 41 | 销售总监 | 成都市 | zhouqi@example.com | 硕士 | 2008 | 12345678905 |
|
||||
| 6 | 吴八 | 37 | 运维工程师 | 杭州市 | wuba@example.com | 本科 | 2010 | 12345678906 |
|
||||
| 7 | 郑九 | 32 | 市场专员 | 南京市 | zhengjiu@example.com | 硕士 | 2013 | 12345678907 |
|
||||
| 8 | 王十 | 39 | 技术支持 | 武汉市 | wangshi@example.com | 本科 | 2009 | 12345678908 |
|
||||
| 9 | 李十一 | 27 | 网络安全专家 | 西安市 | lishiyi@example.com | 硕士 | 2017 | 12345678909 |
|
||||
| 10 | 张十二 | 36 | 数据库管理员 | 天津市 | zhangshier@example.com | 本科 | 2011 | 12345678910 |
|
||||
| 11 | 周十三 | 50 | 首席执行官 | 重庆市 | zhoushisan@example.com | 博士 | 2000 | 12345678911 |
|
||||
| 12 | 王十四 | 29 | 项目经理 | 苏州市 | wangshisi@example.com | 硕士 | 2015 | 12345678912 |
|
||||
| 13 | 李十五 | 44 | 人力资源经理 | 长沙市 | lishiwv@example.com | 本科 | 2006 | 12345678913 |
|
||||
| 14 | 赵十六 | 38 | 质量保证工程师 | 郑州市 | zhaoshiliu@example.com | 硕士 | 2009 | 12345678914 |
|
||||
| 15 | 周十七 | 26 | 前端开发工程师 | 南宁市 | zhoushiq@example.com | 本科 | 2018 | 12345678915 |
|
||||
| 16 | 吴十八 | 31 | 系统架构师 | 哈尔滨市 | wushiba@example.com | 硕士 | 2014 | 12345678916 |
|
||||
| 17 | 郑十九 | 35 | 商务经理 | 济南市 | zhengshijiu@example.com | 本科 | 2011 | 12345678917 |
|
||||
| 18 | 王二十 | 33 | 运维总监 | 青岛市 | wangershi@example.com | 硕士 | 2012 | 12345678918 |
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
date: 2024-07-22T00:00:00+08:00
|
||||
tags:
|
||||
- red
|
||||
title: 文章 5
|
||||
slug: post-5
|
||||
---
|
||||
|
||||
文章 5。
|
||||
|
||||
我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。
|
||||
|
||||
我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。我能吞下玻璃而不伤身体。
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
title: 标签
|
||||
---
|
||||
95
themes/hugo-theme-yue/exampleSite/hugo.yaml
Normal file
95
themes/hugo-theme-yue/exampleSite/hugo.yaml
Normal file
@@ -0,0 +1,95 @@
|
||||
# Documentation: https://gohugo.io/getting-started/configuration
|
||||
# Don't remove _merge, which imports default config
|
||||
theme: hugo-theme-yue
|
||||
baseURL: https://yue.cyrusyip.org/ # Change this to your real domain name, e.g. https://my-cool-domain.org/
|
||||
defaultContentLanguage: en
|
||||
defaultContentLanguageInSubdir: true
|
||||
enableGitInfo: false # Set lastmod from git history, this may increase build time
|
||||
enableEmoji: true # Emoji list: https://gohugo.io/quick-reference/emojis/
|
||||
enableRobotsTXT: true
|
||||
|
||||
params:
|
||||
_merge: deep # Import default config
|
||||
rssFullContent: true
|
||||
homePagerSize: 5
|
||||
sectionPagerSize: 10000 # Default: 10, set this to a large number to remove pagination
|
||||
images:
|
||||
# Default image used in Open Graph, see https://gohugo.io/templates/embedded/#configure-open-graph
|
||||
- favicon.ico # /static/favicon.ico
|
||||
|
||||
frontmatter:
|
||||
lastmod: ['lastmod', ':default'] # lastmod in front matter has highest precedence
|
||||
|
||||
markup:
|
||||
_merge: deep # Import default config
|
||||
goldmark:
|
||||
renderer:
|
||||
unsafe: true # Allow HTML code in Markdown, see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe
|
||||
|
||||
# Any key not defined under a languages will fall back to the global value in the root of configuration
|
||||
languages:
|
||||
en:
|
||||
contentDir: content/en
|
||||
languageCode: en-US
|
||||
languageDirection: ltr
|
||||
languageName: English
|
||||
title: Yue # Shown in home page
|
||||
weight: 10
|
||||
menus:
|
||||
main:
|
||||
- name: Home
|
||||
pageRef: /
|
||||
weight: 10
|
||||
- name: Posts
|
||||
pageRef: /posts
|
||||
weight: 20
|
||||
- name: Tags
|
||||
pageRef: /tags
|
||||
weight: 30
|
||||
- name: Categories
|
||||
pageRef: /categories
|
||||
weight: 40
|
||||
- name: About
|
||||
pageRef: /about
|
||||
weight: 50
|
||||
params:
|
||||
dateFormat: Jan 02, 2006 # See https://gohugo.io/functions/time/format/
|
||||
author: Jane Doe # Default author, supports single value or list, used in single page
|
||||
footer:
|
||||
copyright:
|
||||
yearStart: 2023 # Optional
|
||||
yearEnd: 2024 # Optional, default value: current year
|
||||
author: Jane Doe
|
||||
zh-CN:
|
||||
hasCJKLanguage: true
|
||||
contentDir: content/zh-CN
|
||||
languageCode: zh-CN
|
||||
languageDirection: ltr
|
||||
languageName: 中文
|
||||
title: 月
|
||||
weight: 20
|
||||
menus:
|
||||
main:
|
||||
- name: 主页
|
||||
pageRef: /
|
||||
weight: 10
|
||||
- name: 文章
|
||||
pageRef: /posts
|
||||
weight: 20
|
||||
- name: 标签
|
||||
pageRef: /tags
|
||||
weight: 30
|
||||
- name: 类别
|
||||
pageRef: /categories
|
||||
weight: 40
|
||||
- name: 关于
|
||||
pageRef: /about
|
||||
weight: 50
|
||||
params:
|
||||
dateFormat: 2006年1月2日
|
||||
author: 小月
|
||||
footer:
|
||||
copyright:
|
||||
yearStart: 2023
|
||||
# yearEnd: 2024
|
||||
author: 小月
|
||||
20
themes/hugo-theme-yue/hugo.yaml
Normal file
20
themes/hugo-theme-yue/hugo.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
# Default config
|
||||
module:
|
||||
hugoVersion:
|
||||
extended: true
|
||||
min: 0.147.1
|
||||
|
||||
params:
|
||||
toc: true # Table of Contents
|
||||
tocFolded: true
|
||||
|
||||
markup:
|
||||
tableOfContents:
|
||||
startLevel: 2
|
||||
endLevel: 6
|
||||
ordered: false
|
||||
highlight:
|
||||
guessSyntax: true
|
||||
lineNoStart: 1
|
||||
lineNos: true
|
||||
noClasses: false
|
||||
10
themes/hugo-theme-yue/i18n/ar.yaml
Normal file
10
themes/hugo-theme-yue/i18n/ar.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
authorDelimiter: ", "
|
||||
lastmodWrapper: " (آخر تحديث: {{ .lastmod }})"
|
||||
tableOfContents: الفهرس
|
||||
colon: ':'
|
||||
previousPage: "الصفحة السابقة: "
|
||||
nextPage: "الصفحة التالية: "
|
||||
themeInfo: مبني بـ {{ .hugo }} و{{ .yue }}
|
||||
|
||||
404Message: الصفقة المطبوبة غير موجودة.
|
||||
404HomeLinkMessage: العودة إلى الصفحة الرئيسيسة
|
||||
14
themes/hugo-theme-yue/i18n/en.yaml
Normal file
14
themes/hugo-theme-yue/i18n/en.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
# Sort according to appearance order
|
||||
|
||||
# Single page
|
||||
authorDelimiter: ", "
|
||||
lastmodWrapper: " (Modified: {{ .lastmod }})"
|
||||
tableOfContents: Table of Contents
|
||||
colon: ':' # Taxonomy, e.g. Tags:
|
||||
previousPage: "Prev: " # Page nav
|
||||
nextPage: "Next: " # Page nav
|
||||
themeInfo: Built with {{ .hugo }} and {{ .yue }} # Footer
|
||||
|
||||
# 404 page, e.g. /en/404.html
|
||||
404Message: The page you visited was not found.
|
||||
404HomeLinkMessage: Return to the home page
|
||||
10
themes/hugo-theme-yue/i18n/fr.yaml
Normal file
10
themes/hugo-theme-yue/i18n/fr.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
authorDelimiter: ", "
|
||||
lastmodWrapper: " (Modifié : {{ .lastmod }})"
|
||||
tableOfContents: Table des matières
|
||||
colon: ' :'
|
||||
previousPage: "Page precédente : "
|
||||
nextPage: "Page suivante : "
|
||||
themeInfo: Conçu avec {{ .hugo }} et {{ .yue }}
|
||||
|
||||
404Message: La page que vous avez consultée n'a pas été trouvée.
|
||||
404HomeLinkMessage: Retourner à la page d'accueil
|
||||
10
themes/hugo-theme-yue/i18n/zh-CN.yaml
Normal file
10
themes/hugo-theme-yue/i18n/zh-CN.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
authorDelimiter: 、
|
||||
lastmodWrapper: "(修改于{{ .lastmod }})"
|
||||
tableOfContents: 目次
|
||||
colon: ':'
|
||||
previousPage: "上篇:"
|
||||
nextPage: "下篇:"
|
||||
themeInfo: 使用 {{ .hugo }} 和 {{ .yue }} 构建
|
||||
|
||||
404Message: 找不到你访问的页面。
|
||||
404HomeLinkMessage: 返回主页
|
||||
BIN
themes/hugo-theme-yue/images/screenshot.png
Normal file
BIN
themes/hugo-theme-yue/images/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 241 KiB |
BIN
themes/hugo-theme-yue/images/tn.png
Normal file
BIN
themes/hugo-theme-yue/images/tn.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 241 KiB |
7
themes/hugo-theme-yue/layouts/404.html
Normal file
7
themes/hugo-theme-yue/layouts/404.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<h1>404</h1>
|
||||
<p>{{ i18n "404Message" }}</p>
|
||||
<p>
|
||||
<a href="{{ site.Home.RelPermalink }}">{{ i18n "404HomeLinkMessage" }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,3 @@
|
||||
<h{{ .Level }} class="heading" id="{{ .Anchor }}">
|
||||
{{ .Text | safeHTML }}<span class="heading__anchor"> <a href="#{{ .Anchor }}">#</a></span>
|
||||
</h{{ .Level }}>
|
||||
41
themes/hugo-theme-yue/layouts/_markup/render-table.html
Normal file
41
themes/hugo-theme-yue/layouts/_markup/render-table.html
Normal file
@@ -0,0 +1,41 @@
|
||||
{{- /* Wrapper is used to add horizontal scrollbar for table */ -}}
|
||||
<div class="table-wrapper">
|
||||
{{- /* Default table code */ -}}
|
||||
<table
|
||||
{{- range $k, $v := .Attributes }}
|
||||
{{- if $v }}
|
||||
{{- printf " %s=%q" $k $v | safeHTMLAttr }}
|
||||
{{- end }}
|
||||
{{- end }}>
|
||||
<thead>
|
||||
{{- range .THead }}
|
||||
<tr>
|
||||
{{- range . }}
|
||||
<th
|
||||
{{- with .Alignment }}
|
||||
{{- printf " style=%q" (printf "text-align: %s" .) | safeHTMLAttr }}
|
||||
{{- end -}}
|
||||
>
|
||||
{{- .Text -}}
|
||||
</th>
|
||||
{{- end }}
|
||||
</tr>
|
||||
{{- end }}
|
||||
</thead>
|
||||
<tbody>
|
||||
{{- range .TBody }}
|
||||
<tr>
|
||||
{{- range . }}
|
||||
<td
|
||||
{{- with .Alignment }}
|
||||
{{- printf " style=%q" (printf "text-align: %s" .) | safeHTMLAttr }}
|
||||
{{- end -}}
|
||||
>
|
||||
{{- .Text -}}
|
||||
</td>
|
||||
{{- end }}
|
||||
</tr>
|
||||
{{- end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
{{- /* You can dynamically load scripts in this file */ -}}
|
||||
3
themes/hugo-theme-yue/layouts/_partials/footer.html
Normal file
3
themes/hugo-theme-yue/layouts/_partials/footer.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{ partial "footer/rss_link.html" . }}
|
||||
{{ partial "footer/copyright.html" . }}
|
||||
{{ partial "footer/theme_info.html" . }}
|
||||
@@ -0,0 +1,13 @@
|
||||
{{- $author := site.Params.footer.copyright.author }}
|
||||
{{- $yearStart := string site.Params.footer.copyright.yearStart }}
|
||||
{{- $yearEnd := string (default (now.Format "2006") site.Params.footer.copyright.yearEnd) }}
|
||||
{{- $yearSpan := "" }}
|
||||
{{- if not $yearStart }}
|
||||
{{- /* Use $yearEnd if $yearStart doesn't exist */ -}}
|
||||
{{- $yearSpan = $yearEnd }}
|
||||
{{- else if eq $yearStart $yearEnd }}
|
||||
{{- $yearSpan = $yearEnd }}
|
||||
{{- else }}
|
||||
{{- $yearSpan = printf "%s-%s" $yearStart $yearEnd }}
|
||||
{{- end -}}
|
||||
<p class="footer__copyright-notice">© {{ $yearSpan }} {{ $author }}</p>
|
||||
@@ -0,0 +1,3 @@
|
||||
{{- with .OutputFormats.Get "rss" -}}
|
||||
<p class="footer__rss-link"><a href="{{ .RelPermalink }}">RSS</a></p>
|
||||
{{- end }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{- $hugo := "<a href='https://gohugo.io'>Hugo</a>" -}}
|
||||
{{- $yue := "<a href='https://github.com/CyrusYip/hugo-theme-yue'>Yue</a>" -}}
|
||||
<p class="footer__theme-info">{{ i18n "themeInfo" (dict "hugo" $hugo "yue" $yue) | safeHTML }}</p>
|
||||
11
themes/hugo-theme-yue/layouts/_partials/head.html
Normal file
11
themes/hugo-theme-yue/layouts/_partials/head.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
||||
{{ partial "head/head-start.html" . }}
|
||||
{{ partialCached "head/scss.html" . }}
|
||||
{{ partial "head/favicon.html" . }}
|
||||
{{ partial "head/description.html" . }}
|
||||
{{ partial "opengraph.html" . }} {{/* embedded template */}}
|
||||
{{ partial "schema.html" . }} {{/* embedded template */}}
|
||||
{{ partial "head/rss_link.html" . }}
|
||||
{{ partial "head/head-end.html" . }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{- with or .Description .Summary site.Params.description | plainify | htmlUnescape | chomp }}
|
||||
<meta name="description" content="{{ . }}">
|
||||
{{- end }}
|
||||
@@ -0,0 +1 @@
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
@@ -0,0 +1 @@
|
||||
{{- /* You can put scripts and styles in this file, e.g. Google Analytics */ -}}
|
||||
@@ -0,0 +1 @@
|
||||
{{- /* You can preload scripts in this file */ -}}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .RelPermalink site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
10
themes/hugo-theme-yue/layouts/_partials/head/scss.html
Normal file
10
themes/hugo-theme-yue/layouts/_partials/head/scss.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ $opts := dict "transpiler" "libsass" "targetPath" "css/style.css" }}
|
||||
{{- with resources.Get "scss/main.scss" | toCSS $opts }}
|
||||
{{- if eq hugo.Environment "development" }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||
{{- else }}
|
||||
{{- with . | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
7
themes/hugo-theme-yue/layouts/_partials/header.html
Normal file
7
themes/hugo-theme-yue/layouts/_partials/header.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<h1>{{ site.Title }}</h1>
|
||||
<nav class="menu language">
|
||||
<ul class="menu__list language__list">
|
||||
{{- partial "header/menu.html" (dict "menuID" "main" "page" .) -}}
|
||||
{{- partial "header/language_selector.html" . -}}
|
||||
</ul>
|
||||
</nav>
|
||||
@@ -0,0 +1,15 @@
|
||||
{{ if hugo.IsMultilingual }}
|
||||
{{ if .IsTranslated -}}
|
||||
{{- /* link to translated page */ -}}
|
||||
{{ range .Translations -}}
|
||||
<li class="language__item"><a class="language__link" href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a></li>
|
||||
{{ end -}}
|
||||
{{ else -}}
|
||||
{{- /* link to home page */ -}}
|
||||
{{ range site.Languages -}}
|
||||
{{ if ne site.Language.Lang .Lang -}} {{- /* ignore current language */ -}}
|
||||
<li class="language__item"><a class="language__link" href="{{ .Lang | relURL }}">{{ .LanguageName }}</a></li>
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end }}
|
||||
48
themes/hugo-theme-yue/layouts/_partials/header/menu.html
Normal file
48
themes/hugo-theme-yue/layouts/_partials/header/menu.html
Normal file
@@ -0,0 +1,48 @@
|
||||
{{- /*
|
||||
Renders a menu for the given menu ID.
|
||||
|
||||
@context {page} page The current page.
|
||||
@context {string} menuID The menu ID.
|
||||
|
||||
@example: {{ partial "menu.html" (dict "menuID" "main" "page" .) }}
|
||||
*/}}
|
||||
|
||||
{{- $page := .page }}
|
||||
{{- $menuID := .menuID }}
|
||||
|
||||
{{- with index site.Menus $menuID }}
|
||||
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "partials/inline/menu/walk.html" }}
|
||||
{{- $page := .page }}
|
||||
{{- range .menuEntries }}
|
||||
{{- $attrs := dict "href" .URL }}
|
||||
{{- $attrs = merge $attrs (dict "class" "menu__link") }}
|
||||
{{- if $page.IsMenuCurrent .Menu . }}
|
||||
{{- $attrs = merge $attrs (dict "class" "menu__link menu__link--active" "aria-current" "page") }}
|
||||
{{- else if $page.HasMenuCurrent .Menu .}}
|
||||
{{- $attrs = merge $attrs (dict "class" "menu__link menu__link--ancestor" "aria-current" "true") }}
|
||||
{{- end }}
|
||||
{{- $name := .Name }}
|
||||
{{- with .Identifier }}
|
||||
{{- with T . }}
|
||||
{{- $name = . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
<li class="menu__item">
|
||||
<a
|
||||
{{- range $k, $v := $attrs }}
|
||||
{{- with $v }}
|
||||
{{- printf " %s=%q" $k $v | safeHTMLAttr }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
>{{ $name }}</a>
|
||||
{{- with .Children }}
|
||||
<ul>
|
||||
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
</li>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
5
themes/hugo-theme-yue/layouts/_partials/main/dates.html
Normal file
5
themes/hugo-theme-yue/layouts/_partials/main/dates.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{- /* Used by home.html, single.html, list.html */ -}}
|
||||
{{- partial "main/dates/date.html" . }}
|
||||
{{- if ne .Date .Lastmod }}
|
||||
{{- partial "main/dates/lastmod_wrapper.html" . }}
|
||||
{{- end }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}}
|
||||
{{- $dateHuman := .Date | time.Format (or site.Params.dateFormat "2006-01-02") -}}
|
||||
<time class="published-date" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
@@ -0,0 +1,3 @@
|
||||
{{- $lastmodMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" -}}
|
||||
{{- $lastmodHuman := .Lastmod | time.Format (or site.Params.dateFormat "2006-01-02") -}}
|
||||
<time class="lastmod-date" datetime="{{ $lastmodMachine }}">{{ i18n "lastmodWrapper" (dict "lastmod" $lastmodHuman) }}</time>
|
||||
13
themes/hugo-theme-yue/layouts/_partials/page/author.html
Normal file
13
themes/hugo-theme-yue/layouts/_partials/page/author.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ $author := default site.Params.author .Params.author }}
|
||||
{{- with $author -}}
|
||||
{{- /* string or []string */ -}}
|
||||
{{- $authorType := printf "%T" $author -}}
|
||||
<span class="author">
|
||||
{{- if eq $authorType "string" -}}
|
||||
{{- . -}}
|
||||
{{- else if eq $authorType "[]string" -}}
|
||||
{{- delimit $author (i18n "authorDelimiter") -}}
|
||||
{{- end -}}
|
||||
</span>
|
||||
<br>
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,4 @@
|
||||
{{- /*
|
||||
You can add commenting systems (e.g. Disqus, and Giscus) in this file,
|
||||
which will be appended to the bottom of single page.
|
||||
*/ -}}
|
||||
11
themes/hugo-theme-yue/layouts/_partials/page/page_nav.html
Normal file
11
themes/hugo-theme-yue/layouts/_partials/page/page_nav.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- $pages := where site.RegularPages "Section" "ne" "" -}} {{- /* exclude non-section pages, e.g. /content/about.md */ -}}
|
||||
{{ if or ($pages.Next .) ($pages.Prev .) }}
|
||||
<nav class="page-nav">
|
||||
{{- with $pages.Next . }}
|
||||
<a class="page-nav__previous-link" href="{{ .RelPermalink }}">{{ i18n "previousPage" }}{{.Title}}</a>
|
||||
{{- end }}
|
||||
{{- with $pages.Prev . }}
|
||||
<a class="page-nav__next-link" href="{{ .RelPermalink }}">{{ i18n "nextPage" }}{{.Title}}</a>
|
||||
{{- end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
23
themes/hugo-theme-yue/layouts/_partials/page/terms.html
Normal file
23
themes/hugo-theme-yue/layouts/_partials/page/terms.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{{- /*
|
||||
For a given taxonomy, renders a list of terms assigned to the page.
|
||||
|
||||
@context {page} page The current page.
|
||||
@context {string} taxonomy The taxonomy.
|
||||
|
||||
@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||
*/}}
|
||||
|
||||
{{- $page := .page }}
|
||||
{{- $taxonomy := .taxonomy }}
|
||||
|
||||
{{- with $page.GetTerms $taxonomy }}
|
||||
{{- $label := (index . 0).Parent.LinkTitle }}
|
||||
<div>
|
||||
<div>{{ $label }}{{ i18n "colon" }}</div>
|
||||
<ul>
|
||||
{{- range . }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{- end }}
|
||||
14
themes/hugo-theme-yue/layouts/_partials/page/toc.html
Normal file
14
themes/hugo-theme-yue/layouts/_partials/page/toc.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ $tocAvailable := gt (len .TableOfContents) 32 }} {{- /* length of empty TOC is 32 */ -}}
|
||||
{{ $tocEnabled := default site.Params.toc .Params.toc }}
|
||||
{{ $tocFolded := default site.Params.tocFolded .Params.tocFolded }}
|
||||
{{ $tocStatus := "" }} {{- /* folded by default */ -}}
|
||||
{{ if eq $tocFolded false }}
|
||||
{{ $tocStatus = " open" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and $tocEnabled $tocAvailable }}
|
||||
<details class="toc"{{ $tocStatus | safeHTMLAttr }}>
|
||||
<summary class="toc__summary">{{ i18n "tableOfContents" }}</summary>
|
||||
{{ .TableOfContents }}
|
||||
</details>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,17 @@
|
||||
{{ $i18n := index site.Data "i18n" }} {{- /* data/i18n.yaml */ -}}
|
||||
{{ if .IsTranslated }}
|
||||
<ul class="translation-list">
|
||||
{{ range .Translations -}}
|
||||
{{- /*
|
||||
i18n function can't use translated language inside .Translations .
|
||||
This is a workaround for using translated string inside .Translations.
|
||||
Background: https://github.com/CyrusYip/hugo-theme-yue/issues/5
|
||||
*/ -}}
|
||||
{{ $lang := .Language.Lang }}
|
||||
{{ $colon := default ": " (index $i18n $lang "colonInTranslationList") }}
|
||||
<li class="translation-list__item">
|
||||
<a class="translation-list__link" href="{{ .RelPermalink }}">{{ or .Language.LanguageName .Language.Lang }}{{ $colon }}{{ .LinkTitle }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user