Skip to content
Snippets Groups Projects
Commit dac70a77 authored by Augustin Lemesle's avatar Augustin Lemesle
Browse files

first updates, test CI

parent eeac44ed
No related branches found
No related tags found
No related merge requests found
stages:
- build
- deploy
cache:
paths:
- vendor
key: "pyrat"
build_site:
stage: build
image: ruby:2.7.0
script:
- gem install bundler -v '2.3.11'
- bundle install --path=vendor/
- bundle exec jekyll build
artifacts:
expire_in: 2 weeks
paths:
- _site/
tags:
- docker
pages:
stage: deploy
image: praqma/linkchecker
script:
- linkchecker _site/
- mv _site/ public/
artifacts:
expire_in: 2 weeks
paths:
- public/
tags:
- docker
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
when: manual
...@@ -18,14 +18,14 @@ ...@@ -18,14 +18,14 @@
# You can create any custom variable you would like, and they will be accessible # You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}. # in the templates via {{ site.myvariable }}.
title: Your awesome title title: PyRAT Website
email: your-email@example.com email: your-email@example.com
description: >- # this means to ignore newlines until "baseurl:" description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description. Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog baseurl: "/laiser-websites/pyrat-website" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com url: "https://laiser.frama-c.com" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb twitter_username: jekyllrb
github_username: jekyll github_username: jekyll
......
<footer class="footer">
<div class="content has-text-centered">
<div class="columns is-centered is-mobile">
<div class="column is-narrow">
<p class="image is-64x64"><img src="{{ '/assets/images/pyrat-logo-rect.png' | relative_url }}"></p>
</div>
<div class="column is-narrow is-size-7">
<div class="copyright">
<span>Copyright © 2021-{{ 'now' | date: "%Y" }} PyRAT. All Rights Reserved.</span>
</div>
</div>
</div>
</div>
</footer>
<nav class="navbar is-fixed-top">
<div class="navbar-brand">
<a class="navbar-item logo-top" href="/"><strong><img src="{{ '/assets/images/pyrat-logo-rect.png' | relative_url }}"></strong></a>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarPyRAT">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarPyRAT" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="{{ item.link }}" class="pure-menu-link">Home</a>
<a class="navbar-item" href="{{ item.link }}" class="pure-menu-link">Download</a>
<a class="navbar-item" href="{{ item.link }}" class="pure-menu-link">Contact</a>
</div>
</div>
</nav>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Get all "navbar-burger" elements
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Check if there are any navbar burgers
if ($navbarBurgers.length > 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>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" contents="PyRAT">
<title>PyRAT</title>
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/bulma.css' | relative_url }}">
<link rel="shortcut icon" href="{{ '/assets/images/pyrat-logo.jpg' | relative_url }}" type="image/x-icon">
</head>
<body>
{% include nav.html %}
<div class="mainContent">
{{ content }}
</div>
{% include footer.html %}
</body>
</html>
---
layout: post
title: "Welcome to Jekyll!"
date: 2022-04-11 13:10:30 +0200
categories: jekyll update
---
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
Jekyll requires blog post files to be named according to the following format:
`YEAR-MONTH-DAY-title.MARKUP`
Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.
Jekyll also offers powerful support for code snippets:
{% highlight ruby %}
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
[jekyll-docs]: https://jekyllrb.com/docs/home
[jekyll-gh]: https://github.com/jekyll/jekyll
[jekyll-talk]: https://talk.jekyllrb.com/
---
layout: page
title: About
permalink: /about/
---
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](https://jekyllrb.com/)
You can find the source code for Minima at GitHub:
[jekyll][jekyll-organization] /
[minima](https://github.com/jekyll/minima)
You can find the source code for Jekyll at GitHub:
[jekyll][jekyll-organization] /
[jekyll](https://github.com/jekyll/jekyll)
[jekyll-organization]: https://github.com/jekyll
This diff is collapsed.
This diff is collapsed.
/* MAIN PAGE
------------------------------------------------------------------ */
.navbar-item.logo-top {
top: 4px;
}
.mainContent {
margin-top: 52px;
}
\ No newline at end of file
assets/images/pyrat-logo-rect.png

384 KiB

assets/images/pyrat-logo.jpg

81.5 KiB

---
layout: default
title: PyRAT — Home
permalink: /
---
<h1 class="title">
Ceci est le site web PyRAT
</h1>
---
# Feel free to add content and custom Front Matter to this file.
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: home
---
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment