Skip to content

Commit

Permalink
categories fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TecReaGroup committed Oct 15, 2024
1 parent 8b8f466 commit 7ac2eb9
Show file tree
Hide file tree
Showing 25 changed files with 154 additions and 86 deletions.
4 changes: 4 additions & 0 deletions content/categories/categories.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "categories"
layout: "categories"
---
37 changes: 0 additions & 37 deletions content/example.md

This file was deleted.

4 changes: 3 additions & 1 deletion content/posts/Test.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: Test
share: "true"
category: Blog
categories:
- Blog
tags:
- Blog
description: Test
Expand All @@ -16,5 +17,6 @@ date: 2024-10-15T09:23:36+08:00
---

## Test doc

Hello world!
This is TRG.
4 changes: 3 additions & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ params:
url: "https://linux.do/u/trg/summary"
- name: github
url: "https://github.com/TecReaGroup"
- name: rss
url: "https://rouper.me/posts/index.xml"

cover:
hidden: true # hide everywhere but not in structured data
Expand Down Expand Up @@ -133,4 +135,4 @@ outputs:
home:
- HTML # 生成的静态页面
- RSS # 这个其实无所谓
- JSON # necessary for search, 这里的配置修改好之后,一定要重新生成一下
- JSON # necessary for search, 这里的配置修改好之后,一定要重新生成一下
Empty file added public/New Text Document.txt
Empty file.
7 changes: 7 additions & 0 deletions public/categories/blog/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!doctype html><html lang=en dir=auto><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>Blog | TRG's Blog</title>
<meta name=keywords content><meta name=description content="TRG's Blog"><meta name=author content="Me"><link rel=canonical href=http://localhost:1313/categories/blog/><link crossorigin=anonymous href=/assets/css/stylesheet.54405a410796490bc874ab6181fac9b675753cc2b91375d8f882566459eca428.css integrity="sha256-VEBaQQeWSQvIdKthgfrJtnV1PMK5E3XY+IJWZFnspCg=" rel="preload stylesheet" as=style><link rel=icon href=http://localhost:1313/icon.svg><link rel=icon type=image/png sizes=16x16 href=http://localhost:1313/icon.svg><link rel=icon type=image/png sizes=32x32 href=http://localhost:1313/icon.svg><link rel=apple-touch-icon href=http://localhost:1313/icon.svg><link rel=mask-icon href=http://localhost:1313/icon.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><link rel=alternate type=application/rss+xml href=http://localhost:1313/categories/blog/index.xml><link rel=alternate hreflang=en href=http://localhost:1313/categories/blog/><noscript><style>#theme-toggle,.top-link{display:none}</style><style>@media(prefers-color-scheme:dark){:root{--theme:rgb(29, 30, 32);--entry:rgb(46, 46, 51);--primary:rgb(218, 218, 219);--secondary:rgb(155, 156, 157);--tertiary:rgb(65, 66, 68);--content:rgb(196, 196, 197);--code-block-bg:rgb(46, 46, 51);--code-bg:rgb(55, 56, 62);--border:rgb(51, 51, 51)}.list{background:var(--theme)}.list:not(.dark)::-webkit-scrollbar-track{background:0 0}.list:not(.dark)::-webkit-scrollbar-thumb{border-color:var(--theme)}}</style></noscript><meta property="og:title" content="Blog"><meta property="og:description" content="TRG's Blog"><meta property="og:type" content="website"><meta property="og:url" content="http://localhost:1313/categories/blog/"><meta property="og:image" content="https://avatars.githubusercontent.com/u/143636399?s=400&amp;u=cddf9938630951d73335f2f30e3afdd98d844098&amp;v=4"><meta property="og:site_name" content="TRG's Blog"><meta name=twitter:card content="summary_large_image"><meta name=twitter:image content="https://avatars.githubusercontent.com/u/143636399?s=400&amp;u=cddf9938630951d73335f2f30e3afdd98d844098&amp;v=4"><meta name=twitter:title content="Blog"><meta name=twitter:description content="TRG's Blog"></head><body class=list id=top><script>localStorage.getItem("pref-theme")==="dark"?document.body.classList.add("dark"):localStorage.getItem("pref-theme")==="light"?document.body.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches&&document.body.classList.add("dark")</script><header class=header><nav class=nav><div class=logo><a href=http://localhost:1313/ accesskey=h title="TRG's Blog (Alt + H)"><img src=http://localhost:1313/apple-touch-icon.png alt aria-label=logo height=35>TRG's Blog</a><div class=logo-switches><button id=theme-toggle accesskey=t title="(Alt + T)"><svg id="moon" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg><svg id="sun" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button></div></div><ul id=menu><li><a href=http://localhost:1313/categories/ title=Categories><span>Categories</span></a></li><li><a href=http://localhost:1313/tags/ title=Tags><span>Tags</span></a></li><li><a href=http://localhost:1313/search/ title="Search (Alt + /)" accesskey=/><span>Search</span></a></li><li><a href=https://github.com/TecReaGroup title=Github><span>Github</span>&nbsp;<svg fill="none" shape-rendering="geometricPrecision" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" viewBox="0 0 24 24" height="12" width="12"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"/><path d="M15 3h6v6"/><path d="M10 14 21 3"/></svg></a></li></ul></nav></header><main class=main><header class=page-header><div class=breadcrumbs><a href=http://localhost:1313/>Home</a>&nbsp;»&nbsp;<a href=http://localhost:1313/categories/>Categories</a></div><h1>Blog
<a href=/categories/blog/index.xml title=RSS aria-label=RSS><svg viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" height="23"><path d="M4 11a9 9 0 019 9"/><path d="M4 4a16 16 0 0116 16"/><circle cx="5" cy="19" r="1"/></svg></a></h1></header><article class="post-entry tag-entry"><header class=entry-header><h2 class=entry-hint-parent>Test</h2></header><div class=entry-content><p>Test doc Hello world! This is TRG.</p></div><footer class=entry-footer><span title='2024-10-15 09:23:36 +0800 CST'>October 09, 151523</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;7 words&nbsp;·&nbsp;TRG</footer><a class=entry-link aria-label="post link to Test" href=http://localhost:1313/posts/test/></a></article></main><footer class=footer><span>&copy; 2024 <a href=http://localhost:1313/>TRG's Blog</a></span> ·
<span>Powered by
<a href=https://gohugo.io/ rel="noopener noreferrer" target=_blank>Hugo</a> &
<a href=https://github.com/adityatelange/hugo-PaperMod/ rel=noopener target=_blank>PaperMod</a></span></footer><a href=#top aria-label="go to top" title="Go to Top (Alt + G)" class=top-link id=top-link accesskey=g><svg viewBox="0 0 12 6" fill="currentcolor"><path d="M12 6H0l6-6z"/></svg>
</a><script>let menu=document.getElementById("menu");menu&&(menu.scrollLeft=localStorage.getItem("menu-scroll-position"),menu.onscroll=function(){localStorage.setItem("menu-scroll-position",menu.scrollLeft)}),document.querySelectorAll('a[href^="#"]').forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();var t=this.getAttribute("href").substr(1);window.matchMedia("(prefers-reduced-motion: reduce)").matches?document.querySelector(`[id='${decodeURIComponent(t)}']`).scrollIntoView():document.querySelector(`[id='${decodeURIComponent(t)}']`).scrollIntoView({behavior:"smooth"}),t==="top"?history.replaceState(null,null," "):history.pushState(null,null,`#${t}`)})})</script><script>var mybutton=document.getElementById("top-link");window.onscroll=function(){document.body.scrollTop>800||document.documentElement.scrollTop>800?(mybutton.style.visibility="visible",mybutton.style.opacity="1"):(mybutton.style.visibility="hidden",mybutton.style.opacity="0")}</script><script>document.getElementById("theme-toggle").addEventListener("click",()=>{document.body.className.includes("dark")?(document.body.classList.remove("dark"),localStorage.setItem("pref-theme","light")):(document.body.classList.add("dark"),localStorage.setItem("pref-theme","dark"))})</script></body></html>
24 changes: 24 additions & 0 deletions public/categories/blog/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Blog on TRG&#39;s Blog</title>
<link>http://localhost:1313/categories/blog/</link>
<description>Recent content in Blog on TRG&#39;s Blog</description>
<image>
<title>TRG&#39;s Blog</title>
<url>https://avatars.githubusercontent.com/u/143636399?s=400&amp;u=cddf9938630951d73335f2f30e3afdd98d844098&amp;v=4</url>
<link>https://avatars.githubusercontent.com/u/143636399?s=400&amp;u=cddf9938630951d73335f2f30e3afdd98d844098&amp;v=4</link>
</image>
<generator>Hugo -- 0.135.0</generator>
<language>en</language>
<lastBuildDate>Tue, 15 Oct 2024 09:23:36 +0800</lastBuildDate>
<atom:link href="http://localhost:1313/categories/blog/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Test</title>
<link>http://localhost:1313/posts/test/</link>
<pubDate>Tue, 15 Oct 2024 09:23:36 +0800</pubDate>
<guid>http://localhost:1313/posts/test/</guid>
<description>Test</description>
</item>
</channel>
</rss>
2 changes: 2 additions & 0 deletions public/categories/blog/page/1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!doctype html><html lang=en><head><title>http://localhost:1313/categories/blog/</title>
<link rel=canonical href=http://localhost:1313/categories/blog/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=http://localhost:1313/categories/blog/"></head></html>
6 changes: 6 additions & 0 deletions public/categories/categories/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!doctype html><html lang=en dir=auto><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>categories | TRG's Blog</title>
<meta name=keywords content><meta name=description content="categories - TRG's Blog"><meta name=author content="Me"><link rel=canonical href=http://localhost:1313/categories/categories/><link crossorigin=anonymous href=/assets/css/stylesheet.54405a410796490bc874ab6181fac9b675753cc2b91375d8f882566459eca428.css integrity="sha256-VEBaQQeWSQvIdKthgfrJtnV1PMK5E3XY+IJWZFnspCg=" rel="preload stylesheet" as=style><link rel=icon href=http://localhost:1313/icon.svg><link rel=icon type=image/png sizes=16x16 href=http://localhost:1313/icon.svg><link rel=icon type=image/png sizes=32x32 href=http://localhost:1313/icon.svg><link rel=apple-touch-icon href=http://localhost:1313/icon.svg><link rel=mask-icon href=http://localhost:1313/icon.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><link rel=alternate hreflang=en href=http://localhost:1313/categories/categories/><noscript><style>#theme-toggle,.top-link{display:none}</style><style>@media(prefers-color-scheme:dark){:root{--theme:rgb(29, 30, 32);--entry:rgb(46, 46, 51);--primary:rgb(218, 218, 219);--secondary:rgb(155, 156, 157);--tertiary:rgb(65, 66, 68);--content:rgb(196, 196, 197);--code-block-bg:rgb(46, 46, 51);--code-bg:rgb(55, 56, 62);--border:rgb(51, 51, 51)}.list{background:var(--theme)}.list:not(.dark)::-webkit-scrollbar-track{background:0 0}.list:not(.dark)::-webkit-scrollbar-thumb{border-color:var(--theme)}}</style></noscript><meta property="og:title" content="categories"><meta property="og:description" content><meta property="og:type" content="article"><meta property="og:url" content="http://localhost:1313/categories/categories/"><meta property="og:image" content="https://avatars.githubusercontent.com/u/143636399?s=400&amp;u=cddf9938630951d73335f2f30e3afdd98d844098&amp;v=4"><meta property="article:section" content="categories"><meta property="og:site_name" content="TRG's Blog"><meta name=twitter:card content="summary_large_image"><meta name=twitter:image content="https://avatars.githubusercontent.com/u/143636399?s=400&amp;u=cddf9938630951d73335f2f30e3afdd98d844098&amp;v=4"><meta name=twitter:title content="categories"><meta name=twitter:description content><script type=application/ld+json>{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Categories","item":"http://localhost:1313/categories/"},{"@type":"ListItem","position":2,"name":"categories","item":"http://localhost:1313/categories/categories/"}]}</script><script type=application/ld+json>{"@context":"https://schema.org","@type":"BlogPosting","headline":"categories","name":"categories","description":"","keywords":[],"articleBody":"","wordCount":"0","inLanguage":"en","image":"https://avatars.githubusercontent.com/u/143636399?s=400\u0026u=cddf9938630951d73335f2f30e3afdd98d844098\u0026v=4","datePublished":"0001-01-01T00:00:00Z","dateModified":"0001-01-01T00:00:00Z","author":{"@type":"Person","name":"Me"},"mainEntityOfPage":{"@type":"WebPage","@id":"http://localhost:1313/categories/categories/"},"publisher":{"@type":"Organization","name":"TRG's Blog","logo":{"@type":"ImageObject","url":"http://localhost:1313/icon.svg"}}}</script></head><body id=top><script>localStorage.getItem("pref-theme")==="dark"?document.body.classList.add("dark"):localStorage.getItem("pref-theme")==="light"?document.body.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches&&document.body.classList.add("dark")</script><header class=header><nav class=nav><div class=logo><a href=http://localhost:1313/ accesskey=h title="TRG's Blog (Alt + H)"><img src=http://localhost:1313/apple-touch-icon.png alt aria-label=logo height=35>TRG's Blog</a><div class=logo-switches><button id=theme-toggle accesskey=t title="(Alt + T)"><svg id="moon" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg><svg id="sun" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button></div></div><ul id=menu><li><a href=http://localhost:1313/categories/ title=Categories><span>Categories</span></a></li><li><a href=http://localhost:1313/tags/ title=Tags><span>Tags</span></a></li><li><a href=http://localhost:1313/search/ title="Search (Alt + /)" accesskey=/><span>Search</span></a></li><li><a href=https://github.com/TecReaGroup title=Github><span>Github</span>&nbsp;<svg fill="none" shape-rendering="geometricPrecision" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" viewBox="0 0 24 24" height="12" width="12"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"/><path d="M15 3h6v6"/><path d="M10 14 21 3"/></svg></a></li></ul></nav></header><main class=main><article class=post-single><header class=post-header><div class=breadcrumbs><a href=http://localhost:1313/>Home</a>&nbsp;»&nbsp;<a href=http://localhost:1313/categories/>Categories</a></div><h1 class="post-title entry-hint-parent">categories</h1><div class=post-meta>0 min&nbsp;·&nbsp;0 words&nbsp;·&nbsp;Me</div></header><footer class=post-footer><ul class=post-tags></ul></footer></article></main><footer class=footer><span>&copy; 2024 <a href=http://localhost:1313/>TRG's Blog</a></span> ·
<span>Powered by
<a href=https://gohugo.io/ rel="noopener noreferrer" target=_blank>Hugo</a> &
<a href=https://github.com/adityatelange/hugo-PaperMod/ rel=noopener target=_blank>PaperMod</a></span></footer><a href=#top aria-label="go to top" title="Go to Top (Alt + G)" class=top-link id=top-link accesskey=g><svg viewBox="0 0 12 6" fill="currentcolor"><path d="M12 6H0l6-6z"/></svg>
</a><script>let menu=document.getElementById("menu");menu&&(menu.scrollLeft=localStorage.getItem("menu-scroll-position"),menu.onscroll=function(){localStorage.setItem("menu-scroll-position",menu.scrollLeft)}),document.querySelectorAll('a[href^="#"]').forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();var t=this.getAttribute("href").substr(1);window.matchMedia("(prefers-reduced-motion: reduce)").matches?document.querySelector(`[id='${decodeURIComponent(t)}']`).scrollIntoView():document.querySelector(`[id='${decodeURIComponent(t)}']`).scrollIntoView({behavior:"smooth"}),t==="top"?history.replaceState(null,null," "):history.pushState(null,null,`#${t}`)})})</script><script>var mybutton=document.getElementById("top-link");window.onscroll=function(){document.body.scrollTop>800||document.documentElement.scrollTop>800?(mybutton.style.visibility="visible",mybutton.style.opacity="1"):(mybutton.style.visibility="hidden",mybutton.style.opacity="0")}</script><script>document.getElementById("theme-toggle").addEventListener("click",()=>{document.body.className.includes("dark")?(document.body.classList.remove("dark"),localStorage.setItem("pref-theme","light")):(document.body.classList.add("dark"),localStorage.setItem("pref-theme","dark"))})</script><script>document.querySelectorAll("pre > code").forEach(e=>{const n=e.parentNode.parentNode,t=document.createElement("button");t.classList.add("copy-code"),t.innerHTML="copy";function s(){t.innerHTML="copied!",setTimeout(()=>{t.innerHTML="copy"},2e3)}t.addEventListener("click",t=>{if("clipboard"in navigator){navigator.clipboard.writeText(e.textContent),s();return}const n=document.createRange();n.selectNodeContents(e);const o=window.getSelection();o.removeAllRanges(),o.addRange(n);try{document.execCommand("copy"),s()}catch{}o.removeRange(n)}),n.classList.contains("highlight")?n.appendChild(t):n.parentNode.firstChild==n||(e.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName=="TABLE"?e.parentNode.parentNode.parentNode.parentNode.parentNode.appendChild(t):e.parentNode.appendChild(t))})</script></body></html>
Loading

0 comments on commit 7ac2eb9

Please sign in to comment.