diff --git a/changelog.md b/changelog.md index 8a5f9d8..2ba1e46 100644 --- a/changelog.md +++ b/changelog.md @@ -1,41 +1,5 @@ # Changelog -## 0.3.2 - 2021-03-12 - -Minor fixes to the Gemini side of things and dependencies. - -``` -earnest ma (5): - format: Fix whitespace - fix: Gemini lastmod and published date - fix: Gemini post post links spacing - chore(deps): Bump DOMPurify to version 2.2.7 - chore: Fix changelog -``` - -## 0.3.1 - 2021-02-11 - -Just minor fixes to tags and links. - -``` -earnest ma (3): - chore: Use non-WWW links - fix! Broken link - fix: Leftover -``` - -## 0.3.0 - 2021-02-10 - -In this release, basic support for output to Gemini was added, as well as Hugo theme metadata and an exampleSite. Improvements are always welcome. - -``` -earnest ma (4): - chore: Bump version - feat: Add support for gemini - docs: Add exampleSite and theme metadata - chore: Update readme.md -``` - ## 0.2.0 - 2021-02-05 A development release. Mainly adds support for "comments" through the Mastodon API by posting a toot. Improvements to the footer. diff --git a/exampleSite/config.toml b/exampleSite/config.toml deleted file mode 100644 index fa1ba9a..0000000 --- a/exampleSite/config.toml +++ /dev/null @@ -1,79 +0,0 @@ -# example config.toml file -# also used for the theme's documentation site -# copy this to yoursite-dir/config.toml and modify as needed - -# Title of your site -title = "Dracublog" - -# baseURL -baseURL = "example.org" - -# Language code, defaults to en-US if not set -languageCode = "en-ca" - -# theme - uncomment this (you can also have multiple values using ["", ""]) -theme = "dracublog" - -# Copyright statement, used in RSS feed and footer -copyright = "Copyright © 2021, earnest ma" - -# Whether to enable GitInfo or not -enableGitInfo = false - -# Taxonomies -[taxonomies] - tag = "tags" - author = "authors" - -[params] - # path to favicon, should be /favicon.ico (place in static/) - favicon = "/favicon.ico" - # whether to show openring (recent posts from blogs I read...) or not - openring = false # true - # URL to git repository (for GitInfo and related) - # GitRepo = "https://git.earne.link/earnestma/dracublog" - -# Nice permalinks for blog posts -[permalinks] - blog = "/:year/:month/:day-:slug" - -# Enable "unsafe" for raw HTML in markdown -[markup.goldmark.renderer] - unsafe = true - -# Menu - header items show after blog, if it exists -[[languages.en.menu.main]] - identifier = "about" - name = "About" - url = "/about" - weight = 100 - -[[languages.en.menu.main]] - identifier = "work" - name = "Work" - url = "/work" - weight = 200 - -# Footer links -#[[languages.en.menu.footer]] -# identifier = "Home" -# name = "Home" -# url = "/" -# weight = 100 - -#[mediaTypes] -#[mediaTypes."text/gemini"] -#suffixes = ["gmi"] - -#[outputFormats] -#[outputFormats.Gemini] -#name = "GEMTEXT" -#isPlainText = true -#isHTML = false -#mediaType = "text/gemini" -#protocol = "gemini://" -#permalinkable = true -#path = "gemini/" - -#[outputs] -#section = ["HTML", "RSS"] diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md deleted file mode 100644 index 7d77142..0000000 --- a/exampleSite/content/_index.md +++ /dev/null @@ -1,6 +0,0 @@ -# Dracublog demo - -This is an **example** of a site using this theme, feel free to look around. - -- [Source](https://git.earne.link/earnestma/dracublog) -- [Author's website](https://www.earnestma.xyz) (uses this theme) diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md deleted file mode 100644 index b31bf1d..0000000 --- a/exampleSite/content/about.md +++ /dev/null @@ -1,25 +0,0 @@ -+++ -title = "About" -description = "Hugo, the world's fastest framework for building websites" -date = "2019-02-28" -aliases = ["about-us", "about-hugo", "contact"] -author = "Hugo Authors" -+++ - -Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. - -Hugo makes use of a variety of open source projects including: - -* https://github.com/yuin/goldmark -* https://github.com/alecthomas/chroma -* https://github.com/muesli/smartcrop -* https://github.com/spf13/cobra -* https://github.com/spf13/viper - -Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. - -Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. - -Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. - -Learn more and contribute on [GitHub](https://github.com/gohugoio). diff --git a/exampleSite/content/blog/_index.md b/exampleSite/content/blog/_index.md deleted file mode 100644 index 6c432cb..0000000 --- a/exampleSite/content/blog/_index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: "Posts" ---- diff --git a/exampleSite/content/blog/emoji-support.md b/exampleSite/content/blog/emoji-support.md deleted file mode 100644 index 236aed7..0000000 --- a/exampleSite/content/blog/emoji-support.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -authors: ["Hugo Authors"] -title: "Emoji Support" -date: 2019-03-05 -description: "Guide to emoji usage in Hugo" -tags: ["emoji"] ---- - -Emoji can be enabled in a Hugo project in a number of ways. - -The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). - -To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. - -

🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:

-
- -The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. - -*** - -**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. - -{{< highlight html >}} -.emoji { - font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; -} -{{< /highlight >}} - -{{< css.inline >}} - -{{< /css.inline >}} diff --git a/exampleSite/content/blog/markdown-syntax.md b/exampleSite/content/blog/markdown-syntax.md deleted file mode 100644 index 2d32c72..0000000 --- a/exampleSite/content/blog/markdown-syntax.md +++ /dev/null @@ -1,139 +0,0 @@ ---- -authors: ["Hugo Authors", "Someone Else"] -title: "Markdown Syntax Guide" -date: 2019-03-11 -description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements." -tags: ["markdown", "css", "html"] -aliases: ["migrate-from-jekyl"] ---- - -This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. - - -## Headings - -The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. - -# H1 -## H2 -### H3 -#### H4 -##### H5 -###### H6 - -## Paragraph - -Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. - -Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. - -## Blockquotes - -The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. - -#### Blockquote without attribution - -> Tiam, ad mint andaepu dandae nostion secatur sequo quae. -> **Note** that you can use *Markdown syntax* within a blockquote. - -#### Blockquote with attribution - -> Don't communicate by sharing memory, share memory by communicating.
-> — Rob Pike[^1] - -[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. - -## Tables - -Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. - - Name | Age ---------|------ - Bob | 27 - Alice | 23 - -#### Inline Markdown within tables - -| Italics | Bold | Code | -| -------- | -------- | ------ | -| *italics* | **bold** | `code` | - -## Code Blocks - -#### Code block with backticks - -```html - - - - - Example HTML5 Document - - -

Test

- - -``` - -#### Code block indented with four spaces - - - - - - Example HTML5 Document - - -

Test

- - - -#### Code block with Hugo's internal highlight shortcode -{{< highlight html >}} - - - - - Example HTML5 Document - - -

Test

- - -{{< /highlight >}} - -## List Types - -#### Ordered List - -1. First item -2. Second item -3. Third item - -#### Unordered List - -* List item -* Another item -* And another item - -#### Nested list - -* Fruit - * Apple - * Orange - * Banana -* Dairy - * Milk - * Cheese - -## Other Elements — abbr, sub, sup, kbd, mark - -GIF is a bitmap image format. - -H2O - -Xn + Yn = Zn - -Press CTRL+ALT+Delete to end the session. - -Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. diff --git a/exampleSite/content/blog/placeholder-text.md b/exampleSite/content/blog/placeholder-text.md deleted file mode 100644 index 207059b..0000000 --- a/exampleSite/content/blog/placeholder-text.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -authors: ["Example Author", "Hugo Authors"] -title: "Placeholder Text" -date: "2019-03-09" -description: "Lorem Ipsum Dolor Si Amet" -tags: ["markdown", "text"] ---- - -Lorem est tota propiore conpellat pectoribus de pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. - -1. Exierant elisi ambit vivere dedere -2. Duce pollice -3. Eris modo -4. Spargitque ferrea quos palude - -Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. - -1. Comas hunc haec pietate fetum procerum dixit -2. Post torum vates letum Tiresia -3. Flumen querellas -4. Arcanaque montibus omnes -5. Quidem et - -# Vagus elidunt - - - -[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) - -## Mane refeci capiebant unda mulcebat - -Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. - -Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et. - -Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**. - -{{< css.inline >}} - -{{< /css.inline >}} diff --git a/exampleSite/content/blog/rich-content.md b/exampleSite/content/blog/rich-content.md deleted file mode 100644 index 7386ac4..0000000 --- a/exampleSite/content/blog/rich-content.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -authors: ["Hugo Authors"] -title: "Rich Content" -date: "2019-03-10" -description: "A brief description of Hugo Shortcodes" -tags: ["shortcodes", "privacy"] ---- - -Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. - ---- - -## YouTube Privacy Enhanced Shortcode - -{{< youtube ZJthWmvUzzc >}} - -
- ---- - -## Twitter Simple Shortcode - -{{< twitter_simple 1085870671291310081 >}} - -
- ---- - -## Vimeo Simple Shortcode - -{{< vimeo_simple 48912912 >}} diff --git a/exampleSite/content/work.md b/exampleSite/content/work.md deleted file mode 100644 index f99bc99..0000000 --- a/exampleSite/content/work.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: 'We Help Business Grow' -button: 'Our Work' -weight: 1 ---- - -Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit. diff --git a/exampleSite/resources/_gen/assets/css/example.org/main.css_48b060fe05b0a273d182ef83c0605941.content b/exampleSite/resources/_gen/assets/css/example.org/main.css_48b060fe05b0a273d182ef83c0605941.content deleted file mode 100644 index cb45292..0000000 --- a/exampleSite/resources/_gen/assets/css/example.org/main.css_48b060fe05b0a273d182ef83c0605941.content +++ /dev/null @@ -1 +0,0 @@ -:root{--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif;--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;--base-fontsize: 1.15rem;--header-scale: 1.25;--line-height: 1.618;--bg: #282a36;--accent-bg: #282a36;--text: #f8f8f2;--text-light: #6272a4;--border: #44475a;--accent: #bd93f9;--accent-light: #bd93f9;--code: #ff79c6;--preformatted: #ccc;--marked: #f1fa8c}img,video{opacity:.6}*{font-family:var(--sans-font)}html{font-size:16px}body{color:var(--text);background:var(--bg);font-size:var(--base-fontsize);line-height:var(--line-height);margin:0}main{margin:1rem auto 0;max-width:45rem;padding:0 .5rem}header{background:var(--accent-bg);border-bottom:1px solid var(--border);padding:1.5rem 15rem;margin-bottom:3rem}@media only screen and (max-width:1200px){header{padding:1rem}nav{text-align:center}}header h1,header p{margin:0}header h2{text-align:center;line-height:1.1}nav{font-size:1rem;line-height:2;padding:1rem 0}nav a{margin:1rem 1rem 0 0;border:1px solid var(--border);border-radius:5px;color:var(--text)!important;display:inline-block;padding:.1rem 1rem;text-decoration:none;transition:.4s}nav a:hover{color:var(--accent)!important;border-color:var(--accent)}nav a.current:hover{text-decoration:none}footer{margin-top:4rem;padding:2rem 1rem 1.5rem;color:var(--text-light);font-size:.9rem;text-align:center;border-top:1px solid var(--border)}h1{font-size:calc(var(--base-fontsize) * var(--header-scale) * var(--header-scale) * var(--header-scale) * var(--header-scale));margin-top:calc(var(--line-height) * 1.5rem)}h2{font-size:calc(var(--base-fontsize) * var(--header-scale) * var(--header-scale) * var(--header-scale));margin-top:calc(var(--line-height) * 1.5rem)}h3{font-size:calc(var(--base-fontsize) * var(--header-scale) * var(--header-scale));margin-top:calc(var(--line-height) * 1.5rem)}h4{font-size:calc(var(--base-fontsize) * var(--header-scale));margin-top:calc(var(--line-height) * 1.5rem)}h5{font-size:var(--base-fontsize);margin-top:calc(var(--line-height) * 1.5rem)}h6{font-size:calc(var(--base-fontsize)/var(--header-scale));margin-top:calc(var(--line-height) * 1.5rem)}a,a:visited{color:var(--accent)}a:hover{text-decoration:none}a button,button,input[type=submit],input[type=reset],input[type=button]{border:none;border-radius:5px;background:var(--accent);font-size:1rem;color:var(--bg);padding:.7rem .9rem;margin:.5rem 0;transition:.4s}a button[disabled],button[disabled],input[type=submit][disabled],input[type=reset][disabled],input[type=button][disabled]{cursor:default;opacity:.5;cursor:not-allowed}abbr{cursor:help}button:focus,button:enabled:hover,input[type=submit]:focus,input[type=submit]:enabled:hover,input[type=reset]:focus,input[type=reset]:enabled:hover,input[type=button]:focus,input[type=button]:enabled:hover{opacity:.8}details{padding:.6rem 1rem;background:var(--accent-bg);border:1px solid var(--border);border-radius:5px;margin-bottom:1rem}summary{cursor:pointer;font-weight:700}details[open]{padding-bottom:.75rem}details[open] summary{margin-bottom:.5rem}details[open]>*:last-child{margin-bottom:0}table{border-collapse:collapse;width:100%}td,th{border:1px solid var(--border);text-align:left;padding:.5rem}th{background:var(--accent-bg);font-weight:700}tr:nth-child(even){background:var(--accent-bg)}table caption{font-weight:700;margin-bottom:.5rem}ol,ul{padding-left:3rem}textarea,select,input{font-size:inherit;font-family:inherit;padding:.5rem;margin-bottom:.5rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:5px;box-shadow:none;box-sizing:border-box;width:60%}textarea{width:80%}@media only screen and (max-width:720px){textarea,select,input{width:100%}}input[type=checkbox],input[type=radio]{width:auto}input[type=file]{border:0}fieldset{border:0;padding:0;margin:0}hr{color:var(--border);border-top:1px;margin:1rem auto}mark{padding:2px 5px;border-radius:4px;background:var(--marked)}main img,main video{max-width:100%;border-radius:5px}figure{margin:0}figcaption{font-size:.9rem;color:var(--text-light);text-align:center;margin-bottom:1rem}blockquote{margin:2rem 0 2rem 2rem;padding:.4rem .8rem;border-left:.35rem solid var(--accent);opacity:.8;font-style:italic}cite{font-size:.9rem;color:var(--text-light);font-style:normal}code,pre,kbd,samp{font-size:1.075rem;font-family:var(--mono-font);color:var(--code)}kbd{color:var(--preformatted);border:1px solid var(--preformatted);border-bottom:3px solid var(--preformatted);border-radius:5px;padding:.1rem}pre{padding:1rem 1.4rem;max-width:100%;overflow:auto;color:var(--preformatted);background:var(--accent-bg);border:1px solid var(--border);border-radius:5px}pre code{color:var(--preformatted);background:0 0;margin:0;padding:0}.webring{margin-top:2rem}.wr-articles{display:flex}@media(max-width:640px){.wr-articles{flex-direction:column}}.wr-article{flex:1 1 0;display:flex;flex-direction:column;background:#323542;padding:.5rem;margin:0 .5rem}@media(max-width:640px){.wr-article{margin:.5rem 0}}.wr-article:first-child{margin-left:0}.wr-article:last-child{margin-right:0}.wr-summary{font-size:.8rem;flex:1 1 0;color:#ebebeb}.wr-attribution{float:right;font-size:.8rem;color:#c0bfbf;line-height:3}.wr-date{color:#c0bfbf}.wr-source{color:#c0bfbf}.mastodon-comment{background-color:var(--body-background);border-radius:var(--card-border-radius);padding:var(--card-padding);margin-bottom:1rem;display:flex}.mastodon-comment .content{flex-grow:2}.mastodon-comment .avatar img{margin-right:1rem;min-width:60px}.mastodon-comment .author{padding-top:0;display:flex}.mastodon-comment .author .date{margin-left:auto}.mastodon-comment .disabled{color:var(--accent-color)}.mastodon-comment-content p:first-child{margin-top:0} \ No newline at end of file diff --git a/exampleSite/resources/_gen/assets/css/example.org/main.css_48b060fe05b0a273d182ef83c0605941.json b/exampleSite/resources/_gen/assets/css/example.org/main.css_48b060fe05b0a273d182ef83c0605941.json deleted file mode 100644 index ecf9eea..0000000 --- a/exampleSite/resources/_gen/assets/css/example.org/main.css_48b060fe05b0a273d182ef83c0605941.json +++ /dev/null @@ -1 +0,0 @@ -{"Target":"main.min.2700adb3e3573b5490a0c66bf3eca5392a7adccce620f5752baf8f8a11e1188d.css","MediaType":"text/css","Data":{"Integrity":"sha256-JwCts+NXO1SQoMZr8+ylOSp63MzmIPV1K6+PihHhGI0="}} \ No newline at end of file diff --git a/exampleSite/resources/_gen/assets/css/main.css_48b060fe05b0a273d182ef83c0605941.content b/exampleSite/resources/_gen/assets/css/main.css_48b060fe05b0a273d182ef83c0605941.content deleted file mode 100644 index cb45292..0000000 --- a/exampleSite/resources/_gen/assets/css/main.css_48b060fe05b0a273d182ef83c0605941.content +++ /dev/null @@ -1 +0,0 @@ -:root{--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif;--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;--base-fontsize: 1.15rem;--header-scale: 1.25;--line-height: 1.618;--bg: #282a36;--accent-bg: #282a36;--text: #f8f8f2;--text-light: #6272a4;--border: #44475a;--accent: #bd93f9;--accent-light: #bd93f9;--code: #ff79c6;--preformatted: #ccc;--marked: #f1fa8c}img,video{opacity:.6}*{font-family:var(--sans-font)}html{font-size:16px}body{color:var(--text);background:var(--bg);font-size:var(--base-fontsize);line-height:var(--line-height);margin:0}main{margin:1rem auto 0;max-width:45rem;padding:0 .5rem}header{background:var(--accent-bg);border-bottom:1px solid var(--border);padding:1.5rem 15rem;margin-bottom:3rem}@media only screen and (max-width:1200px){header{padding:1rem}nav{text-align:center}}header h1,header p{margin:0}header h2{text-align:center;line-height:1.1}nav{font-size:1rem;line-height:2;padding:1rem 0}nav a{margin:1rem 1rem 0 0;border:1px solid var(--border);border-radius:5px;color:var(--text)!important;display:inline-block;padding:.1rem 1rem;text-decoration:none;transition:.4s}nav a:hover{color:var(--accent)!important;border-color:var(--accent)}nav a.current:hover{text-decoration:none}footer{margin-top:4rem;padding:2rem 1rem 1.5rem;color:var(--text-light);font-size:.9rem;text-align:center;border-top:1px solid var(--border)}h1{font-size:calc(var(--base-fontsize) * var(--header-scale) * var(--header-scale) * var(--header-scale) * var(--header-scale));margin-top:calc(var(--line-height) * 1.5rem)}h2{font-size:calc(var(--base-fontsize) * var(--header-scale) * var(--header-scale) * var(--header-scale));margin-top:calc(var(--line-height) * 1.5rem)}h3{font-size:calc(var(--base-fontsize) * var(--header-scale) * var(--header-scale));margin-top:calc(var(--line-height) * 1.5rem)}h4{font-size:calc(var(--base-fontsize) * var(--header-scale));margin-top:calc(var(--line-height) * 1.5rem)}h5{font-size:var(--base-fontsize);margin-top:calc(var(--line-height) * 1.5rem)}h6{font-size:calc(var(--base-fontsize)/var(--header-scale));margin-top:calc(var(--line-height) * 1.5rem)}a,a:visited{color:var(--accent)}a:hover{text-decoration:none}a button,button,input[type=submit],input[type=reset],input[type=button]{border:none;border-radius:5px;background:var(--accent);font-size:1rem;color:var(--bg);padding:.7rem .9rem;margin:.5rem 0;transition:.4s}a button[disabled],button[disabled],input[type=submit][disabled],input[type=reset][disabled],input[type=button][disabled]{cursor:default;opacity:.5;cursor:not-allowed}abbr{cursor:help}button:focus,button:enabled:hover,input[type=submit]:focus,input[type=submit]:enabled:hover,input[type=reset]:focus,input[type=reset]:enabled:hover,input[type=button]:focus,input[type=button]:enabled:hover{opacity:.8}details{padding:.6rem 1rem;background:var(--accent-bg);border:1px solid var(--border);border-radius:5px;margin-bottom:1rem}summary{cursor:pointer;font-weight:700}details[open]{padding-bottom:.75rem}details[open] summary{margin-bottom:.5rem}details[open]>*:last-child{margin-bottom:0}table{border-collapse:collapse;width:100%}td,th{border:1px solid var(--border);text-align:left;padding:.5rem}th{background:var(--accent-bg);font-weight:700}tr:nth-child(even){background:var(--accent-bg)}table caption{font-weight:700;margin-bottom:.5rem}ol,ul{padding-left:3rem}textarea,select,input{font-size:inherit;font-family:inherit;padding:.5rem;margin-bottom:.5rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:5px;box-shadow:none;box-sizing:border-box;width:60%}textarea{width:80%}@media only screen and (max-width:720px){textarea,select,input{width:100%}}input[type=checkbox],input[type=radio]{width:auto}input[type=file]{border:0}fieldset{border:0;padding:0;margin:0}hr{color:var(--border);border-top:1px;margin:1rem auto}mark{padding:2px 5px;border-radius:4px;background:var(--marked)}main img,main video{max-width:100%;border-radius:5px}figure{margin:0}figcaption{font-size:.9rem;color:var(--text-light);text-align:center;margin-bottom:1rem}blockquote{margin:2rem 0 2rem 2rem;padding:.4rem .8rem;border-left:.35rem solid var(--accent);opacity:.8;font-style:italic}cite{font-size:.9rem;color:var(--text-light);font-style:normal}code,pre,kbd,samp{font-size:1.075rem;font-family:var(--mono-font);color:var(--code)}kbd{color:var(--preformatted);border:1px solid var(--preformatted);border-bottom:3px solid var(--preformatted);border-radius:5px;padding:.1rem}pre{padding:1rem 1.4rem;max-width:100%;overflow:auto;color:var(--preformatted);background:var(--accent-bg);border:1px solid var(--border);border-radius:5px}pre code{color:var(--preformatted);background:0 0;margin:0;padding:0}.webring{margin-top:2rem}.wr-articles{display:flex}@media(max-width:640px){.wr-articles{flex-direction:column}}.wr-article{flex:1 1 0;display:flex;flex-direction:column;background:#323542;padding:.5rem;margin:0 .5rem}@media(max-width:640px){.wr-article{margin:.5rem 0}}.wr-article:first-child{margin-left:0}.wr-article:last-child{margin-right:0}.wr-summary{font-size:.8rem;flex:1 1 0;color:#ebebeb}.wr-attribution{float:right;font-size:.8rem;color:#c0bfbf;line-height:3}.wr-date{color:#c0bfbf}.wr-source{color:#c0bfbf}.mastodon-comment{background-color:var(--body-background);border-radius:var(--card-border-radius);padding:var(--card-padding);margin-bottom:1rem;display:flex}.mastodon-comment .content{flex-grow:2}.mastodon-comment .avatar img{margin-right:1rem;min-width:60px}.mastodon-comment .author{padding-top:0;display:flex}.mastodon-comment .author .date{margin-left:auto}.mastodon-comment .disabled{color:var(--accent-color)}.mastodon-comment-content p:first-child{margin-top:0} \ No newline at end of file diff --git a/exampleSite/resources/_gen/assets/css/main.css_48b060fe05b0a273d182ef83c0605941.json b/exampleSite/resources/_gen/assets/css/main.css_48b060fe05b0a273d182ef83c0605941.json deleted file mode 100644 index ecf9eea..0000000 --- a/exampleSite/resources/_gen/assets/css/main.css_48b060fe05b0a273d182ef83c0605941.json +++ /dev/null @@ -1 +0,0 @@ -{"Target":"main.min.2700adb3e3573b5490a0c66bf3eca5392a7adccce620f5752baf8f8a11e1188d.css","MediaType":"text/css","Data":{"Integrity":"sha256-JwCts+NXO1SQoMZr8+ylOSp63MzmIPV1K6+PihHhGI0="}} \ No newline at end of file diff --git a/images/screenshot.png b/images/screenshot.png deleted file mode 100644 index e4f20c2..0000000 Binary files a/images/screenshot.png and /dev/null differ diff --git a/images/tn.png b/images/tn.png deleted file mode 100644 index a43bd1f..0000000 Binary files a/images/tn.png and /dev/null differ diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0630562..4862711 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -27,7 +27,7 @@ {{- else if .OutputFormats.Get "gemtext" }} {{ with .OutputFormats.Get "gemtext" }} {{ end }}{{ .Title }} - (what is gemini://?) + (what is gemini://?) {{ end }} {{ end }} diff --git a/layouts/blog/single.gmi b/layouts/blog/single.gmi index d79b5bf..ae72845 100644 --- a/layouts/blog/single.gmi +++ b/layouts/blog/single.gmi @@ -1,10 +1,11 @@ # {{ $.Title | safeHTML }} -{{ if ne .Lastmod .Date -}} -Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod }}. -{{- else -}} +{{ if .Lastmod }}{{ if not (eq .Lastmod .Date )}} +Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod.Local }}. +{{ end }} +{{ else }} Published on {{ .Date.Format "Jan 02, 2006" }}. -{{- end }} +{{ end }} {{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }} @@ -21,9 +22,9 @@ Published on {{ .Date.Format "Jan 02, 2006" }}. ``` => / Return to the homepage -{{- with .OutputFormats.Get "html" }} +{{ with .OutputFormats.Get "html" }} => {{ .Permalink }} See “{{ $.Title | safeHTML }}” on the WWW -{{- end }} +{{ end }} {{ with .Params.comments }}=> https://{{ .host }}/@{{ .user }}/{{ .id }} You may comment here{{ end }} {{ .Site.Copyright }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 7c08125..542ca44 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -4,6 +4,7 @@