Skip to content

Commit

Permalink
feat(shokunin): v0.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Sep 7, 2023
1 parent 1ee0f1d commit 9f6f479
Show file tree
Hide file tree
Showing 17 changed files with 113 additions and 46 deletions.
13 changes: 1 addition & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name = "ssg"
readme = "README.md"
repository = "https://github.com/sebastienrousseau/shokunin"
rust-version = "1.71.1"
version = "0.0.16"
version = "0.0.17"
include = [
"/CONTRIBUTING.md",
"/LICENSE-APACHE",
Expand Down Expand Up @@ -49,7 +49,7 @@ comrak = "0.18.0"
dtt = "0.0.4"
log = {version="0.4.20", features = ["std"] }
minify-html = "0.11.1"
openssl = { version = "0.10.57", features = ["vendored"] }
# openssl = { version = "0.10.57", features = ["vendored"] }
quick-xml = "0.30.0"
regex = "1.9.5"
reqwest = { version = "0.11.20", features = ["blocking", "json"] }
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ To use the `Shokunin Static Site Generator` library in your project, add the fol

```toml
[dependencies]
shokunin = "0.0.16"
shokunin = "0.0.17"
```

Add the following to your `main.rs` file:
Expand Down Expand Up @@ -283,6 +283,6 @@ A special thank you goes to the [Rust Reddit][13] community for providing a lot
[crates-badge]: https://img.shields.io/crates/v/ssg.svg?style=for-the-badge 'Crates.io badge'
[divider]: https://kura.pro/common/images/elements/divider.svg "divider"
[docs-badge]: https://img.shields.io/docsrs/ssg.svg?style=for-the-badge 'Docs.rs badge'
[libs-badge]: https://img.shields.io/badge/lib.rs-v0.0.16-orange.svg?style=for-the-badge 'Lib.rs badge'
[libs-badge]: https://img.shields.io/badge/lib.rs-v0.0.17-orange.svg?style=for-the-badge 'Lib.rs badge'
[license-badge]: https://img.shields.io/crates/l/ssg.svg?style=for-the-badge 'License badge'
[made-with-rust-badge]: https://img.shields.io/badge/rust-f04041?style=for-the-badge&labelColor=c0282d&logo=rust 'Made With Rust badge'
4 changes: 2 additions & 2 deletions TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<!-- markdownlint-enable MD033 MD041 -->

# Shokunin Static Site Generator v0.0.16 🦀
# Shokunin Static Site Generator v0.0.17 🦀

A Fast and Flexible open-source static site generator (ssg) written in Rust 🦀

Expand Down Expand Up @@ -70,7 +70,7 @@ The library extracts metadata and content to generate static HTML files from Mar
[crates-badge]: https://img.shields.io/crates/v/ssg.svg?style=for-the-badge 'Crates.io badge'
[divider]: https://kura.pro/common/images/elements/divider.svg "divider"
[docs-badge]: https://img.shields.io/docsrs/ssg.svg?style=for-the-badge 'Docs.rs badge'
[libs-badge]: https://img.shields.io/badge/lib.rs-v0.0.16-orange.svg?style=for-the-badge 'Lib.rs badge'
[libs-badge]: https://img.shields.io/badge/lib.rs-v0.0.17-orange.svg?style=for-the-badge 'Lib.rs badge'
[license-badge]: https://img.shields.io/crates/l/ssg.svg?style=for-the-badge 'License badge'
[made-with-rust-badge]: https://img.shields.io/badge/rust-f04041?style=for-the-badge&labelColor=c0282d&logo=rust 'Made With Rust badge'

Expand Down
2 changes: 1 addition & 1 deletion content/404.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ viewport: "width=device-width, initial-scale=1, shrink-to-fit=no"
atom_link: "https://kaishi.one/404/rss.xml"
category: "Technology"
docs: "https://validator.w3.org/feed/docs/rss2.html"
generator: "Shokunin 🦀 (version 0.0.16)"
generator: "Shokunin 🦀 (version 0.0.17)"
item_description: "The page may have been removed or renamed. Please visit our homepage for more information."
item_guid: "https://kaishi.one/404/rss.xml"
item_link: "https://kaishi.one/404/rss.xml"
Expand Down
2 changes: 1 addition & 1 deletion content/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ viewport: "width=device-width, initial-scale=1, shrink-to-fit=no" ## The viewpor
atom_link: https://kaishi.one/contact/rss.xml
category: "Technology"
docs: https://validator.w3.org/feed/docs/rss2.html
generator: "Shokunin 🦀 (version 0.0.16)"
generator: "Shokunin 🦀 (version 0.0.17)"
item_description: RSS feed for the contact page of the Kaishi website.
item_guid: https://kaishi.one/contact/rss.xml
item_link: https://kaishi.one/contact/rss.xml
Expand Down
2 changes: 1 addition & 1 deletion content/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ viewport: "width=device-width, initial-scale=1, shrink-to-fit=no" ## The viewpor
atom_link: https://kaishi.one/rss.xml
category: "Technology"
docs: https://validator.w3.org/feed/docs/rss2.html
generator: "Shokunin 🦀 (version 0.0.16)"
generator: "Shokunin 🦀 (version 0.0.17)"
item_description: RSS feed for the site
item_guid: https://kaishi.one/rss.xml
item_link: https://kaishi.one/rss.xml
Expand Down
2 changes: 1 addition & 1 deletion content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ viewport: "width=device-width, initial-scale=1, shrink-to-fit=no" ## The viewpor
atom_link: https://kaishi.one/rss.xml
category: "Technology"
docs: https://validator.w3.org/feed/docs/rss2.html
generator: "Shokunin 🦀 (version 0.0.16)"
generator: "Shokunin 🦀 (version 0.0.17)"
item_description: RSS feed for the site
item_guid: https://kaishi.one/rss.xml
item_link: https://kaishi.one/rss.xml
Expand Down
2 changes: 1 addition & 1 deletion content/offline.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ viewport: "width=device-width, initial-scale=1, shrink-to-fit=no" ## The viewpor
atom_link: https://kaishi.one/rss.xml
category: "Technology"
docs: https://validator.w3.org/feed/docs/rss2.html
generator: "Shokunin 🦀 (version 0.0.16)"
generator: "Shokunin 🦀 (version 0.0.17)"
item_description: RSS feed for the site
item_guid: https://kaishi.one/rss.xml
item_link: https://kaishi.one/rss.xml
Expand Down
2 changes: 1 addition & 1 deletion content/privacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ viewport: "width=device-width, initial-scale=1, shrink-to-fit=no" ## The viewpor
atom_link: https://kaishi.one/rss.xml
category: "Technology"
docs: https://validator.w3.org/feed/docs/rss2.html
generator: "Shokunin 🦀 (version 0.0.16)"
generator: "Shokunin 🦀 (version 0.0.17)"
item_description: RSS feed for the site
item_guid: https://kaishi.one/rss.xml
item_link: https://kaishi.one/rss.xml
Expand Down
2 changes: 1 addition & 1 deletion content/tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ viewport: "width=device-width, initial-scale=1, shrink-to-fit=no" ## The viewpor
atom_link: https://kaishi.one/rss.xml
category: "Technology"
docs: https://validator.w3.org/feed/docs/rss2.html
generator: "Shokunin 🦀 (version 0.0.16)"
generator: "Shokunin 🦀 (version 0.0.17)"
item_description: RSS feed for the site
item_guid: https://kaishi.one/rss.xml
item_link: https://kaishi.one/rss.xml
Expand Down
2 changes: 1 addition & 1 deletion content/terms.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ viewport: "width=device-width, initial-scale=1, shrink-to-fit=no" ## The viewpor
atom_link: https://kaishi.one/rss.xml
category: "Technology"
docs: https://validator.w3.org/feed/docs/rss2.html
generator: "Shokunin 🦀 (version 0.0.16)"
generator: "Shokunin 🦀 (version 0.0.17)"
item_description: RSS feed for the site
item_guid: https://kaishi.one/rss.xml
item_link: https://kaishi.one/rss.xml
Expand Down
4 changes: 2 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn build() -> Result<ArgMatches, Error> {
.author("Sebastien Rousseau")
.about("")
.bin_name("ssg")
.version("0.0.16")
.version("0.0.17")
.arg(
Arg::new("new")
.help("Create a new project.")
Expand Down Expand Up @@ -109,7 +109,7 @@ pub fn build() -> Result<ArgMatches, Error> {
/// ```
pub fn print_banner() {
// Set the title and description for the CLI
let title = "Shokunin 🦀 (v0.0.16)";
let title = "Shokunin 🦀 (v0.0.17)";
let description =
"A Fast and Flexible Static Site Generator written in Rust";

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//! *Part of the [Mini Functions][0] family of libraries.*
//!
//! [![Crates.io](https://img.shields.io/crates/v/ssg.svg?style=for-the-badge&color=success&labelColor=27A006)](https://crates.io/crates/ssg "Crates.io")
//! [![Lib.rs](https://img.shields.io/badge/lib.rs-v0.0.16-success.svg?style=for-the-badge&color=8A48FF&labelColor=6F36E4)](https://lib.rs/crates/ssg "Lib.rs")
//! [![Lib.rs](https://img.shields.io/badge/lib.rs-v0.0.17-success.svg?style=for-the-badge&color=8A48FF&labelColor=6F36E4)](https://lib.rs/crates/ssg "Lib.rs")
//! [![License](https://img.shields.io/crates/l/ssg.svg?style=for-the-badge&color=007EC6&labelColor=03589B)](https://opensource.org/license/apache-2-0/ "MIT or Apache License, Version 2.0")
//! [![Rust](https://img.shields.io/badge/rust-f04041?style=for-the-badge&labelColor=c0282d&logo=rust)](https://www.rust-lang.org "Rust")
//!
Expand Down Expand Up @@ -68,7 +68,7 @@
//!
//! ```toml
//! [dependencies]
//! shokunin = "0.0.16"
//! shokunin = "0.0.17"
//! ```
//!
//! Add the following to your `main.rs` file:
Expand Down
38 changes: 32 additions & 6 deletions template/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,43 @@
<script
async
crossorigin="anonymous"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/js/bootstrap.bundle.min.js"
></script>
integrity="sha512-ToL6UYWePxjhDQKNioSi4AyJ5KkRxY+F1+Fi7Jgh0Hp5Kk2/s8FD7zusJDdonfe5B00Qw+B8taXxF6CFLnqNCw=="
src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/js/bootstrap.bundle.min.js">
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebSite",
"@type": "WebPage",
"author": {
"@type": "Person",
"@id": "{{author}}"
},
"copyrightHolder": {
"@type": "Person",
"@id": "{{author}}"
},
"copyrightYear": "{{copyright}}",
"creator": {
"@type": "Person",
"@id": "{{author}}"
},
"dateModified": "{{last_build_date}}",
"datePublished": "{{item_pub_date}}",
"description": "{{description}}",
"headline": "{{subtitle}}",
"image": {
"@type": "ImageObject",
"url": "{{image}}"
},
"inLanguage": "{{language}}",
"mainEntityOfPage": "{{permalink}}",
"name": "{{name}}",
"url": "{{url}}"
"publisher": {
"@type": "Person",
"@id": "{{author}}"
}
}
</script>
</script>
<script>
// This is an Immediately Invoked Function Expression (IIFE) which helps
// to avoid declaring any globals.
Expand Down
36 changes: 31 additions & 5 deletions template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,17 +204,43 @@
<script
async
crossorigin="anonymous"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/js/bootstrap.bundle.min.js"
integrity="sha512-ToL6UYWePxjhDQKNioSi4AyJ5KkRxY+F1+Fi7Jgh0Hp5Kk2/s8FD7zusJDdonfe5B00Qw+B8taXxF6CFLnqNCw=="
src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/js/bootstrap.bundle.min.js">
></script>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebSite",
"@type": "WebPage",
"author": {
"@type": "Person",
"@id": "{{author}}"
},
"copyrightHolder": {
"@type": "Person",
"@id": "{{author}}"
},
"copyrightYear": "{{copyright}}",
"creator": {
"@type": "Person",
"@id": "{{author}}"
},
"dateModified": "{{last_build_date}}",
"datePublished": "{{item_pub_date}}",
"description": "{{description}}",
"headline": "{{subtitle}}",
"image": {
"@type": "ImageObject",
"url": "{{image}}"
},
"inLanguage": "{{language}}",
"mainEntityOfPage": "{{permalink}}",
"name": "{{name}}",
"url": "{{url}}"
"publisher": {
"@type": "Person",
"@id": "{{author}}"
}
}
</script>
</script>
<script>
// This is an Immediately Invoked Function Expression (IIFE) which helps
// to avoid declaring any globals.
Expand Down
36 changes: 31 additions & 5 deletions template/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,43 @@
<script
async
crossorigin="anonymous"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/js/bootstrap.bundle.min.js"
integrity="sha512-ToL6UYWePxjhDQKNioSi4AyJ5KkRxY+F1+Fi7Jgh0Hp5Kk2/s8FD7zusJDdonfe5B00Qw+B8taXxF6CFLnqNCw=="
src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/js/bootstrap.bundle.min.js">
></script>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebSite",
"@type": "WebPage",
"author": {
"@type": "Person",
"@id": "{{author}}"
},
"copyrightHolder": {
"@type": "Person",
"@id": "{{author}}"
},
"copyrightYear": "{{copyright}}",
"creator": {
"@type": "Person",
"@id": "{{author}}"
},
"dateModified": "{{last_build_date}}",
"datePublished": "{{item_pub_date}}",
"description": "{{description}}",
"headline": "{{subtitle}}",
"image": {
"@type": "ImageObject",
"url": "{{image}}"
},
"inLanguage": "{{language}}",
"mainEntityOfPage": "{{permalink}}",
"name": "{{name}}",
"url": "{{url}}"
"publisher": {
"@type": "Person",
"@id": "{{author}}"
}
}
</script>
</script>
<script>
// This is an Immediately Invoked Function Expression (IIFE) which helps
// to avoid declaring any globals.
Expand Down

0 comments on commit 9f6f479

Please sign in to comment.