Skip to content

Commit

Permalink
Posts interface
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Mar 16, 2024
1 parent e16bc3f commit 8ea9150
Show file tree
Hide file tree
Showing 11 changed files with 224 additions and 8 deletions.
11 changes: 11 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

source "https://rubygems.org"

# gem "rails"

gem "jekyll", "~> 4.3"

gem "csv", "~> 3.2"
gem "base64", "~> 0.2.0"
gem "bigdecimal", "~> 3.1"
134 changes: 134 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
base64 (0.2.0)
bigdecimal (3.1.7)
colorator (1.1.0)
concurrent-ruby (1.2.3)
csv (3.2.8)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.16.3)
forwardable-extended (2.6.0)
google-protobuf (4.26.0)
rake (>= 13)
google-protobuf (4.26.0-aarch64-linux)
rake (>= 13)
google-protobuf (4.26.0-arm64-darwin)
rake (>= 13)
google-protobuf (4.26.0-x86-linux)
rake (>= 13)
google-protobuf (4.26.0-x86_64-darwin)
rake (>= 13)
google-protobuf (4.26.0-x86_64-linux)
rake (>= 13)
http_parser.rb (0.8.0)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
jekyll (4.3.3)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3, >= 2.3.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (>= 0.3.6, < 0.5)
pathutil (~> 0.9)
rouge (>= 3.0, < 5.0)
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.4)
rake (13.1.0)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.6)
rouge (4.2.0)
safe_yaml (1.0.5)
sass-embedded (1.72.0)
google-protobuf (>= 3.25, < 5.0)
rake (>= 13.0.0)
sass-embedded (1.72.0-aarch64-linux-android)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-aarch64-linux-gnu)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-aarch64-linux-musl)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-arm-linux-androideabi)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-arm-linux-gnueabihf)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-arm-linux-musleabihf)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-arm64-darwin)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-x86-linux-android)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-x86-linux-gnu)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-x86-linux-musl)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-x86_64-darwin)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-x86_64-linux-android)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-x86_64-linux-gnu)
google-protobuf (>= 3.25, < 5.0)
sass-embedded (1.72.0-x86_64-linux-musl)
google-protobuf (>= 3.25, < 5.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
unicode-display_width (2.5.0)
webrick (1.8.1)

PLATFORMS
aarch64-linux
aarch64-linux-android
aarch64-linux-gnu
aarch64-linux-musl
arm-linux-androideabi
arm-linux-gnueabihf
arm-linux-musleabihf
arm64-darwin
ruby
x86-linux
x86-linux-android
x86-linux-gnu
x86-linux-musl
x86_64-darwin
x86_64-linux
x86_64-linux-android
x86_64-linux-gnu
x86_64-linux-musl

DEPENDENCIES
base64 (~> 0.2.0)
bigdecimal (~> 3.1)
csv (~> 3.2)
jekyll (~> 4.3)

BUNDLED WITH
2.5.4
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sass:
style: compressed
img: https://res.cloudinary.com/wellosoft/image/upload/v1546833986/home/
permalink: /:year/:title/
exclude:
- CNAME
- README.md
Expand Down
1 change: 1 addition & 0 deletions _config_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ img: http://localhost:9000/home/
compress_html:
ignore:
envs: development
permalink: /:year/:title/
exclude:
- CNAME
- README.md
Expand Down
4 changes: 2 additions & 2 deletions _includes/meta.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="{{ page.title }}">
<meta property="og:description" content="{{ page.excerpt }}">
<meta property="og:description" content="{{ page.excerpt | strip_html }}">
<meta property="og:image" content="{{ page.hero }}">
<meta name="twitter:card" content="summary">
<meta name="description" content="{{ page.excerpt }}">
<meta name="description" content="{{ page.excerpt | strip_html }}">
<link rel="apple-touch-icon" href="/assets/logo-192.png">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="manifest" type="application/json" href="/manifest.json">
Expand Down
2 changes: 1 addition & 1 deletion _includes/navbar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="navbar">
<div class="logo">
<a href="/">
{% include_relative img/wellosoft.svg %}
{% include wellosoft.svg %}
</a>
</div>
<div class="space"></div>
Expand Down
File renamed without changes
26 changes: 26 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: compress
---
<html lang="id">

<head>
{% include meta.html %}
<link rel="stylesheet" type="text/css" media="screen" href="/vendor/bootstrap/css/bootstrap.min.css" />
<meta name="theme-color" content="#963">
</head>

<body class="post">
{% include navbar.html %}
<div class="container" style="max-width: 800px;">
<h1 class="my-5 title">
{{ page.title }}
</h1>
{{ content }}

<p>
<a href="/posts" class="text-decoration-underline">Kembali ke daftar posting</a>
</p>
</div>
</body>

</html>
4 changes: 4 additions & 0 deletions _sass/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ a {
transition: all 0.2s ease-out;
}

body.post a {
text-decoration: underline;
}

.links-aon a {
border-bottom-color: black;
}
Expand Down
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
<div class="profile">
<img class="circle" src="{{site.img}}avatar-6.jpg" alt="Me Profile Picture" />
<div class="logo">
{% include_relative img/wellosoft.svg %}
{% include wellosoft.svg %}
</div>
</div>
<div class="flex-grow-1">
<div class="home-contact hero">
<h1>WIIIN0DE</h1>
<ul class="links row">
{% for v in page.links %}
<li class="col-4">
<li class="col-3">
<a href="{{ v.href }}" target="_blank" rel="noopener">
{% include_relative {{ v.icon }} %}<span class="d-none d-sm-inline">&nbsp; {{ v.name }}</span>
</a>
Expand Down Expand Up @@ -160,9 +160,9 @@ <h2>Engine4</h2>
</div>
<div class="flex-grow-1">
<div class="hero">
<h2>CODEX (Indonesian Blog)</h2>
<p>Personal, philosophical notes that I like to write in spare time</p>
<a href="https://wiiin0de.wellosoft.net"><u>Check
<h2>Indonesian Tech Blog</h2>
<p>Learning notes I like to write in spare time</p>
<a href="/posts"><u>Check
it out</u></a>
</div>
</div>
Expand Down
39 changes: 39 additions & 0 deletions posts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
layout: compress
permalink: /posts/
title: Blog Posts
---
<html lang="id">

<head>
{% include meta.html %}
<link rel="stylesheet" type="text/css" media="screen" href="/vendor/bootstrap/css/bootstrap.min.css" />
<meta name="theme-color" content="#963">
</head>

<body class="post">
{% include navbar.html %}
<div class="container my-5">
<h1 class="my-5">Arsip Artikel</h1>
<p>

</p>
<div class="row">
{% for post in site.posts %}
<div class="col-md-6">
<div class="card mb-4">
<div class="card-body">
<h2 class="card-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p class="card-text">{{ post.excerpt | remove: '<p>' | remove: '</p>' }}</p>
</div>
<div class="card-footer text-muted">
Diposting {{ post.date | date: "%d %B %Y" }}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</body>

</html>

0 comments on commit 8ea9150

Please sign in to comment.