Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
edelprino committed Oct 24, 2024
0 parents commit 85d3483
Show file tree
Hide file tree
Showing 15 changed files with 427 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_site
.DS_Store
.idea
.sass-cache/
.jekyll-cache/
26 changes: 26 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: default
sitemap:
exclude: 'yes'
---

<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>

<div class="container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>
27 changes: 27 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
source "https://rubygems.org"

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.2.0"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?
gem "webrick"
73 changes: 73 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0)
concurrent-ruby (1.2.3)
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)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
jekyll (4.2.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
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.8.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)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.6)
rouge (3.30.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.8.0)
webrick (1.8.1)

PLATFORMS
x86_64-linux-musl

DEPENDENCIES
jekyll (~> 4.2.0)
jekyll-feed (~> 0.6)
tzinfo-data
webrick

BUNDLED WITH
2.3.25
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
TIMESTAMP := $(shell date +%s)
start:
docker-compose up -d
make logs

stop:
docker-compose down

restart:
make stop
make start

shell:
docker-compose run --rm jekyll sh

deploy:
docker compose run --rm jekyll jekyll build
scp -r ./_site proxyweb:/var/www/edelprino.com-$(TIMESTAMP)
ssh proxyweb "rm /var/www/edelprino.com"
ssh proxyweb "ln -sf /var/www/edelprino.com-$(TIMESTAMP) /var/www/edelprino.com"
# ssh proxyweb "ls -t ~/edelprino.com-* | tail -n +6 | xargs rm --"

logs:
docker-compose logs -f

help:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
18 changes: 18 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
title: Climbing Land Magazine
author: "Ettore Delprino"
email: [email protected]
description: Le ultime news dal mondo dell'arrampicata
# description: >- # this means to ignore newlines until "baseurl:"
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://magazine.climbing.land" # the base hostname & protocol for your site

permalink: /:title
markdown: kramdown
plugins:
- jekyll-feed

# Exclude from processing.
exclude:
- Gemfile
- Gemfile.lock

83 changes: 83 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<title>{{ page.title }} | {{ site.title }}</title>
<meta name="description" content="{{ page.excerpt | strip_html | strip_newlines | truncate: 160 | smartify}}">
<meta name="author" content="{{ site.author.name }}">
<meta name="referrer" content="no-referrer-when-downgrade">
<meta name="image" content="{{ page.image | absolute_url }}">
<meta name="og:image" content="{{ page.image | absolute_url }}">
<meta name="og:description" content="{{ page.excerpt | strip_html | strip_newlines | truncate: 160 | smartify}}">
<meta name="og:title" content="{{ page.title | smartify }} | {{ site.title }}">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
<link rel="stylesheet" href="{{ "/assets/css/styles.css" | relative_url }}">
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
</head>
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="{{ "/" | absolute_url }}">
<h5 class="title is-5">{{ site.title }}</h5>
</a>
<!-- <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="menu"> -->
<!-- <span aria-hidden="true"></span> -->
<!-- <span aria-hidden="true"></span> -->
<!-- <span aria-hidden="true"></span> -->
<!-- </a> -->
</div>
<div id="menu" class="navbar-menu">
<div class="navbar-start">
<!-- <a class="navbar-item" href="{{ "/progetti" | absolute_url }}">Progetti</a> -->
<!-- <a class="navbar-item" href="{{ "/nerd" | absolute_url }}">Nerd</a> -->
</div>
</div>
</nav>

{{ content }}
<footer class="footer">
<div class="content has-text-centered">
<p>
<!-- <a href="https://twitter.com/edelprino" target="_blank" class="mr-4"><i class="fab fa-twitter fa-2x"></i></a> -->
<a href="https://www.instagram.com/climbing.land" target="_blank" class="mr-4"><i class="fab fa-instagram fa-2x"></i></a>
<!-- <a href="https://www.facebook.com/edelprino" target="_blank" class="mr-4"><i class="fab fa-facebook fa-2x"></i></a> -->
<!-- <a href="https://www.linkedin.com/in/edelprino" target="_blank"><i class="fab fa-linkedin fa-2x"></i></a> -->
</p>
<!-- <p><strong>edelprino.com</strong> è stato creato da <a target="_blank" href="http://edelprino.com">Ettore Delprino</a></p> -->
<p>Coyright © {{ site.time | date: '%Y' }} Ettore Delprino</p>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {

// Get all "navbar-burger" elements
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);

