Working template
This commit is contained in:
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Generated files by hugo
|
||||
/public/
|
||||
/resources/_gen/
|
||||
/assets/jsconfig.json
|
||||
hugo_stats.json
|
||||
|
||||
# Temporary lock file while building
|
||||
/.hugo_build.lock
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "themes/PaperMod"]
|
||||
path = themes/PaperMod
|
||||
url = https://github.com/adityatelange/hugo-PaperMod.git
|
13
README.md
Normal file
13
README.md
Normal file
@ -0,0 +1,13 @@
|
||||
Tip:
|
||||
- Use `git submodule update --remote --merge` to update theme.
|
||||
|
||||
Todo:
|
||||
- Make a synced Logseq graph
|
||||
- Automate deploying
|
||||
|
||||
Relevant links:
|
||||
- [logseq Schrödinger](https://github.com/sawhney17/logseq-schrodinger)
|
||||
- [Hugo Template for Logseq](https://github.com/sawhney17/logseq-hugo-template)
|
||||
- [Logseq-Hugo-Template](https://github.com/CharlesChiuGit/Logseq-Hugo-Template/tree/main)
|
||||
- [PaperMod Wiki/Installation](https://github.com/adityatelange/hugo-PaperMod/wiki/Installation)
|
||||
- [Deploying a static Hugo site with NGINX](https://gideonwolfe.com/posts/sysadmin/hugonginx/)
|
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
@ -0,0 +1,5 @@
|
||||
+++
|
||||
date = '{{ .Date }}'
|
||||
draft = true
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
+++
|
6
content/archives.md
Normal file
6
content/archives.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: "Archives"
|
||||
layout: "archives"
|
||||
url: "/archives/"
|
||||
summary: archives
|
||||
---
|
7
content/search.md
Normal file
7
content/search.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Search" # in any language you want
|
||||
layout: "search" # is necessary
|
||||
# url: "/archive"
|
||||
# description: "Description for Search"
|
||||
summary: "search"
|
||||
---
|
47
hugo.toml
Normal file
47
hugo.toml
Normal file
@ -0,0 +1,47 @@
|
||||
title = "Linerds Blog"
|
||||
baseURL = "https://blog.linerds.us"
|
||||
languageCode = "en-us"
|
||||
theme = "PaperMod"
|
||||
|
||||
[params]
|
||||
author = "Linerds"
|
||||
contact = "blog@linerds.us" # yeah no
|
||||
feedlinks = true
|
||||
mobileMenu = true
|
||||
ShowReadingTime = true
|
||||
|
||||
[params.homeInfoParams]
|
||||
Title = "Linerds Blog"
|
||||
Content = "Nothing Yet"
|
||||
|
||||
[[params.socialIcons]]
|
||||
name = "gitea"
|
||||
url = "https://gitea.linerds.us/Linerds/blog"
|
||||
|
||||
[outputs]
|
||||
home = ["HTML", "RSS", "JSON"]
|
||||
section = ["HTML", "RSS", "JSON"]
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "categories"
|
||||
name = "Categories"
|
||||
url = "/categories/"
|
||||
weight = 10
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "tags"
|
||||
name = "Tags"
|
||||
url = "/tags/"
|
||||
weight = 20
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "search"
|
||||
name = "Search"
|
||||
url = "/search/"
|
||||
weight = 20
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "archive"
|
||||
name = "Archive"
|
||||
url = "/archives/"
|
||||
weight = 20
|
31
layouts/partials/backlinks.html
Normal file
31
layouts/partials/backlinks.html
Normal file
@ -0,0 +1,31 @@
|
||||
{{ $re := $.File.BaseFileName }} {{ $backlinks := slice }} {{ range where
|
||||
.Site.RegularPages "Type" "page" }} {{ if and (findRE $re .RawContent) (not (eq
|
||||
$re .File.BaseFileName)) }} {{ $backlinks = $backlinks | append . }} {{ end }}
|
||||
{{ end }} {{ if gt (len $backlinks) 0 }}
|
||||
<aside>
|
||||
<h3>Backlinks</h3>
|
||||
<div class="backlinks">
|
||||
<ul>
|
||||
{{ range $backlinks }}
|
||||
<li class="capitalize"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</aside>
|
||||
{{ else }}
|
||||
<aside>
|
||||
<h4>No notes link to this note</h4>
|
||||
</aside>
|
||||
{{ end }}
|
||||
|
||||
<aside class="related">
|
||||
{{ $related := .Site.RegularPages.Related . | complement $backlinks | first 3
|
||||
-}} {{ with $related -}}
|
||||
<h3>slightly related</h3>
|
||||
<ul>
|
||||
{{ range . -}}
|
||||
<li class="capitalize"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end -}}
|
||||
</ul>
|
||||
{{ end -}}
|
||||
</aside>
|
2
layouts/robots.txt
Normal file
2
layouts/robots.txt
Normal file
@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /
|
16
layouts/shortcodes/contact.html
Normal file
16
layouts/shortcodes/contact.html
Normal file
@ -0,0 +1,16 @@
|
||||
<p class="error message js-hidden">{{ i18n "js_required" }}</p>
|
||||
<p class="contact-submitted status message hidden">{{ i18n "contact_submitted" }}</p>
|
||||
<p class="contact-error error message hidden">{{ i18n "contact_error" }}</p>
|
||||
|
||||
<form class="contact-form hidden" action="#" method="post" accept-charset="UTF-8">
|
||||
<label for="edit-name">{{ i18n "contact_name" }}</label>
|
||||
<input type="text" id="edit-name" name="name" placeholder="{{ i18n "contact_name_placeholder" }}" tabindex="1" required autofocus><span></span>
|
||||
<label for="edit-mail">{{ i18n "contact_mail" }}</label>
|
||||
<input type="email" id="edit-mail" name="email" placeholder="{{ i18n "contact_mail_placeholder" }}" tabindex="2" required><span></span>
|
||||
<input type="text" id="edit-url" class="hidden" name="url" placeholder="{{ i18n "contact_honypot" }}">
|
||||
<label for="edit-subject">{{ i18n "contact_subject" }}</label>
|
||||
<input type="text" id="edit-subject" name="subject" placeholder="{{ i18n "contact_subject_placeholder" }}" tabindex="3" required><span></span>
|
||||
<label for="edit-message">{{ i18n "contact_message" }}</label>
|
||||
<textarea id="edit-message" name="message" rows="5" placeholder="{{ i18n "contact_message_placeholder" }}" tabindex="4" required></textarea><span></span>
|
||||
<button type="submit" name="submit" class="form-submit" disabled>{{ i18n "contact_submit" }}</button>
|
||||
</form>
|
3
layouts/shortcodes/hint.html
Normal file
3
layouts/shortcodes/hint.html
Normal file
@ -0,0 +1,3 @@
|
||||
<blockquote class="hint {{ .Get 0 }}">
|
||||
{{ .Inner | $.Page.RenderString }}
|
||||
</blockquote>
|
3
layouts/shortcodes/logseq/mark.html
Normal file
3
layouts/shortcodes/logseq/mark.html
Normal file
@ -0,0 +1,3 @@
|
||||
<mark>
|
||||
{{ .Inner | $.Page.RenderString }}
|
||||
</mark>
|
3
layouts/shortcodes/logseq/orgCAUTION.html
Normal file
3
layouts/shortcodes/logseq/orgCAUTION.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="caution {{ .Get 0 }}">
|
||||
{{ .Inner | $.Page.RenderString }}
|
||||
</div>
|
3
layouts/shortcodes/logseq/orgEXAMPLE.html
Normal file
3
layouts/shortcodes/logseq/orgEXAMPLE.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="example {{ .Get 0 }}">
|
||||
{{ .Inner | $.Page.RenderString }}
|
||||
</div>
|
3
layouts/shortcodes/logseq/orgIMPORTANT.html
Normal file
3
layouts/shortcodes/logseq/orgIMPORTANT.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="important {{ .Get 0 }}">
|
||||
{{ .Inner | $.Page.RenderString }}
|
||||
</div>
|
3
layouts/shortcodes/logseq/orgNOTE.html
Normal file
3
layouts/shortcodes/logseq/orgNOTE.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="note {{ .Get 0 }}">
|
||||
{{ .Inner | $.Page.RenderString }}
|
||||
</div>
|
3
layouts/shortcodes/logseq/orgPINNED.html
Normal file
3
layouts/shortcodes/logseq/orgPINNED.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="pinned {{ .Get 0 }}">
|
||||
{{ .Inner | $.Page.RenderString }}
|
||||
</div>
|
3
layouts/shortcodes/logseq/orgQUOTE.html
Normal file
3
layouts/shortcodes/logseq/orgQUOTE.html
Normal file
@ -0,0 +1,3 @@
|
||||
<blockquote class="hint {{ .Get 0 }}">
|
||||
{{ .Inner | $.Page.RenderString }}
|
||||
</blockquote>
|
3
layouts/shortcodes/logseq/orgTIP.html
Normal file
3
layouts/shortcodes/logseq/orgTIP.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="tip {{ .Get 0 }}">
|
||||
{{ .Inner | $.Page.RenderString }}
|
||||
</div>
|
3
layouts/shortcodes/logseq/orgWARNING.html
Normal file
3
layouts/shortcodes/logseq/orgWARNING.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="warning {{ .Get 0 }}">
|
||||
{{ .Inner | $.Page.RenderString }}
|
||||
</div>
|
22
layouts/shortcodes/search.html
Normal file
22
layouts/shortcodes/search.html
Normal file
@ -0,0 +1,22 @@
|
||||
<p class="error message js-hidden">{{ i18n "js_required" }}</p>
|
||||
<p class="search-loading status message hidden">{{ i18n "search_loading" }}</p>
|
||||
|
||||
<div class="search-input hidden">
|
||||
<form id="search-form" class="search-form" action="#" method="post" accept-charset="UTF-8" role="search">
|
||||
<label for="query" class="visually-hidden">{{ i18n "search_title" }}</label>
|
||||
<input type="search" id="query" name="query" class="search-text" placeholder="{{ i18n "search_placeholder" }}" maxlength="128">
|
||||
<button type="submit" name="submit" class="form-submit" >{{ i18n "search_title" }}</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="search-results"></div>
|
||||
|
||||
<template>
|
||||
<article class="search-result list-view">
|
||||
<header>
|
||||
<h2 class="title title-submitted"><a href="#">Title here</a></h2>
|
||||
<div class="submitted"><time class="created-date">Date here</time></div>
|
||||
</header>
|
||||
<div class="content">Summary here</div>
|
||||
</article>
|
||||
</template>
|
1
themes/PaperMod
Submodule
1
themes/PaperMod
Submodule
Submodule themes/PaperMod added at 72615b6d49
Reference in New Issue
Block a user