initial commit
This commit is contained in:
commit
a2b32effdf
4 changed files with 528 additions and 0 deletions
150
configuration/configuration.txt
Normal file
150
configuration/configuration.txt
Normal file
|
@ -0,0 +1,150 @@
|
|||
// Weblog Configuration
|
||||
|
||||
;; About your weblog
|
||||
;; -----------------
|
||||
|
||||
Weblog title: A Weblog
|
||||
Weblog description: This is a weblog.
|
||||
Author: Your Name
|
||||
// Canonical domain: elsewhere.tld
|
||||
// Landing page: /
|
||||
Landing page template: Landing Page Template
|
||||
|
||||
|
||||
;; General config stuff
|
||||
;; --------------------
|
||||
|
||||
Separator: ·
|
||||
// Navigation: about, another-page, <a href="https://example.com">Example</a>, [Example](https://example.com)
|
||||
Files path: /files/
|
||||
Landing page post count: 1
|
||||
// Landing page post length: 45 words
|
||||
Post template: Post Template
|
||||
|
||||
|
||||
;; Pagination
|
||||
;; ----------
|
||||
|
||||
Pagination path: /page/
|
||||
Previous page template: <span class="previous-page"><a href="$previous_page">← Previous Page</a></span>
|
||||
Next page template: <span class="next-page"><a href="$next_page">Next Page →</a></span>
|
||||
|
||||
|
||||
;; Time stuff
|
||||
;; ----------
|
||||
|
||||
; You can use a timezone value from the "TZ database name" column on this
|
||||
; web page: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||
|
||||
Timezone: UTC
|
||||
Date format: F j, Y g:i A
|
||||
|
||||
|
||||
;; Feeds
|
||||
;; -----
|
||||
|
||||
Feed post count: 25
|
||||
// Feed post appendix: <p><em>Published with weblog.lol!</em></p>
|
||||
|
||||
|
||||
;; Posts
|
||||
;; -----
|
||||
|
||||
Post path format: /Y/m/
|
||||
Default post: <<[---
|
||||
Date: $date
|
||||
---
|
||||
|
||||
# Your new post
|
||||
|
||||
This is a new blog post. You can author it in _Markdown_, which is **awesome**.
|
||||
]>>
|
||||
|
||||
Titleless title length: 15 words
|
||||
// Truncation appendix: […]
|
||||
// Title format: <h1><a href="$permalink">$title</a></h1>
|
||||
|
||||
Multiple posts count: 10
|
||||
Multiple posts format: <<[
|
||||
[post:begin]
|
||||
<article>
|
||||
{body}
|
||||
<aside class="post-info">
|
||||
<i class="fa-solid fa-clock"></i> {date}
|
||||
</aside>
|
||||
<aside class="post-tags">
|
||||
{tags}
|
||||
</aside>
|
||||
</article>
|
||||
[post:end]
|
||||
]>>
|
||||
|
||||
;; Recent posts {recent-posts}
|
||||
;; ---------------------------
|
||||
|
||||
Recent posts count: 5
|
||||
Recent posts format: <<[
|
||||
<ul>
|
||||
[post:begin]<li><a href="$location">$title</a></li>[post:end]
|
||||
</ul>]>>
|
||||
|
||||
|
||||
;; Post list {post-list}
|
||||
;; ---------------------
|
||||
|
||||
Post list format: <<[
|
||||
<ul>
|
||||
[post:begin]<li><a href="$location">$title</a></li>[post:end]
|
||||
</ul>]>>
|
||||
|
||||
|
||||
;; Page list {page-list}
|
||||
;; ---------------------
|
||||
|
||||
Page list format: <<[
|
||||
<ul>
|
||||
[page:begin]<li><a href="$location">$title</a></li>[page:end]
|
||||
</ul>]>>
|
||||
|
||||
|
||||
;; Search
|
||||
;; ------
|
||||
|
||||
Search status: enabled
|
||||
Search template: Page Template
|
||||
Search results success message: There [is|are] $count [result|results] for your search:
|
||||
Search results failure message: There were no results found for your search.
|
||||
Search results format: <<[
|
||||
<h2>Results for “$search”</h2>
|
||||
<p>$search_results_message</p>
|
||||
[post:begin]<h3><a href="$location">$title</a></h3>
|
||||
<p>$date</p>
|
||||
<p>$snippet</p>[post:end]
|
||||
]>>
|
||||
|
||||
|
||||
;; Tags {tags}
|
||||
;; -----------
|
||||
|
||||
Tag path: /tag/
|
||||
// Tag page template: Tag Template
|
||||
Tags format: <<[
|
||||
[tag:begin]<a class="tag" href="$tag_location">$tag</a>[tag:end]
|
||||
]>>
|
||||
Tag page format: <<[
|
||||
<h2>Posts tagged with “$tag”</h2>
|
||||
<ul>
|
||||
[tag:begin]<li><a href="$location">$title</a></li>[tag:end]
|
||||
</ul>
|
||||
]>>
|
||||
|
||||
Tag listing path: /tags
|
||||
// Tag listing template: Tag Listing Template
|
||||
// Note: tag listing order can be "alphabetical", "ascending", or "descending" where alphabetical sorts by the tag name and ascending/descending sorts by the count of entries with that tag
|
||||
Tag listing order: alphabetical
|
||||
Tag listing format: <<[
|
||||
<h2>Tags</h2>
|
||||
<ul>
|
||||
[tag:begin]<li><a href="$location">$tag</a> ($count)</li>[tag:end]
|
||||
</ul>
|
||||
]>>
|
190
configuration/template.html
Normal file
190
configuration/template.html
Normal file
|
@ -0,0 +1,190 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{weblog-title}{separator}{post-title}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{feeds}
|
||||
<style>
|
||||
@import url('https://static.omg.lol/type/font-honey.css');
|
||||
@import url('https://static.omg.lol/type/font-lato-regular.css');
|
||||
@import url('https://static.omg.lol/type/font-lato-bold.css');
|
||||
@import url('https://static.omg.lol/type/font-lato-italic.css');
|
||||
@import url('https://static.omg.lol/type/font-md-io.css');
|
||||
@import url('https://static.omg.lol/type/fontawesome-free/css/all.css');
|
||||
|
||||
:root {
|
||||
--foreground: #212529;
|
||||
--background: #f8f9fa;
|
||||
--link: #0b7285;
|
||||
--accent: #868e96;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--foreground: #eee;
|
||||
--background: #222;
|
||||
--link: #99e9f2;
|
||||
--accent: #ced4da;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Lato', sans-serif;
|
||||
font-size: 120%;
|
||||
color: var(--foreground);
|
||||
background: var(--background);
|
||||
}
|
||||
|
||||
header nav ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
header nav li {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
header nav li a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: 'VC Honey Deck', serif;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
p, li {
|
||||
line-height: 160%;
|
||||
}
|
||||
|
||||
header, main, footer {
|
||||
max-width: 60em;
|
||||
margin: 2em auto;
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
header {
|
||||
margin-top: 4em;
|
||||
}
|
||||
|
||||
footer p {
|
||||
margin-top: 5em;
|
||||
font-size: 90%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a:link { color: var(--link); }
|
||||
a:visited { color: var(--link); }
|
||||
a:hover { color: var(--link); }
|
||||
a:active { color: var(--link); }
|
||||
|
||||
.post-info, .post-tags {
|
||||
font-size: 85%;
|
||||
color: var(--accent);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.post-info i:nth-child(2) {
|
||||
margin-left: .75em;
|
||||
}
|
||||
|
||||
.tag {
|
||||
background: var(--accent);
|
||||
color: var(--background) !important;
|
||||
padding: .3em .4em;
|
||||
margin: .8em 0 0 .4em;
|
||||
border-radius: .5em;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
height: 1px;
|
||||
background: #333;
|
||||
margin: 2em 0;
|
||||
}
|
||||
|
||||
code {
|
||||
padding: .2em .3em;
|
||||
border: 1px solid var(--accent);
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
pre, code {
|
||||
font-family: 'MD IO 0.4';
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
pre code {
|
||||
background: #000;
|
||||
color: #eee;
|
||||
display: inline-block;
|
||||
padding: 1em;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
td, th {
|
||||
padding: .75em;
|
||||
text-align: left;
|
||||
border: 1px solid var(--accent);
|
||||
}
|
||||
|
||||
.weblog-title a {
|
||||
text-decoration: none;
|
||||
color: var(--foreground);
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<h1 class="weblog-title"><a href="{base-path}">{weblog-title}</a></h1>
|
||||
{navigation}
|
||||
</header>
|
||||
|
||||
<main>
|
||||
|
||||
<article>
|
||||
{body}
|
||||
<aside class="post-info">
|
||||
<i class="fa-solid fa-clock"></i> {date}
|
||||
</aside>
|
||||
<aside class="post-tags">
|
||||
{tags}
|
||||
</aside>
|
||||
</article>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>Recent posts</h2>
|
||||
|
||||
{recent-posts}
|
||||
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>Made with <a href="https://weblog.lol">weblog.lol</a>.</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
181
weblog/2024-04-17_10_01_08_page-template.md
Normal file
181
weblog/2024-04-17_10_01_08_page-template.md
Normal file
|
@ -0,0 +1,181 @@
|
|||
Type: Template
|
||||
Title: Page Template
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{weblog-title}{separator}{post-title}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{feeds}
|
||||
<style>
|
||||
@import url('https://static.omg.lol/type/font-honey.css');
|
||||
@import url('https://static.omg.lol/type/font-lato-regular.css');
|
||||
@import url('https://static.omg.lol/type/font-lato-bold.css');
|
||||
@import url('https://static.omg.lol/type/font-lato-italic.css');
|
||||
@import url('https://static.omg.lol/type/font-md-io.css');
|
||||
@import url('https://static.omg.lol/type/fontawesome-free/css/all.css');
|
||||
|
||||
:root {
|
||||
--foreground: #212529;
|
||||
--background: #f8f9fa;
|
||||
--link: #0b7285;
|
||||
--accent: #868e96;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--foreground: #eee;
|
||||
--background: #222;
|
||||
--link: #99e9f2;
|
||||
--accent: #ced4da;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Lato', sans-serif;
|
||||
font-size: 120%;
|
||||
color: var(--foreground);
|
||||
background: var(--background);
|
||||
}
|
||||
|
||||
header nav ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
header nav li {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
header nav li a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: 'VC Honey Deck', serif;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
p, li {
|
||||
line-height: 160%;
|
||||
}
|
||||
|
||||
header, main, footer {
|
||||
max-width: 60em;
|
||||
margin: 2em auto;
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
header {
|
||||
margin-top: 4em;
|
||||
}
|
||||
|
||||
footer p {
|
||||
margin-top: 5em;
|
||||
font-size: 90%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a:link { color: var(--link); }
|
||||
a:visited { color: var(--link); }
|
||||
a:hover { color: var(--link); }
|
||||
a:active { color: var(--link); }
|
||||
|
||||
.post-info, .post-tags {
|
||||
font-size: 85%;
|
||||
color: var(--accent);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.post-info i:nth-child(2) {
|
||||
margin-left: .75em;
|
||||
}
|
||||
|
||||
.tag {
|
||||
background: var(--accent);
|
||||
color: var(--background) !important;
|
||||
padding: .3em .4em;
|
||||
margin: .8em 0 0 .4em;
|
||||
border-radius: .5em;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
height: 1px;
|
||||
background: #333;
|
||||
margin: 2em 0;
|
||||
}
|
||||
|
||||
code {
|
||||
padding: .2em .3em;
|
||||
border: 1px solid var(--accent);
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
pre, code {
|
||||
font-family: 'MD IO 0.4';
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
pre code {
|
||||
background: #000;
|
||||
color: #eee;
|
||||
display: inline-block;
|
||||
padding: 1em;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
td, th {
|
||||
padding: .75em;
|
||||
text-align: left;
|
||||
border: 1px solid var(--accent);
|
||||
}
|
||||
|
||||
.weblog-title a {
|
||||
text-decoration: none;
|
||||
color: var(--foreground);
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<h1 class="weblog-title"><a href="{base-path}">{weblog-title}</a></h1>
|
||||
{navigation}
|
||||
</header>
|
||||
|
||||
<main>
|
||||
|
||||
{body}
|
||||
|
||||
<hr>
|
||||
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>Made with <a href="https://weblog.lol">weblog.lol</a>.</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
7
weblog/2024-05-06_02_24_your-new-post.md
Normal file
7
weblog/2024-05-06_02_24_your-new-post.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
Date: 2024-05-06 02:24
|
||||
---
|
||||
|
||||
# Your new post
|
||||
|
||||
This is a new blog post. You can author it in _Markdown_, which is **awesome**.
|
Loading…
Reference in a new issue