Skip to content

Commit

Permalink
fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
nair0lf32 committed Jan 27, 2025
1 parent 8a623ed commit 0dcef6c
Show file tree
Hide file tree
Showing 32 changed files with 310 additions and 236 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ _site
.jekyll-cache
.jekyll-metadata
vendor
Thumbs.db
assets/images/Thumbs.db
assets/posts-assets/Thumbs.db
**/Thumbs.db
*.env
*.log
*.swp
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ you might have conflicts issues with your ruby version and the plugin versions (
- If you used rbenv too make sure you have the latest version or at least latest version
of `ruby-build` (to avoid an `OpenSSl` version conflict too *sigh)

The blog is deployed on [Github Pages](https://pages.github.com/) using a github action workflow. The workflow is available in the `.github/workflows` folder.
The blog is deployed on [Github Pages](https://pages.github.com/) using a github action workflow. The workflow is available in the `.github/workflows/jekyll.yml` folder. Also this project uses many jekyll plugins as dependencies and you can check the `Gemfile` for the list of plugins used. The most important ones are:

- [github-metadata](https://github.com/jekyll/github-metadata) for github pages
- [spaceship](https://github.com/jeffreytse/jekyll-spaceship) for tables, formulas, and other markdown enhancements
- [Premonition](https://github.com/lazee/premonition) for nice looking alerts
- [glossary-tooltips](https://github.com/erikw/jekyll-glossary_tooltip) for glossary tooltips

<!-- TODO:
- add contributing, code of conduct, license support resources...
Expand Down
26 changes: 14 additions & 12 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ markdown: kramdown
highlighter: rouge
permalink: pretty
baseurl: "/mcs" # the subpath of your site, e.g. /blog
url: "https://nair0lf32.gihub.io" # the base hostname & protocol for your site, e.g. http://example.com
url: "https://nair0lf32.github.io" # the base hostname & protocol for your site, e.g. http://example.com
github_username: nair0lf32
repository: nair0lf32/mcs
logo: /assets/images/MCS.png
Expand Down Expand Up @@ -77,17 +77,19 @@ plugins:
destination: ./_site
include:
- static
# exclude:
# - .sass-cache/
# - .jekyll-cache/
# - gemfiles/
# - Gemfile
# - Gemfile.lock
# - node_modules/
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
- assets
exclude:
- .sass-cache/
- .jekyll-cache/
- node_modules/
- Gemfile
- Gemfile.lock
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/

# Theme settings
theme: jekyll-theme-cayman


Expand Down
187 changes: 108 additions & 79 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,92 +1,121 @@
---
---
<!DOCTYPE html>
<html lang="{{ site.lang | default: 'fr' }}">

<head>
<meta charset="UTF-8">
<meta name="keywords" content="{{ page.keywords | default: site.keywords }}">
<head>
<meta charset="UTF-8" />
<meta
name="keywords"
content="{{ page.keywords | default: site.keywords }}"
/>
<!-- PWA -->
<link rel="manifest" href="{{ '/manifest.json?v=' | append: site.github.build_revision | relative_url }}" />
<script type="text/javascript"
src="{{ '/assets/js/main.js?=' | append: site.github.build_revision | relative_url }}"></script>
<link
rel="manifest"
href="{{ '/manifest.json?v=' | append: site.github.build_revision | relative_url }}"
/>
<script
type="text/javascript"
src="{{ '/assets/js/main.js?=' | append: site.github.build_revision | relative_url }}"
></script>
<!-- insert favicons by favicon generator-->
<link rel="apple-touch-icon" sizes="180x180"
href="{{ '/assets/images/apple-touch-icon.png?v=' | append: site.github.build_revision | relative_url }}">
<link rel="icon" type="image/png" sizes="32x32"
href="{{ '/assets/images/favicon-32x32.png?v=' | append: site.github.build_revision | relative_url }}">
<link rel="icon" type="image/png" sizes="16x16"
href="{{ '/assets/images/favicon-16x16.png?v=' | append: site.github.build_revision | relative_url }}">
<link rel="shortcut icon"
href="{{ '/assets/images/favicon.ico?v=' | append: site.github.build_revision | relative_url }}">
<meta name="msapplication-TileColor" content="#157878">
<meta name="msapplication-config" content=" ">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style"
type="text/css" crossorigin>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#157878">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="stylesheet" href="{{ '/assets/css/styles.css?v=' | append: site.github.build_revision | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/jekyll-glossary_tooltip.css?v=' | append: site.github.build_revision | relative_url }}">
{% include head-custom.html %}
{% seo %}
</head>
<link
rel="apple-touch-icon"
sizes="180x180"
href="{{ '/assets/images/apple-touch-icon.png?v=' | append: site.github.build_revision | relative_url }}"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="{{ '/assets/images/favicon-32x32.png?v=' | append: site.github.build_revision | relative_url }}"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="{{ '/assets/images/favicon-16x16.png?v=' | append: site.github.build_revision | relative_url }}"
/>
<link
rel="shortcut icon"
href="{{ '/assets/images/favicon.ico?v=' | append: site.github.build_revision | relative_url }}"
/>
<meta name="msapplication-TileColor" content="#157878" />
<meta name="msapplication-config" content=" " />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
rel="preload"
href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap"
as="style"
type="text/css"
crossorigin
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#157878" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<link
rel="stylesheet"
href="{{ '/assets/css/styles.css?v=' | append: site.github.build_revision | relative_url }}"
/>
<link
rel="stylesheet"
href="{{ '/assets/css/jekyll-glossary_tooltip.css?v=' | append: site.github.build_revision | relative_url }}"
/>
{% include head-custom.html %} {% seo %}
</head>

<body>
<body>
<a id="skip-to-content" href="#content">Skip to the content.</a>
<header class="page-header" role="banner">
<div class="wrapper">
<img class="logo" width="100" height="100"
src="{{ '/assets/images/MCS.png?v=' | append: site.github.build_revision | relative_url }}"
alt="MCS-logo" />
<h2 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h2>
</div>
<h3 class="project-tagline">{{ page.description | default: site.description | default:
site.github.project_tagline }}</h3>

{% include navigation.html %}
<div class="wrapper">
<img
class="logo"
width="100"
height="100"
src="{{ '/assets/images/MCS.png?v=' | append: site.github.build_revision | relative_url }}"
alt="MCS-logo"
/>
<h2 class="project-name">
{{ page.title | default: site.title | default:
site.github.repository_name }}
</h2>
</div>
<h3 class="project-tagline">
{{ page.description | default: site.description | default:
site.github.project_tagline }}
</h3>

{% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" class="btn">Voir sur GitHub</a>
{% endif %}
{% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
{% endif %}
{% include navigation.html %} {% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" class="btn">Voir sur GitHub</a>
{% endif %} {% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
{% endif %}
</header>

<main id="content" class="main-content" role="main">
<div id="main">

{{ content }}

</div>
<footer class="site-footer">

{% if page.date %}
<p>publié le {{ page.date | date: "%d/%m/%Y, à %R" }} </p>
{% endif %}

{% if page.refs %}
<p>sources/references: {{ page.refs }} </p>
{% endif %}

{% if page.author %}
{% include author_bio.html %}
{% endif %}

{% if site.github.is_project_page %}
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{
site.github.repository_name
}}</a> est maintenu par © <a href="{{ site.github.owner_url }}">{{ site.github.owner_name
}}</a>, 2021.</span>
{% endif %}
<span class="site-footer-credits">Cette page <a href="https://jekyllrb.com/">Jekyll</a> est alimentée par <a
href="https://pages.github.com">GitHub
Pages</a>.</span>
</footer>
<div id="main">{{ content }}</div>
<footer class="site-footer">
{% if page.date %}
<p>publié le {{ page.date | date: "%d/%m/%Y, à %R" }}</p>
{% endif %} {% if page.refs %}
<p>sources/references: {{ page.refs }}</p>
{% endif %} {% if page.author %} {% include author_bio.html %} {% endif
%} {% if site.github.is_project_page %}
<span class="site-footer-owner"
><a href="{{ site.github.repository_url }}"
>{{ site.github.repository_name }}</a
>
est maintenu par ©
<a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a
>, 2021.</span
>
{% endif %}
<span class="site-footer-credits"
>Cette page <a href="https://jekyllrb.com/">Jekyll</a> est alimentée
par <a href="https://pages.github.com">GitHub Pages</a>.</span
>
</footer>
</main>
</body>

</body>
</html>
Loading

0 comments on commit 0dcef6c

Please sign in to comment.