// Add a click event on each of them
$navbarBurgers.forEach( el => {
el.addEventListener('click', () => {

// Get the target from the "data-target" attribute
const target = el.dataset.target;
const $target = document.getElementById(target);

// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
el.classList.toggle('is-active');
$target.classList.toggle('is-active');

});
});

});
</script>
<script async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
</body>
</html>
36 changes: 36 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
layout: default
---
<section class="hero" style="">
<!-- <div class="hero-body"> -->
<!-- <p class="has-text-centered is-italic is-size-4">Ciao! Sono Ettore, le mie due grandi passioni sono la programmazione e il free climbing.</p> -->
<!-- <p class="has-text-centered is-italic is-size-4">Ho unito quello che mi piaceva di più e ho creato due guide di falesie online ZenaClimbing e Climbing Land</p> -->
<!-- </div> -->
<div class="container">
<section class="hero">
<div class="hero-body has-text-centered">
<h1 class="title">{{site.title}}</h1>
<p class="subtitle">{{site.description}}</p>
</div>
</section>
<section class="section is-flex is-flex-wrap-wrap is-justify-content-space-between">
{% for post in site.posts %}
{% if post.redirect_to %}
{% continue %}
{% endif %}
<div class="card post mb-5" style="background-image: url({{ post.image | relative_url }}); background-size: cover; background-position: center;">
<a href="{{ post.url | relative_url }}">
<div style="background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.5)); height: 100%; border-radius:.25rem">
<div class="card-image">
<figure class="image is-2by1"></figure>
</div>
<div class="card-content">
<h3 class="title is-4 has-text-white">{{ post.title }}</h3>
<p class="subtitle is-6 has-text-white">{{ post.date | date: "%B %-d, %Y" }}</p>
</div>
</div>
</a>
</div>
{% endfor %}
</section>
</div>
19 changes: 19 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: default
---
<section class="hero is-medium" style="background-image: url({{ page.image | relative_url }}); background-size: cover; background-position: center;">
<div class="hero-body" style="background-color: rgba(0,0,0,0.4);">
<h1 class="title is-1 has-text-centered has-text-white">{{page.title}}</h1>
</div>
</section>
<div class="container">
<section class="section">
<div class="columns">
<div class="column is-8 is-offset-2">
<div class="content has-text-justified">
{{ content }}
</div>
</div>
</div>
</section>
</div>
7 changes: 7 additions & 0 deletions _layouts/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url={{ page.redirect_to }}">
<link rel="canonical" href="{{ page.redirect_to }}">
</head>
</html>
34 changes: 34 additions & 0 deletions assets/css/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
---

.post{
flex-basis: 32%;
}

@media screen and (max-width: 768px) {
.post{
flex-basis: 49%;
}
}

@media screen and (max-width: 480px) {
.post{
flex-basis: 100%;
}
}

.content table {
overflow-x: auto;
display: block;
width: 100%;
}

.content {
line-height: 1.75;
}

.MathJax {
display: block;
overflow-x: auto;
width: 100%;
}
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
jekyll:
image: jekyll/jekyll:latest
command: jekyll serve --livereload --watch --force_polling --verbose --trace
# command: jekyll serve --livereload --watch --force_polling --verbose --drafts --trace
# command: bundle exec jekyll serve --watch --host 0.0.0.0
ports:
- 4000:4000
- 35729:35729
volumes:
- .:/srv/jekyll
4 changes: 4 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: home
title: Tutte le news dal mondo dell'arrampicata
---
1 change: 1 addition & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sitemap: https://edelprino.com/sitemap.xml
Loading

0 comments on commit 85d3483

Please sign in to comment.