Skip to content

Commit

Permalink
2024.06.11 Adapt to Pagine v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jellyterra committed Jun 10, 2024
1 parent 22fe023 commit b3f6ccb
Show file tree
Hide file tree
Showing 23 changed files with 74 additions and 331 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pagine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Pagine
run: go install github.com/webpagine/go-pagine/cmd/pagine@latest
run: go install github.com/webpagine/pagine/cmd/pagine@latest

- name: Checkout
uses: actions/checkout@v4
Expand All @@ -45,7 +45,7 @@ jobs:
uses: actions/configure-pages@v4

- name: Build with Pagine
run: ~/go/bin/pagine --gen --public ./public/
run: ~/go/bin/pagine --public ./public/

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "templates/genesis"]
path = templates/genesis
url = https://github.com/webpagine/genesis
5 changes: 5 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div style="min-height: 100%; text-align: center">
<div style="block-size: 40%"></div>
<span style="font-size: 400%">404</span><br/>
<span style="font-size: 200%">Page not found.</span>
</div>
14 changes: 0 additions & 14 deletions 404.html.pagine

This file was deleted.

33 changes: 0 additions & 33 deletions assets/base.css

This file was deleted.

22 changes: 0 additions & 22 deletions assets/components.css

This file was deleted.

71 changes: 0 additions & 71 deletions assets/footer.css

This file was deleted.

35 changes: 0 additions & 35 deletions assets/header.css

This file was deleted.

1 change: 0 additions & 1 deletion data/head.toml

This file was deleted.

12 changes: 6 additions & 6 deletions data/header.toml → docs/metadata.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[[nav.items]]
[genesis.header.nav.logo]
src = "/assets/img/pagine.svg"
height = 50

[[genesis.header.nav.items]]
name = "Documentation"
link = "/docs/"

[[nav.items]]
[[genesis.header.nav.items]]
name = "Repositories"
link = "https://github.com/webpagine"

[nav.logo]
src = "/assets/img/pagine.svg"
height = 50
8 changes: 8 additions & 0 deletions env.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ignore = [
"/.git*",
"/*toml",
"/*html",
]

[use]
genesis = "/templates/genesis"
14 changes: 0 additions & 14 deletions index.html.pagine

This file was deleted.

8 changes: 8 additions & 0 deletions mainpage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div style="min-height: 100%; text-align: center">
<div style="margin: auto; block-size: 30%; max-width:100px; background-color: #ff006a"></div>
<img src="/assets/img/pagine_logo.svg" width="100" alt="logo"/>
<p style="font-size: 200%">Quickly build web content with frames from templates.<br/>Just in milliseconds.</p>
<div><a class="button" target="_blank" href="https://github.com/webpagine/get-started/">GET STARTED WITH PAGINE</a></div>
<div style="block-size: 10%"></div>
<a target="_blank" href="https://github.com/webpagine/go-pagine/"><img alt="GitHub Repo stars" height="30" src="https://img.shields.io/github/stars/webpagine/go-pagine"></a>
</div>
44 changes: 32 additions & 12 deletions data/footer.toml → metadata.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
[copyright]
owner = "Symboltics"
date = "2024"
license = "Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply."
[genesis.head]
icon = "https://avatars.githubusercontent.com/u/168826426"

[genesis.header.nav.logo]
src = "/assets/img/pagine.svg"
height = 50

# Header

[[genesis.header.nav.items]]
name = "Documentation"
link = "/docs/"

[[genesis.header.nav.items]]
name = "Repositories"
link = "https://github.com/webpagine"

[logo]
# Footer

[genesis.footer.logo]
src = "/assets/img/symboltics_white.svg"
height = 40

[[lists]]
[genesis.footer.copyright]
owner = "Symboltics"
date = "2024"
license = "Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply."

[[genesis.footer.lists]]
title = "About Symboltics"
links = [
{ name = "Vision", link = "" },
Expand All @@ -16,7 +35,7 @@ links = [
{ name = "Where we come", link = "" },
]

[[lists]]
[[genesis.footer.lists]]
title = "Infrastructure"
links = [
{ name = "LangVM", link = "https://github.com/langvm/" },
Expand All @@ -25,16 +44,17 @@ links = [
{ name = "Web Pagine", link = "https://github.com/webpagine/" },
]

[[lists]]
[[genesis.footer.lists]]
title = "Services"
links = [
{ name = "Modularis", link = "https://github.com/symboltics/modularis/" },
]

[[media.list]]
logo = "github"
[[genesis.footer.media.list]]
icon = "github"
link = "https://github.com/jellyterra"

[[media.list]]
logo = "x"
[[genesis.footer.media.list]]
icon = "x"
link = "https://x.com/jellyterra"

1 change: 0 additions & 1 deletion pagine.toml

This file was deleted.

15 changes: 0 additions & 15 deletions templates/404.gohtml

This file was deleted.

Loading

0 comments on commit b3f6ccb

Please sign in to comment.