Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
noteed committed Nov 26, 2024
0 parents commit 99da677
Show file tree
Hide file tree
Showing 30 changed files with 1,226 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: deployment
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v2
- name: Download Slab from GitHub Releases
run: |
wget https://github.com/hypered/slab/releases/download/v0.0.3.0-alpha/slab-v0.0.3.0-linux-x86-64-musl -O slab
chmod +x slab
- name: Build the static site
run: |
./slab build content/
cp -r static/ _site/
cp static/favicon.ico _site/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.*.swp
_site/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Slab

Slab is a programmable markup language to generate HTML. This repository is an
example for the recipe "Publishing a Slab-made website to GitHub Pages".
43 changes: 43 additions & 0 deletions content/index.slab
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
frag page
doctype html
html(dir="ltr", lang="en")
head
meta(charset="utf-8")
meta(name="viewport", content="width=device-width, initial-scale=1")
link(rel="stylesheet", href="./static/css/struct.css")
link(rel="icon", href="./static/favicon.ico")
title The Slab markup language
body.u-container-vertical
header
.u-container
.u-bar.u-bar--top-aligned
.u-bar__left
style.
.a-logo { color: black; text-decoration: none; }
.menu-item-height
a.a-logo(href="/")
div
span.logo Slab
.u-bar__right
-- empty

main
content
footer
.u-container.u-container-top
hr
.c-text.flow.limit-40ch
p
small Slab is written in Belgium by <a href="https://hypered.be/en/">Võ Minh Thu</a> (<a href="https://twitter.com/noteed">@noteed</a>).

page
.u-container.u-flow-c-4
.c-content.flow-all.u-flow-c-4.limit-42em
h1 Welcome to Slab

.switcher
.flow
p Slab is a programmable markup language that simplifies the creation of HTML. It combines concise notation with standard programming constructs to create reusable web content more efficiently.

.c-content.flow
-- empty
Loading

0 comments on commit 99da677

Please sign in to comment.