Skip to content

Commit

Permalink
css: use @import url(style/{theme});
Browse files Browse the repository at this point in the history
closes #74
  • Loading branch information
polarhive committed Apr 1, 2024
1 parent b85eff2 commit 3b2292b
Show file tree
Hide file tree
Showing 15 changed files with 514 additions and 501 deletions.
2 changes: 1 addition & 1 deletion cmd/anna/wizard.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewWizardServer(addr string) *WizardServer {

func (ws *WizardServer) Start() {
http.HandleFunc("/submit", ws.handleSubmit)
fs := http.FileServer(http.Dir("./cmd/wizard"))
fs := http.FileServer(http.Dir("./site/static/wizard"))
http.Handle("/", fs)
fmt.Printf("Wizard is running at: http://localhost%s\n", ws.server.Addr)
if err := ws.server.ListenAndServe(); err != nil && err != http.ErrServerClosed {
Expand Down
5 changes: 0 additions & 5 deletions site/layout/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@

<link rel="preload stylesheet" href="{{.Layout.ThemeURL}}" />
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/highlight.min.js"></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/styles/tokyo-night-dark.min.css"
/>

<link
rel="alternate"
type="application/atom+xml"
Expand Down
2 changes: 1 addition & 1 deletion site/static/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"docs.md":{"CompleteURL":"docs.html","FilenameWithoutExtension":"docs","Frontmatter":{"Title":"Anna Documentation","Date":"","Draft":false,"JSFiles":null,"Type":"","Description":"","PreviewImage":"","Tags":null,"Authors":null},"Tags":null},"index.md":{"CompleteURL":"index.html","FilenameWithoutExtension":"index","Frontmatter":{"Title":"Home","Date":"2024-02-24","Draft":false,"JSFiles":null,"Type":"","Description":"homepage for our ssg","PreviewImage":"/static/plane.jpg","Tags":null,"Authors":null},"Tags":null},"week-1.md":{"CompleteURL":"posts/week-1.html","FilenameWithoutExtension":"week-1","Frontmatter":{"Title":"Week-1 Progress","Date":"2024-03-18","Draft":false,"JSFiles":null,"Type":"post","Description":"","PreviewImage":"","Tags":["progress"],"Authors":["Adhesh","Aditya","Anirudh","Nathan"]},"Tags":["progress"]},"week-2.md":{"CompleteURL":"posts/week-2.html","FilenameWithoutExtension":"week-2","Frontmatter":{"Title":"Week-2 Progress","Date":"2024-03-25","Draft":false,"JSFiles":null,"Type":"post","Description":"","PreviewImage":"","Tags":["progress"],"Authors":["Adhesh","Aditya","Anirudh","Nathan"]},"Tags":["progress"]},"week-3.md":{"CompleteURL":"posts/week-3.html","FilenameWithoutExtension":"week-3","Frontmatter":{"Title":"Week-3 Progress","Date":"2024-04-01","Draft":false,"JSFiles":null,"Type":"post","Description":"","PreviewImage":"","Tags":["progress"],"Authors":["Adhesh","Aditya","Anirudh","Nathan"]},"Tags":["progress"]}}
{"docs.md":{"CompleteURL":"docs.html","FilenameWithoutExtension":"docs","Frontmatter":{"Title":"Anna Documentation","Date":"","Draft":false,"JSFiles":null,"Type":"","Description":"","PreviewImage":"","Tags":null,"Authors":null},"Tags":null},"fireside_anna.md":{"CompleteURL":"posts/fireside_anna.html","FilenameWithoutExtension":"fireside_anna","Frontmatter":{"Title":"Presenting anna at fireside","Date":"2024-04-03","Draft":false,"JSFiles":null,"Type":"post","Description":"Building a static site generator in Go","PreviewImage":"","Tags":["acm","hsp","go","tech","talk"],"Authors":null},"Tags":["acm","hsp","go","tech","talk"]},"index.md":{"CompleteURL":"index.html","FilenameWithoutExtension":"index","Frontmatter":{"Title":"Home","Date":"2024-02-24","Draft":false,"JSFiles":null,"Type":"","Description":"homepage for our ssg","PreviewImage":"/static/plane.jpg","Tags":null,"Authors":null},"Tags":null},"week-1.md":{"CompleteURL":"posts/week-1.html","FilenameWithoutExtension":"week-1","Frontmatter":{"Title":"Week-1 Progress","Date":"2024-03-18","Draft":false,"JSFiles":null,"Type":"post","Description":"","PreviewImage":"","Tags":["progress"],"Authors":["Adhesh","Aditya","Anirudh","Nathan"]},"Tags":["progress"]},"week-2.md":{"CompleteURL":"posts/week-2.html","FilenameWithoutExtension":"week-2","Frontmatter":{"Title":"Week-2 Progress","Date":"2024-03-25","Draft":false,"JSFiles":null,"Type":"post","Description":"","PreviewImage":"","Tags":["progress"],"Authors":["Adhesh","Aditya","Anirudh","Nathan"]},"Tags":["progress"]},"week-3.md":{"CompleteURL":"posts/week-3.html","FilenameWithoutExtension":"week-3","Frontmatter":{"Title":"Week-3 Progress","Date":"2024-04-01","Draft":false,"JSFiles":null,"Type":"post","Description":"","PreviewImage":"","Tags":["progress"],"Authors":["Adhesh","Aditya","Anirudh","Nathan"]},"Tags":["progress"]}}
Loading

0 comments on commit 3b2292b

Please sign in to comment.