-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ae3d5cd
Showing
30 changed files
with
1,567 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Zola PaperMod | ||
|
||
A work in progress port of the [hugo-PaperMod](https://github.com/adityatelange/hugo-PaperMod) theme by [@adityatelange](https://github.com/adityatelange) to [Zola](https://www.getzola.org/) | ||
|
||
Demo @ https://cydave.github.io/zola-theme-papermod-demo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# The URL the site will be built for | ||
author = "cydave" | ||
base_url = "https://example.com" | ||
compile_sass = true | ||
build_search_index = true | ||
generate_feed = true | ||
minify_html = true | ||
|
||
|
||
taxonomies = [ | ||
{ name = "tags", feed = true } | ||
] | ||
|
||
[markdown] | ||
# Whether to do syntax highlighting | ||
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola | ||
highlight_code = true | ||
|
||
[extra] | ||
custom_url = "$BASE_URL/atom.xml" | ||
|
||
[extra.papermod] | ||
custom_url = "$BASE_URL/atom.xml" | ||
title = "PaperMod" | ||
default_theme = "auto" | ||
theme = "light" | ||
language_direction = "auto" | ||
keywords = ["keyword1", "keyword2", "keyword3"] | ||
disable_theme_toggle = false | ||
show_code_copy_buttons = true | ||
show_reading_time = true | ||
show_word_count = false | ||
show_post_nav_links = true | ||
show_post_meta = true | ||
default_toc_open = true | ||
edit_post_url = "https://github.com/cydave/zola-theme-papermod/tree/master" | ||
copyright = "" | ||
date_format = "%Y-%m-%d" | ||
|
||
|
||
home_title = "PaperMod" | ||
home_content = "Welcome to a demo of the PaperMod theme!<br><b>PaperMod</b> is a simple but fast and responsive theme with a useful feature-set that enhances UX.<br>Do give a 🌟 on Github !<br>PaperMod is based on the hugo-PaperMod theme." | ||
social_icons = [ | ||
{ url = "https://github.com/cydave", title = "GitHub", icon = "github" }, | ||
{ url = "https://infosec.exchange/@cydave", title = "Mastodon", icon = "mastodon" }, | ||
{ url = "$BASE_URL/atom.xml", title = "RSS", icon = "rss" }, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
+++ | ||
sort_by = "date" | ||
paginate_by = 5 | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
+++ | ||
title = "Example post 1" | ||
date = "2023-04-07" | ||
|
||
[taxonomies] | ||
tags = ["showcase"] | ||
+++ | ||
|
||
|
||
Consectetur eos similique exercitationem facere magni Sit ullam molestias. | ||
<!-- more --> | ||
|
||
# Lorem | ||
|
||
Consectetur eos similique exercitationem facere magni Sit ullam molestias | ||
excepturi nemo deleniti Dicta quasi temporibus sint doloremque eum omnis Non | ||
doloremque tenetur exercitationem iure culpa dolore minus Veritatis suscipit | ||
qui? | ||
|
||
|
||
## Ipsum | ||
|
||
Ipsum nulla iusto nostrum neque deserunt Saepe ipsa soluta asperiores excepturi | ||
maiores repellendus nesciunt Explicabo illo veritatis sequi accusantium quis | ||
rerum? Soluta nisi voluptatibus vitae amet sapiente? Cupiditate blanditiis | ||
laudantium. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
+++ | ||
sort_by = "date" | ||
paginate_by = 5 | ||
insert_anchor_links = "right" | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
+++ | ||
title = "Markdown Examples" | ||
date = 2023-02-04T15:00:00Z | ||
|
||
[taxonomies] | ||
tags = ["zola", "theme", "showcase"] | ||
+++ | ||
|
||
|
||
This article offers a sample of basic Markdown syntax that can be used in ~~Hugo~~ Zola content files, also it shows whether basic HTML elements are decorated with CSS in a ~~Hugo~~ Zola theme. | ||
|
||
<!--more--> | ||
|
||
# Headings | ||
|
||
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` 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. | ||
> | ||
> — <cite>Rob Pike[^1]</cite> | ||
[^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~~ Zola supports them out-of-the-box. | ||
|
||
| Name | Age | | ||
| ----- | --- | | ||
| Bob | 27 | | ||
| Alice | 23 | | ||
|
||
### Inline Markdown within tables | ||
|
||
| Italics | Bold | Code | | ||
| --------- | -------- | ------ | | ||
| _italics_ | **bold** | `code` | | ||
|
||
# Code Blocks | ||
|
||
### Inline Code | ||
|
||
`This is Inline Code` | ||
|
||
### Only `pre` | ||
|
||
<pre> | ||
This is pre text | ||
</pre> | ||
|
||
### Code block with backticks | ||
|
||
``` | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Example HTML5 Document</title> | ||
</head> | ||
<body> | ||
<p>Test</p> | ||
</body> | ||
</html> | ||
``` | ||
|
||
### Code block with backticks and language specified | ||
|
||
```html,linenos | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Example HTML5 Document</title> | ||
<meta name="description" content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."> | ||
</head> | ||
<body> | ||
<p>Test</p> | ||
</body> | ||
</html> | ||
``` | ||
|
||
### Code block indented with four spaces | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Example HTML5 Document</title> | ||
</head> | ||
<body> | ||
<p>Test</p> | ||
</body> | ||
</html> | ||
|
||
### Code block with Hugo's internal highlight shortcode | ||
|
||
{{< highlight html >}} | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Example HTML5 Document</title> | ||
</head> | ||
<body> | ||
<p>Test</p> | ||
</body> | ||
</html> | ||
{{< /highlight >}} | ||
|
||
### Gist | ||
|
||
{{< gist spf13 7896402 >}} | ||
|
||
## 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 | ||
|
||
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format. | ||
|
||
H<sub>2</sub>O | ||
|
||
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup> | ||
|
||
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session. | ||
|
||
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
+++ | ||
title = "Installation | Update" | ||
date = 2019-02-04T15:00:00Z | ||
|
||
[taxonomies] | ||
tags = ["PaperMod"] | ||
+++ | ||
|
||
# Intro | ||
|
||
|
||
# Guide | ||
|
||
|
||
## Method 1 | ||
|
||
## Method 2 | ||
|
||
## Method 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
+++ | ||
title = "Tags" | ||
page_template = "taxonomy_list.html" | ||
paginate_by = 10 | ||
+++ | ||
|
||
|
||
123 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% extends "index.html" %} | ||
{% block main %} | ||
<div class="not-found">404</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a class="anchor" aria-hidden="true" href="#{{ id }}" hidden="">#</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% import "macros/social_icon.svg.html" as macro_social -%} | ||
<!DOCTYPE html> | ||
<html lang="{{ lang }}" dir="{{ config.extra.papermod.language_direction }}"> | ||
<head> | ||
{% include "partials/head.html" %} | ||
</head> | ||
<body class="{% if section or term or taxonomy %}list {% endif %}{% if config.extra.papermod.theme == 'dark' %} dark{% endif %}" id="top"> | ||
{% include "partials/header.html" %} | ||
<main class="main"> | ||
{% block main %} | ||
{% include "partials/home_info.html" %} | ||
{% include "partials/home_posts.html" %} | ||
{% endblock %} | ||
</main> | ||
{% include "partials/footer.html" %} | ||
</body> | ||
</html> |
Oops, something went wrong.