xonecas.io
4114
Xi

xonecas.gitlab.io / commit b6834ae

Adds Hugo generated site

sean2022-01-07 b6834ae3616242154d90ef906cf35fb32994063e parent 546b52f

17 files changed

This diff is too big to show in full. The first 1000 lines are below, and every file is listed with its counts.

.gitmodules+3−0
@@ -0,0 +1,3 @@
1+[submodule "themes/anubis"]
2+ path = themes/anubis
3+ url = https://github.com/mitrichius/hugo-theme-anubis.git
archetypes/default.md+6−0
@@ -0,0 +1,6 @@
1+---
2+title: "{{ replace .Name "-" " " | title }}"
3+date: {{ .Date }}
4+draft: true
5+---
6+
config.toml+7−0
@@ -0,0 +1,7 @@
1+baseURL = ""
2+languageCode = "en-us"
3+title = "Sean (xonecas) Caetano Martin | Software Engineer"
4+theme = "anubis"
5+
6+[params]
7+style = "dark"
content/posts/hello-world.md+7−0
@@ -0,0 +1,7 @@
1+---
2+title: "Hello World"
3+date: 2022-01-07T16:45:59Z
4+draft: true
5+---
6+
7+this is a test post
public/categories/index.html+206−0
@@ -0,0 +1,206 @@
1+<!DOCTYPE html>
2+
3+
4+<html lang="en-us" data-theme="">
5+<head>
6+
7+
8+<meta charset="utf-8">
9+<meta name="HandheldFriendly" content="True">
10+<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+<meta name="referrer" content="no-referrer-when-downgrade">
12+
13+<title>Categories - Sean (xonecas) Caetano Martin | Software Engineer</title>
14+
15+<meta name="description" content="">
16+
17+
18+
19+<link rel="alternate" type="application/rss+xml" href="/categories/index.xml" title="Sean (xonecas) Caetano Martin | Software Engineer" />
20+<link rel="icon" type="image/x-icon" href="favicon.ico">
21+<link rel="apple-touch-icon-precomposed" href="favicon.png">
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+ <link rel="stylesheet" href="/css/style.min.8d361532f3f7a655817c9385bc6ade262f4ccc366cc85c52575fa2d1add76871.css" integrity="sha256-jTYVMvP3plWBfJOFvGreJi9MzDZsyFxSV1&#43;i0a3XaHE=">
39+
40+
41+
42+
43+
44+
45+
46+<meta property="og:title" content="Categories" />
47+<meta property="og:description" content="" />
48+<meta property="og:type" content="website" />
49+<meta property="og:url" content="/categories/" />
50+
51+
52+<meta name="twitter:card" content="summary"/>
53+<meta name="twitter:title" content="Categories"/>
54+<meta name="twitter:description" content=""/>
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+</head>
68+<body>
69+ <a class="skip-main" href="#main">Skip to main content</a>
70+ <div class="container">
71+ <header class="common-header">
72+
73+ <div class="header-top">
74+ <h1 class="site-title">
75+ <a href="/">Sean (xonecas) Caetano Martin | Software Engineer</a>
76+ </h1>
77+ <ul class="social-icons">
78+
79+
80+</ul>
81+
82+</div>
83+
84+ <nav></nav>
85+
86+
87+
88+
89+
90+ </header>
91+ <main id="main" tabindex="-1">
92+
93+ <div class="index-content">
94+
95+ </div>
96+
97+ <h1>Categories</h1>
98+ <ul class="terms">
99+
100+ </ul>
101+
102+
103+ </main>
104+
105+ <footer class="common-footer">
106+
107+
108+
109+ <div class="common-footer-bottom">
110+
111+ <div class="copyright">
112+ <p>© 2022<br>
113+ Powered by <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, theme <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br>
114+
115+ </p>
116+ </div>
117+
118+
119+
120+
121+
122+
123+
124+ <button class="theme-switcher">
125+ Dark theme
126+ </button>
127+
128+ <script>
129+ const STORAGE_KEY = 'user-color-scheme'
130+ const defaultTheme = "dark"
131+
132+ let currentTheme
133+ let switchButton
134+ let autoDefinedScheme = window.matchMedia('(prefers-color-scheme: dark)')
135+
136+ const autoChangeScheme = e => {
137+ currentTheme = e.matches ? 'dark' : 'light'
138+ document.documentElement.setAttribute('data-theme', currentTheme)
139+ changeButtonText()
140+ }
141+
142+ document.addEventListener('DOMContentLoaded', function() {
143+ switchButton = document.querySelector('.theme-switcher')
144+ currentTheme = detectCurrentScheme()
145+ if (currentTheme == 'dark') {
146+ document.documentElement.setAttribute('data-theme', 'dark')
147+ }
148+ if (currentTheme == 'auto') {
149+ autoChangeScheme(autoDefinedScheme);
150+ autoDefinedScheme.addListener(autoChangeScheme);
151+ }
152+ changeButtonText()
153+ switchButton.addEventListener('click', switchTheme, false)
154+ })
155+
156+ function detectCurrentScheme() {
157+ if (localStorage.getItem(STORAGE_KEY)) {
158+ return localStorage.getItem(STORAGE_KEY)
159+ }
160+ if (defaultTheme) {
161+ return defaultTheme
162+ }
163+ if (!window.matchMedia) {
164+ return 'light'
165+ }
166+ if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
167+ return 'dark'
168+ }
169+ return 'light'
170+ }
171+
172+ function changeButtonText()
173+ {
174+ switchButton.textContent = currentTheme == 'dark' ? "Light theme" : "Dark theme"
175+ }
176+
177+ function switchTheme(e) {
178+ if (currentTheme == 'dark') {
179+ localStorage.setItem(STORAGE_KEY, 'light')
180+ document.documentElement.setAttribute('data-theme', 'light')
181+ currentTheme = 'light'
182+ } else {
183+ localStorage.setItem(STORAGE_KEY, 'dark')
184+ document.documentElement.setAttribute('data-theme', 'dark')
185+ currentTheme = 'dark'
186+ }
187+ changeButtonText()
188+ }
189+ </script>
190+
191+ </div>
192+
193+ <p class="h-card vcard">
194+
195+ <a href= class="p-name u-url url fn" rel="me"></a>
196+
197+
198+
199+
200+</p>
201+</footer>
202+
203+
204+ </div>
205+</body>
206+</html>
public/categories/index.xml+14−0
@@ -0,0 +1,14 @@
1+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+ <channel>
4+ <title>Categories on Sean (xonecas) Caetano Martin | Software Engineer</title>
5+ <link>/categories/</link>
6+ <description>Sean (xonecas) Caetano Martin | Software Engineer (Categories)</description>
7+ <generator>Hugo -- gohugo.io</generator>
8+ <language>en-us</language>
9+
10+ <atom:link href="/categories/index.xml" rel="self" type="application/rss+xml" />
11+
12+
13+ </channel>
14+</rss>
public/css/style.min.8d361532f3f7a655817c9385bc6ade262f4ccc366cc85c52575fa2d1add76871.css+1−0
@@ -0,0 +1 @@
1+:root{--font-color: #333;--bg-color: #fff;--link-color:#1d60a3;--link-state-color:#a31d1d;--link-state-border-color: rgba(163, 29, 29, .5);--thead-bg-color: lightgrey;--table-border-color: lightgrey;--nav-bg-color: #fafafa;--nav-link-color: #696969;--pre-color: #333;--pre-bg-color: #f1f1f1;--bq-color: #ccc;--hr-color: #ccc;--pagination-bg-color: #fafafa;--pagination-link-color: #696969;--post-info-color: grey;--switcher-color: #fff;--switcher-bg-color: #333}[data-theme=dark]{--font-color: #eee;- …
public/index.html+244−0
@@ -0,0 +1,244 @@
1+<!DOCTYPE html>
2+
3+
4+<html lang="en-us" data-theme="">
5+<head>
6+ <meta name="generator" content="Hugo 0.68.3" />
7+
8+
9+<meta charset="utf-8">
10+<meta name="HandheldFriendly" content="True">
11+<meta name="viewport" content="width=device-width, initial-scale=1.0">
12+<meta name="referrer" content="no-referrer-when-downgrade">
13+
14+<title>Sean (xonecas) Caetano Martin | Software Engineer</title>
15+
16+<meta name="description" content="">
17+
18+
19+
20+<link rel="alternate" type="application/rss+xml" href="/index.xml" title="Sean (xonecas) Caetano Martin | Software Engineer" />
21+<link rel="icon" type="image/x-icon" href="favicon.ico">
22+<link rel="apple-touch-icon-precomposed" href="favicon.png">
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+ <link rel="stylesheet" href="/css/style.min.8d361532f3f7a655817c9385bc6ade262f4ccc366cc85c52575fa2d1add76871.css" integrity="sha256-jTYVMvP3plWBfJOFvGreJi9MzDZsyFxSV1&#43;i0a3XaHE=">
40+
41+
42+
43+
44+
45+
46+
47+<meta property="og:title" content="Sean (xonecas) Caetano Martin | Software Engineer" />
48+<meta property="og:description" content="" />
49+<meta property="og:type" content="website" />
50+<meta property="og:url" content="/" />
51+<meta property="og:updated_time" content="2022-01-07T16:45:59+00:00" />
52+
53+<meta name="twitter:card" content="summary"/>
54+<meta name="twitter:title" content="Sean (xonecas) Caetano Martin | Software Engineer"/>
55+<meta name="twitter:description" content=""/>
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+
68+</head>
69+<body>
70+ <a class="skip-main" href="#main">Skip to main content</a>
71+ <div class="container">
72+ <header class="common-header">
73+
74+ <div class="header-top">
75+ <h1 class="site-title">
76+ <a href="/">Sean (xonecas) Caetano Martin | Software Engineer</a>
77+ </h1>
78+ <ul class="social-icons">
79+
80+
81+</ul>
82+
83+</div>
84+
85+ <nav></nav>
86+
87+
88+
89+
90+
91+ </header>
92+ <main id="main" tabindex="-1">
93+
94+ <div class="homepage-content">
95+
96+ </div>
97+
98+ <div class="articles h-feed">
99+
100+
101+ <article class="post-list h-feed">
102+ <div class="post-header">
103+ <header>
104+ <h1 class="p-name post-title draft"><a class="u-url" href="/posts/hello-world/">Hello World</a></h1>
105+ </header>
106+
107+ </div>
108+
109+
110+ <div class="content post-summary p-summary">
111+ this is a test post
112+ </div>
113+
114+
115+
116+
117+
118+
119+<div class="post-info">
120+
121+ <div class="post-date dt-published">2022-01-07</div>
122+
123+
124+ <a class="post-hidden-url u-url" href="/posts/hello-world/">/posts/hello-world/</a>
125+ <a href="" class="p-name p-author post-hidden-author h-card" rel="me"></a>
126+
127+
128+ <div class="post-taxonomies">
129+
130+
131+ </div>
132+</div>
133+
134+</article>
135+
136+
137+
138+ </div>
139+
140+
141+ </main>
142+
143+ <footer class="common-footer">
144+
145+
146+
147+ <div class="common-footer-bottom">
148+
149+ <div class="copyright">
150+ <p>© 2022<br>
151+ Powered by <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, theme <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br>
152+
153+ </p>
154+ </div>
155+
156+
157+
158+
159+
160+
161+
162+ <button class="theme-switcher">
163+ Dark theme
164+ </button>
165+
166+ <script>
167+ const STORAGE_KEY = 'user-color-scheme'
168+ const defaultTheme = "dark"
169+
170+ let currentTheme
171+ let switchButton
172+ let autoDefinedScheme = window.matchMedia('(prefers-color-scheme: dark)')
173+
174+ const autoChangeScheme = e => {
175+ currentTheme = e.matches ? 'dark' : 'light'
176+ document.documentElement.setAttribute('data-theme', currentTheme)
177+ changeButtonText()
178+ }
179+
180+ document.addEventListener('DOMContentLoaded', function() {
181+ switchButton = document.querySelector('.theme-switcher')
182+ currentTheme = detectCurrentScheme()
183+ if (currentTheme == 'dark') {
184+ document.documentElement.setAttribute('data-theme', 'dark')
185+ }
186+ if (currentTheme == 'auto') {
187+ autoChangeScheme(autoDefinedScheme);
188+ autoDefinedScheme.addListener(autoChangeScheme);
189+ }
190+ changeButtonText()
191+ switchButton.addEventListener('click', switchTheme, false)
192+ })
193+
194+ function detectCurrentScheme() {
195+ if (localStorage.getItem(STORAGE_KEY)) {
196+ return localStorage.getItem(STORAGE_KEY)
197+ }
198+ if (defaultTheme) {
199+ return defaultTheme
200+ }
201+ if (!window.matchMedia) {
202+ return 'light'
203+ }
204+ if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
205+ return 'dark'
206+ }
207+ return 'light'
208+ }
209+
210+ function changeButtonText()
211+ {
212+ switchButton.textContent = currentTheme == 'dark' ? "Light theme" : "Dark theme"
213+ }
214+
215+ function switchTheme(e) {
216+ if (currentTheme == 'dark') {
217+ localStorage.setItem(STORAGE_KEY, 'light')
218+ document.documentElement.setAttribute('data-theme', 'light')
219+ currentTheme = 'light'
220+ } else {
221+ localStorage.setItem(STORAGE_KEY, 'dark')
222+ document.documentElement.setAttribute('data-theme', 'dark')
223+ currentTheme = 'dark'
224+ }
225+ changeButtonText()
226+ }
227+ </script>
228+
229+ </div>
230+
231+ <p class="h-card vcard">
232+
233+ <a href= class="p-name u-url url fn" rel="me"></a>
234+
235+
236+
237+
238+</p>
239+</footer>
240+
241+
242+ </div>
243+</body>
244+</html>
public/index.xml+25−0
@@ -0,0 +1,25 @@
1+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+ <channel>
4+ <title>Sean (xonecas) Caetano Martin | Software Engineer</title>
5+ <link>/</link>
6+ <description>Sean (xonecas) Caetano Martin | Software Engineer</description>
7+ <generator>Hugo -- gohugo.io</generator>
8+ <language>en-us</language>
9+ <lastBuildDate>Fri, 07 Jan 2022 16:45:59 +0000</lastBuildDate>
10+
11+ <atom:link href="/index.xml" rel="self" type="application/rss+xml" />
12+
13+
14+ <item>
15+ <title>Hello World</title>
16+ <link>/posts/hello-world/</link>
17+ <pubDate>Fri, 07 Jan 2022 16:45:59 +0000</pubDate>
18+
19+ <guid>/posts/hello-world/</guid>
20+ <description>&lt;p&gt;this is a test post&lt;/p&gt;
21+</description>
22+ </item>
23+
24+ </channel>
25+</rss>
public/page/1/index.html+1−0
@@ -0,0 +1 @@
1+<!DOCTYPE html><html><head><title>/</title><link rel="canonical" href="/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=/" /></head></html>
public/posts/hello-world/index.html+239−0
@@ -0,0 +1,239 @@
1+<!DOCTYPE html>
2+
3+
4+<html lang="en-us" data-theme="">
5+<head>
6+
7+
8+<meta charset="utf-8">
9+<meta name="HandheldFriendly" content="True">
10+<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+<meta name="referrer" content="no-referrer-when-downgrade">
12+
13+<title>Hello World - Sean (xonecas) Caetano Martin | Software Engineer</title>
14+
15+<meta name="description" content="this is a test post">
16+
17+
18+
19+<link rel="icon" type="image/x-icon" href="favicon.ico">
20+<link rel="apple-touch-icon-precomposed" href="favicon.png">
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+ <link rel="stylesheet" href="/css/style.min.8d361532f3f7a655817c9385bc6ade262f4ccc366cc85c52575fa2d1add76871.css" integrity="sha256-jTYVMvP3plWBfJOFvGreJi9MzDZsyFxSV1&#43;i0a3XaHE=">
38+
39+
40+
41+
42+
43+
44+
45+<meta property="og:title" content="Hello World" />
46+<meta property="og:description" content="this is a test post" />
47+<meta property="og:type" content="article" />
48+<meta property="og:url" content="/posts/hello-world/" />
49+<meta property="article:published_time" content="2022-01-07T16:45:59+00:00" />
50+<meta property="article:modified_time" content="2022-01-07T16:45:59+00:00" />
51+
52+<meta name="twitter:card" content="summary"/>
53+<meta name="twitter:title" content="Hello World"/>
54+<meta name="twitter:description" content="this is a test post"/>
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+</head>
68+<body>
69+ <a class="skip-main" href="#main">Skip to main content</a>
70+ <div class="container">
71+ <header class="common-header">
72+
73+ <div class="header-top">
74+ <h1 class="site-title">
75+ <a href="/">Sean (xonecas) Caetano Martin | Software Engineer</a>
76+ </h1>
77+ <ul class="social-icons">
78+
79+
80+</ul>
81+
82+</div>
83+
84+ <nav></nav>
85+
86+
87+
88+
89+
90+ </header>
91+ <main id="main" tabindex="-1">
92+
93+
94+
95+ <article class="post h-entry">
96+ <div class="post-header">
97+ <header>
98+ <h1 class="p-name post-title draft">Hello World</h1>
99+
100+
101+ </header>
102+ </div>
103+ <div class="content e-content">
104+ <p>this is a test post</p>
105+
106+ </div>
107+
108+
109+
110+<div class="post-info">
111+
112+ <div class="post-date dt-published">2022-01-07</div>
113+
114+
115+ <a class="post-hidden-url u-url" href="/posts/hello-world/">/posts/hello-world/</a>
116+ <a href="" class="p-name p-author post-hidden-author h-card" rel="me"></a>
117+
118+
119+ <div class="post-taxonomies">
120+
121+
122+ </div>
123+</div>
124+
125+ </article>
126+
127+
128+
129+
130+
131+
132+
133+
134+
135+
136+ </main>
137+
138+ <footer class="common-footer">
139+
140+
141+
142+ <div class="common-footer-bottom">
143+
144+ <div class="copyright">
145+ <p>© 2022<br>
146+ Powered by <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, theme <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br>
147+
148+ </p>
149+ </div>
150+
151+
152+
153+
154+
155+
156+
157+ <button class="theme-switcher">
158+ Dark theme
159+ </button>
160+
161+ <script>
162+ const STORAGE_KEY = 'user-color-scheme'
163+ const defaultTheme = "dark"
164+
165+ let currentTheme
166+ let switchButton
167+ let autoDefinedScheme = window.matchMedia('(prefers-color-scheme: dark)')
168+
169+ const autoChangeScheme = e => {
170+ currentTheme = e.matches ? 'dark' : 'light'
171+ document.documentElement.setAttribute('data-theme', currentTheme)
172+ changeButtonText()
173+ }
174+
175+ document.addEventListener('DOMContentLoaded', function() {
176+ switchButton = document.querySelector('.theme-switcher')
177+ currentTheme = detectCurrentScheme()
178+ if (currentTheme == 'dark') {
179+ document.documentElement.setAttribute('data-theme', 'dark')
180+ }
181+ if (currentTheme == 'auto') {
182+ autoChangeScheme(autoDefinedScheme);
183+ autoDefinedScheme.addListener(autoChangeScheme);
184+ }
185+ changeButtonText()
186+ switchButton.addEventListener('click', switchTheme, false)
187+ })
188+
189+ function detectCurrentScheme() {
190+ if (localStorage.getItem(STORAGE_KEY)) {
191+ return localStorage.getItem(STORAGE_KEY)
192+ }
193+ if (defaultTheme) {
194+ return defaultTheme
195+ }
196+ if (!window.matchMedia) {
197+ return 'light'
198+ }
199+ if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
200+ return 'dark'
201+ }
202+ return 'light'
203+ }
204+
205+ function changeButtonText()
206+ {
207+ switchButton.textContent = currentTheme == 'dark' ? "Light theme" : "Dark theme"
208+ }
209+
210+ function switchTheme(e) {
211+ if (currentTheme == 'dark') {
212+ localStorage.setItem(STORAGE_KEY, 'light')
213+ document.documentElement.setAttribute('data-theme', 'light')
214+ currentTheme = 'light'
215+ } else {
216+ localStorage.setItem(STORAGE_KEY, 'dark')
217+ document.documentElement.setAttribute('data-theme', 'dark')
218+ currentTheme = 'dark'
219+ }
220+ changeButtonText()
221+ }
222+ </script>
223+
224+ </div>
225+
226+ <p class="h-card vcard">
227+
228+ <a href= class="p-name u-url url fn" rel="me"></a>
229+
230+
231+
232+
233+</p>
234+</footer>
235+
236+
237+ </div>
238+</body>
239+</html>
public/posts/index.html+234−0
@@ -0,0 +1,234 @@
1+<!DOCTYPE html>
2+
3+
4+<html lang="en-us" data-theme="">
5+<head>
6+
7+
8+<meta charset="utf-8">
9+<meta name="HandheldFriendly" content="True">
10+<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+<meta name="referrer" content="no-referrer-when-downgrade">
12+
13+<title>Posts - Sean (xonecas) Caetano Martin | Software Engineer</title>
14+
15+<meta name="description" content="">
16+
17+
18+
19+<link rel="alternate" type="application/rss+xml" href="/posts/index.xml" title="Sean (xonecas) Caetano Martin | Software Engineer" />
20+<link rel="icon" type="image/x-icon" href="favicon.ico">
21+<link rel="apple-touch-icon-precomposed" href="favicon.png">
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+ <link rel="stylesheet" href="/css/style.min.8d361532f3f7a655817c9385bc6ade262f4ccc366cc85c52575fa2d1add76871.css" integrity="sha256-jTYVMvP3plWBfJOFvGreJi9MzDZsyFxSV1&#43;i0a3XaHE=">
39+
40+
41+
42+
43+
44+
45+
46+<meta property="og:title" content="Posts" />
47+<meta property="og:description" content="" />
48+<meta property="og:type" content="website" />
49+<meta property="og:url" content="/posts/" />
50+<meta property="og:updated_time" content="2022-01-07T16:45:59+00:00" />
51+
52+<meta name="twitter:card" content="summary"/>
53+<meta name="twitter:title" content="Posts"/>
54+<meta name="twitter:description" content=""/>
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+</head>
68+<body>
69+ <a class="skip-main" href="#main">Skip to main content</a>
70+ <div class="container">
71+ <header class="common-header">
72+
73+ <div class="header-top">
74+ <h1 class="site-title">
75+ <a href="/">Sean (xonecas) Caetano Martin | Software Engineer</a>
76+ </h1>
77+ <ul class="social-icons">
78+
79+
80+</ul>
81+
82+</div>
83+
84+ <nav></nav>
85+
86+
87+
88+
89+
90+ </header>
91+ <main id="main" tabindex="-1">
92+
93+ <div class="index-content">
94+
95+ </div>
96+
97+ <div class="articles h-feed">
98+ <h1 class="post-title">Posts</h1>
99+
100+
101+ <div class="post-short-list h-entry">
102+ <div class="post-header">
103+ <header>
104+ <h2 class="p-name post-title draft"><a class="u-url" href="/posts/hello-world/">Hello World</a></h2>
105+
106+ </header>
107+ </div>
108+
109+
110+
111+<div class="post-info">
112+
113+ <div class="post-date dt-published">2022-01-07</div>
114+
115+
116+ <a class="post-hidden-url u-url" href="/posts/hello-world/">/posts/hello-world/</a>
117+ <a href="" class="p-name p-author post-hidden-author h-card" rel="me"></a>
118+
119+
120+ <div class="post-taxonomies">
121+
122+
123+ </div>
124+</div>
125+
126+ </div>
127+
128+ </div>
129+
130+
131+ </main>
132+
133+ <footer class="common-footer">
134+
135+
136+
137+ <div class="common-footer-bottom">
138+
139+ <div class="copyright">
140+ <p>© 2022<br>
141+ Powered by <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, theme <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br>
142+
143+ </p>
144+ </div>
145+
146+
147+
148+
149+
150+
151+
152+ <button class="theme-switcher">
153+ Dark theme
154+ </button>
155+
156+ <script>
157+ const STORAGE_KEY = 'user-color-scheme'
158+ const defaultTheme = "dark"
159+
160+ let currentTheme
161+ let switchButton
162+ let autoDefinedScheme = window.matchMedia('(prefers-color-scheme: dark)')
163+
164+ const autoChangeScheme = e => {
165+ currentTheme = e.matches ? 'dark' : 'light'
166+ document.documentElement.setAttribute('data-theme', currentTheme)
167+ changeButtonText()
168+ }
169+
170+ document.addEventListener('DOMContentLoaded', function() {
171+ switchButton = document.querySelector('.theme-switcher')
172+ currentTheme = detectCurrentScheme()
173+ if (currentTheme == 'dark') {
174+ document.documentElement.setAttribute('data-theme', 'dark')
175+ }
176+ if (currentTheme == 'auto') {
177+ autoChangeScheme(autoDefinedScheme);
178+ autoDefinedScheme.addListener(autoChangeScheme);
179+ }
180+ changeButtonText()
181+ switchButton.addEventListener('click', switchTheme, false)
182+ })
183+
184+ function detectCurrentScheme() {
185+ if (localStorage.getItem(STORAGE_KEY)) {
186+ return localStorage.getItem(STORAGE_KEY)
187+ }
188+ if (defaultTheme) {
189+ return defaultTheme
190+ }
191+ if (!window.matchMedia) {
192+ return 'light'
193+ }
194+ if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
195+ return 'dark'
196+ }
197+ return 'light'
198+ }
199+
200+ function changeButtonText()
201+ {
202+ switchButton.textContent = currentTheme == 'dark' ? "Light theme" : "Dark theme"
203+ }
204+
205+ function switchTheme(e) {
206+ if (currentTheme == 'dark') {
207+ localStorage.setItem(STORAGE_KEY, 'light')
208+ document.documentElement.setAttribute('data-theme', 'light')
209+ currentTheme = 'light'
210+ } else {
211+ localStorage.setItem(STORAGE_KEY, 'dark')
212+ document.documentElement.setAttribute('data-theme', 'dark')
213+ currentTheme = 'dark'
214+ }
215+ changeButtonText()
216+ }
217+ </script>
218+
219+ </div>
220+
221+ <p class="h-card vcard">
222+
223+ <a href= class="p-name u-url url fn" rel="me"></a>
224+
225+
226+
227+
228+</p>
229+</footer>
230+
231+
232+ </div>
233+</body>
234+</html>
public/posts/index.xml+25−0
@@ -0,0 +1,25 @@
Cut short: this commit's diff is over 1000 lines.
public/sitemap.xml+28−0
Cut short: this commit's diff is over 1000 lines.
public/tags/index.html+206−0
Cut short: this commit's diff is over 1000 lines.
public/tags/index.xml+14−0
Cut short: this commit's diff is over 1000 lines.
themes/anubis+1−0
Cut short: this commit's diff is over 1000 lines.