feat: support srht html

main
sudo pacman -Syu 2023-04-19 15:56:12 +07:00
parent a6ad80c1a7
commit 177fae5a59
20 changed files with 50 additions and 50 deletions

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-backup-my-way" id="user-content-backup-my-way"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-dockerfile-for-go" id="user-content-dockerfile-for-go"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-bootstrap-go" id="user-content-bootstrap-go"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-uuid-or-else" id="user-content-uuid-or-else"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-migrate-to-buf-from-prototool" id="user-content-migrate-to-buf-from-prototool"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-experiment-go" id="user-content-experiment-go"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a id="user-content-sql" class="anchor" aria-hidden="true" href="#sql" <a id="user-content-sql" class="anchor" aria-hidden="true" href="#sql"
><span aria-hidden="true" class="octicon octicon-link"></span></a ><span aria-hidden="true" class="octicon octicon-link"></span></a

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-gitignore" id="user-content-gitignore"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-reload-config" id="user-content-reload-config"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-install-arch-linux" id="user-content-install-arch-linux"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-speed-up-writing-go-test-asap" id="user-content-speed-up-writing-go-test-asap"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-incident-come-and-go" id="user-content-incident-come-and-go"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-ekyc---the-battle-never-ends" id="user-content-ekyc---the-battle-never-ends"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a id="user-content-fonts" class="anchor" aria-hidden="true" href="#fonts" <a id="user-content-fonts" class="anchor" aria-hidden="true" href="#fonts"
><span aria-hidden="true" class="octicon octicon-link"></span></a ><span aria-hidden="true" class="octicon octicon-link"></span></a

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-games-4-fun" id="user-content-games-4-fun"

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a id="user-content-keeb" class="anchor" aria-hidden="true" href="#keeb" <a id="user-content-keeb" class="anchor" aria-hidden="true" href="#keeb"
><span aria-hidden="true" class="octicon octicon-link"></span></a ><span aria-hidden="true" class="octicon octicon-link"></span></a

View File

@ -42,7 +42,7 @@
} }
</style> </style>
<body class="markdown-body"> <body class="markdown-body">
<div><a href="index">Index</a></div> <div><a href="index.html">Index</a></div>
<h1> <h1>
<a <a
id="user-content-naming-things" id="user-content-naming-things"

View File

@ -49,24 +49,24 @@
</h1> </h1>
<p>This is where I dump my thoughts.</p> <p>This is where I dump my thoughts.</p>
<ul> <ul>
<li><a href="2022-06-08-backup">Backup my way</a></li> <li><a href="2022-06-08-backup.html">Backup my way</a></li>
<li><a href="2022-06-08-dockerfile-go">Dockerfile for Go</a></li> <li><a href="2022-06-08-dockerfile-go.html">Dockerfile for Go</a></li>
<li><a href="2022-07-10-bootstrap-go">Bootstrap Go</a></li> <li><a href="2022-07-10-bootstrap-go.html">Bootstrap Go</a></li>
<li><a href="2022-07-12-uuid-or-else">UUID or else</a></li> <li><a href="2022-07-12-uuid-or-else.html">UUID or else</a></li>
<li><a href="2022-07-19-migrate-to-buf">Migrate to buf</a></li> <li><a href="2022-07-19-migrate-to-buf.html">Migrate to buf</a></li>
<li><a href="2022-07-31-sql">SQL</a></li> <li><a href="2022-07-31-sql.html">SQL</a></li>
<li><a href="2022-07-31-experiment-go">Experiment go</a></li> <li><a href="2022-07-31-experiment-go.html">Experiment go</a></li>
<li><a href="2022-08-10-gitignore">gitignore</a></li> <li><a href="2022-08-10-gitignore.html">gitignore</a></li>
<li><a href="2022-10-26-reload-config">Reload config</a></li> <li><a href="2022-10-26-reload-config.html">Reload config</a></li>
<li><a href="2022-12-25-archlinux">Install Arch Linux</a></li> <li><a href="2022-12-25-archlinux.html">Install Arch Linux</a></li>
<li> <li>
<a href="2022-12-25-go-test-asap">Speed up writing Go test ASAP</a> <a href="2022-12-25-go-test-asap.html">Speed up writing Go test ASAP</a>
</li> </li>
<li><a href="2023-03-05-incident">Incident come and go</a></li> <li><a href="2023-03-05-incident.html">Incident come and go</a></li>
<li><a href="2023-03-30-fonts">Fonts</a></li> <li><a href="2023-03-30-fonts.html">Fonts</a></li>
<li><a href="2023-04-01-games">Games 4 fun</a></li> <li><a href="2023-04-01-games.html">Games 4 fun</a></li>
<li><a href="2023-04-17-naming">Naming things</a></li> <li><a href="2023-04-17-naming.html">Naming things</a></li>
<li><a href="2023-04-17-keeb">Keeb</a></li> <li><a href="2023-04-17-keeb.html">Keeb</a></li>
</ul> </ul>
<div> <div>

View File

@ -107,7 +107,7 @@ func main() {
defer htmlFile.Close() defer htmlFile.Close()
// Ignore index in index file // Ignore index in index file
indexHTML := `<div><a href="index">Index</a></div>` indexHTML := `<div><a href="index.html">Index</a></div>`
if strings.Contains(postFilename, "index") { if strings.Contains(postFilename, "index") {
indexHTML = "" indexHTML = ""
} }

View File

@ -2,19 +2,19 @@
This is where I dump my thoughts. This is where I dump my thoughts.
- [Backup my way](2022-06-08-backup) - [Backup my way](2022-06-08-backup.html)
- [Dockerfile for Go](2022-06-08-dockerfile-go) - [Dockerfile for Go](2022-06-08-dockerfile-go.html)
- [Bootstrap Go](2022-07-10-bootstrap-go) - [Bootstrap Go](2022-07-10-bootstrap-go.html)
- [UUID or else](2022-07-12-uuid-or-else) - [UUID or else](2022-07-12-uuid-or-else.html)
- [Migrate to buf](2022-07-19-migrate-to-buf) - [Migrate to buf](2022-07-19-migrate-to-buf.html)
- [SQL](2022-07-31-sql) - [SQL](2022-07-31-sql.html)
- [Experiment go](2022-07-31-experiment-go) - [Experiment go](2022-07-31-experiment-go.html)
- [gitignore](2022-08-10-gitignore) - [gitignore](2022-08-10-gitignore.html)
- [Reload config](2022-10-26-reload-config) - [Reload config](2022-10-26-reload-config.html)
- [Install Arch Linux](2022-12-25-archlinux) - [Install Arch Linux](2022-12-25-archlinux.html)
- [Speed up writing Go test ASAP](2022-12-25-go-test-asap) - [Speed up writing Go test ASAP](2022-12-25-go-test-asap.html)
- [Incident come and go](2023-03-05-incident) - [Incident come and go](2023-03-05-incident.html)
- [Fonts](2023-03-30-fonts) - [Fonts](2023-03-30-fonts.html)
- [Games 4 fun](2023-04-01-games) - [Games 4 fun](2023-04-01-games.html)
- [Naming things](2023-04-17-naming) - [Naming things](2023-04-17-naming.html)
- [Keeb](2023-04-17-keeb) - [Keeb](2023-04-17-keeb.html)