Skip to content

Commit

Permalink
add basic layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
anna328p committed Apr 27, 2021
1 parent 8a45ba8 commit c5996aa
Show file tree
Hide file tree
Showing 13 changed files with 215 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
source 'https://rubygems.org'

gem 'github-pages'
gem 'jekyll-slim', github: 'olery/jekyll-slim'
gem 'pathutil', github: 'motevets/pathutil', branch: 'fix-issue-4'
gem 'webrick'
27 changes: 25 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
GIT
remote: https://github.com/motevets/pathutil.git
revision: 3451a10c362fc867b20c7e471a551b31c40a0246
branch: fix-issue-4
specs:
pathutil (0.16.2)
forwardable-extended (~> 2.6)

GIT
remote: https://github.com/olery/jekyll-slim.git
revision: 48c27ea4d5070b9d7313c21e91f9ce4e647b68bc
specs:
jekyll-slim (0.10.1)
jekyll (~> 3.1)
slim

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -222,8 +238,6 @@ GEM
octokit (4.21.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
racc (1.5.2)
rb-fsevent (0.10.4)
Expand All @@ -246,9 +260,14 @@ GEM
faraday (> 0.8, < 2.0)
simpleidn (0.2.1)
unf (~> 0.1.4)
slim (4.1.0)
temple (>= 0.7.6, < 0.9)
tilt (>= 2.0.6, < 2.1)
temple (0.8.2)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
tilt (2.0.10)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.9)
Expand All @@ -257,13 +276,17 @@ GEM
unf_ext
unf_ext (0.0.7.7)
unicode-display_width (1.7.0)
webrick (1.7.0)
zeitwerk (2.4.2)

PLATFORMS
ruby

DEPENDENCIES
github-pages
jekyll-slim!
pathutil!
webrick

BUNDLED WITH
2.1.4
44 changes: 44 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: lipu sona
email: [email protected]
description: >-
o kama sona e toki pona lon lipu sona ni!
baseurl: ""
url: "https://lipusona.ap5.dev"
twitter_username: anna328p
github_username: anna328p

# Build settings
markdown: kramdown
plugins:
- jekyll-feed
- jekyll-slim

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- shell.nix
- gemset.nix
- scripts/
2 changes: 2 additions & 0 deletions _includes/footer.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.container
p tan jan Ana
6 changes: 6 additions & 0 deletions _includes/head.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
link rel="preconnect" href="https://fonts.gstatic.com"
link href="https://fonts.googleapis.com/css2?family=Lexend:wght@400;600&display=swap" rel="stylesheet"
link href='/assets/css/style.css' rel='stylesheet'

title
| {{ site.title }}
3 changes: 3 additions & 0 deletions _includes/header.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.container
h1
| {{ site.title }}
15 changes: 15 additions & 0 deletions _layouts/default.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
html
head
| {%- include head.slim -%}

body
header
| {%- include header.slim -%}

main.page-content aria-label="Content"
.container
section.content
| {{ content }}

footer
| {%- include footer.slim -%}
32 changes: 32 additions & 0 deletions _sass/containers.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* Dogfalo/materialize // MIT */

// Media Query Ranges
$small-screen-up: 601px !default;
$medium-screen-up: 993px !default;
$large-screen-up: 1201px !default;
$small-screen: 600px !default;
$medium-screen: 992px !default;
$large-screen: 1200px !default;

$medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
$large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
$extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
$small-and-down: "only screen and (max-width : #{$small-screen})" !default;
$medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
$medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;

.container {
margin: 0 auto;
max-width: 1280px;
width: 90%;
}
@media #{$medium-and-up} {
.container {
width: 85%;
}
}
@media #{$large-and-up} {
.container {
width: 70%;
}
}
8 changes: 8 additions & 0 deletions _sass/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* {
font-family: 'Lexend', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; }

h1 { font-size: 5vh; }
h2 { font-size: 3vh; }
5 changes: 5 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
---

@import "main";
@import "containers";
62 changes: 59 additions & 3 deletions gemset.nix
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,19 @@
};
version = "1.4.0";
};
jekyll-slim = {
dependencies = ["jekyll" "slim"];
groups = ["default"];
platforms = [];
source = {
fetchSubmodules = false;
rev = "48c27ea4d5070b9d7313c21e91f9ce4e647b68bc";
sha256 = "1c1xcjbfbgjfq0gv77i0xlxfbfxkiq18sgpa764kvifkhwc7qcbd";
type = "git";
url = "https://github.com/olery/jekyll-slim.git";
};
version = "0.10.1";
};
jekyll-swiss = {
groups = ["default"];
platforms = [];
Expand Down Expand Up @@ -766,9 +779,11 @@
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4";
type = "gem";
fetchSubmodules = false;
rev = "3451a10c362fc867b20c7e471a551b31c40a0246";
sha256 = "1nmgzsbby6mvnyf5ic17nlwlzzalbngn61a6mk28462qqpwlyfg8";
type = "git";
url = "https://github.com/motevets/pathutil.git";
};
version = "0.16.2";
};
Expand Down Expand Up @@ -918,6 +933,27 @@
};
version = "0.2.1";
};
slim = {
dependencies = ["temple" "tilt"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n";
type = "gem";
};
version = "4.1.0";
};
temple = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861";
type = "gem";
};
version = "0.8.2";
};
terminal-table = {
dependencies = ["unicode-display_width"];
groups = ["default"];
Expand All @@ -939,6 +975,16 @@
};
version = "0.3.6";
};
tilt = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0rn8z8hda4h41a64l0zhkiwz2vxw9b1nb70gl37h1dg2k874yrlv";
type = "gem";
};
version = "2.0.10";
};
typhoeus = {
dependencies = ["ethon"];
groups = ["default"];
Expand Down Expand Up @@ -992,6 +1038,16 @@
};
version = "1.7.0";
};
webrick = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1d4cvgmxhfczxiq5fr534lmizkhigd15bsx5719r5ds7k7ivisc7";
type = "gem";
};
version = "1.7.0";
};
zeitwerk = {
groups = ["default"];
platforms = [];
Expand Down
5 changes: 5 additions & 0 deletions index.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: default
---
article
h2
8 changes: 8 additions & 0 deletions scripts/binst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BA="--ruby=ruby_3_0"

bundix $BA -l
bundix $BA -m
direnv reload
bundle install

# vim: ft=bash

0 comments on commit c5996aa

Please sign in to comment.