Skip to content

Commit ffd2af7

Browse files
committed
Custom theme
Signed-off-by: mgoin <mgoin64@gmail.com>
1 parent 3167c6d commit ffd2af7

File tree

7 files changed

+391
-313
lines changed

7 files changed

+391
-313
lines changed

_config.yml

Lines changed: 11 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,64 +5,26 @@ google_analytics: G-9C5R3JR3QS
55
url: https://blog.vllm.ai
66
logo: /assets/logos/vllm-logo-only-light.png
77

8-
# The `>` after `description:` means to ignore line-breaks until next key.
9-
# If you want to omit the line-break after the end of text, use `>-` instead.
108
description: >
119
vLLM is a fast and easy-to-use library for LLM inference and serving.
1210
1311
# Build settings
14-
15-
remote_theme: jekyll/minima@5ce4006d175e6e5278bb63a0aad1a85e3bf2370b
16-
1712
plugins:
1813
- jekyll-feed
1914
- jekyll-seo-tag
2015
- jekyll-gfm-admonitions
2116

22-
# Theme-specific settings
23-
24-
minima:
25-
skin: auto
26-
27-
# Minima date format.
28-
# Refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this.
29-
#
30-
# date_format: "%b %-d, %Y"
31-
32-
# Generate social links in footer.
33-
#
34-
social_links:
35-
- title: vLLM repository on GitHub
36-
icon: github
37-
url: "https://github.com/vllm-project/vllm"
38-
- title: vLLM on X (formerly Twitter)
39-
icon: x-twitter
40-
url: "https://x.com/vllm_project"
41-
- title: vLLM on LinkedIn
42-
icon: linkedin
43-
url: "https://www.linkedin.com/company/vllm-project"
44-
# - { platform: devto, user_url: "https://dev.to/jekyll" }
45-
# - { platform: dribbble, user_url: "https://dribbble.com/jekyll" }
46-
# - { platform: facebook, user_url: "https://www.facebook.com/jekyll" }
47-
# - { platform: flickr, user_url: "https://www.flickr.com/photos/jekyll" }
48-
# - { platform: google_scholar, user_url: "https://scholar.google.com/citations?user=qc6CJjYAAAAJ" }
49-
# - { platform: instagram, user_url: "https://www.instagram.com/jekyll" }
50-
# - { platform: keybase, user_url: "https://keybase.io/jekyll" }
51-
# - { platform: microdotblog, user_url: "https://micro.blog/jekyll" }
52-
# - { platform: pinterest, user_url: "https://www.pinterest.com/jekyll" }
53-
# - { platform: stackoverflow, user_url: "https://stackoverflow.com/users/1234567/jekyll" }
54-
# - { platform: telegram, user_url: "https://t.me/jekyll" }
55-
# - { platform: twitter, user_url: "https://twitter.com/jekyllrb" }
56-
# - { platform: youtube, user_url: "https://www.youtube.com/jekyll" }
57-
58-
# If you want to link only specific pages in your header, uncomment this and add the path to the pages in
59-
# order as they should show up.
60-
#
61-
header_pages:
62-
- index.md
63-
64-
# Show excerpts on the homepage
65-
show_excerpts: true
17+
# Social links for footer
18+
social_links:
19+
- title: GitHub
20+
url: "https://github.com/vllm-project/vllm"
21+
icon: github
22+
- title: X
23+
url: "https://x.com/vllm_project"
24+
icon: x
25+
- title: LinkedIn
26+
url: "https://www.linkedin.com/company/vllm-project"
27+
icon: linkedin
6628

6729
# Excerpt settings
6830
excerpt_separator: <!--more-->

_includes/custom-head.html

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
<link rel="stylesheet" href="{{ '/assets/css/custom.css' | relative_url }}">
2-
31
{% if page.math %}
42
<script>
5-
MathJax = {
6-
tex: {
7-
inlineMath: [['$', '$'], ['\\(', '\\)']],
8-
displayMath: [['$$', '$$'], ['\\[', '\\]']]
9-
}
10-
};
11-
</script>
12-
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
3+
MathJax = {
4+
tex: {
5+
inlineMath: [['$', '$'], ['\\(', '\\)']],
6+
displayMath: [['$$', '$$'], ['\\[', '\\]']]
7+
}
8+
};
139
</script>
10+
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
1411
{% endif %}

_layouts/default.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
{% seo %}
7+
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
8+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | relative_url }}">
9+
{% if site.google_analytics %}
10+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
11+
<script>
12+
window.dataLayer = window.dataLayer || [];
13+
function gtag(){dataLayer.push(arguments);}
14+
gtag('js', new Date());
15+
gtag('config', '{{ site.google_analytics }}');
16+
</script>
17+
{% endif %}
18+
{% include custom-head.html %}
19+
</head>
20+
<body>
21+
<header class="site-header">
22+
<div class="header-content">
23+
<a href="{{ '/' | relative_url }}" class="site-logo">
24+
<img src="{{ site.logo | relative_url }}" alt="{{ site.title }}" width="36" height="36">
25+
<span class="site-title">{{ site.title }}</span>
26+
</a>
27+
<nav class="site-nav">
28+
<a href="https://docs.vllm.ai" target="_blank" rel="noopener">Docs</a>
29+
<a href="https://github.com/vllm-project/vllm" target="_blank" rel="noopener">GitHub</a>
30+
</nav>
31+
</div>
32+
</header>
33+
34+
<main class="site-main">
35+
{{ content }}
36+
</main>
37+
38+
<footer class="site-footer">
39+
<div class="footer-content">
40+
<div class="footer-links">
41+
{% for link in site.social_links %}
42+
<a href="{{ link.url }}" target="_blank" rel="noopener" title="{{ link.title }}">{{ link.title }}</a>
43+
{% endfor %}
44+
</div>
45+
<p class="footer-copyright">{{ site.author.name }}</p>
46+
</div>
47+
</footer>
48+
</body>
49+
</html>

_layouts/home.html

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,38 @@
44

55
<div class="home">
66
<header class="home-header">
7-
<h1 class="home-title">{{ site.title | escape }}</h1>
8-
<p class="home-description">{{ site.description | escape }}</p>
7+
<h1 class="home-title">{{ site.title }}</h1>
8+
<p class="home-description">{{ site.description }}</p>
99
</header>
1010

11-
{%- if site.posts.size > 0 -%}
11+
{% if site.posts.size > 0 %}
1212
<div class="post-grid">
13-
{%- for post in site.posts -%}
13+
{% for post in site.posts %}
1414
<article class="post-card">
1515
<a href="{{ post.url | relative_url }}" class="post-card-link">
16-
<div class="post-card-image{% unless post.image %} post-card-image-placeholder{% endunless %}">
17-
{%- if post.image -%}
16+
<div class="post-card-image{% unless post.image %} post-card-placeholder{% endunless %}">
17+
{% if post.image %}
1818
<img src="{{ post.image | relative_url }}" alt="" loading="lazy">
19-
{%- else -%}
20-
<svg viewBox="0 0 100 80" xmlns="http://www.w3.org/2000/svg">
21-
<polygon points="15,70 35,15 50,50" fill="#E5A733"/>
22-
<polygon points="50,50 65,8 85,70" fill="#6FA8DC"/>
19+
{% else %}
20+
<svg viewBox="0 0 100 80" fill="none" xmlns="http://www.w3.org/2000/svg">
21+
<polygon points="18,68 38,18 52,48" fill="#E5A733"/>
22+
<polygon points="52,48 66,12 82,68" fill="#6FA8DC"/>
2323
</svg>
24-
{%- endif -%}
24+
{% endif %}
2525
</div>
26-
<div class="post-card-content">
26+
<div class="post-card-body">
2727
<h2 class="post-card-title">{{ post.title | escape }}</h2>
28-
<div class="post-card-meta">
29-
{%- if post.author -%}
30-
<span class="post-card-author">{{ post.author }}</span>
31-
{%- endif -%}
32-
<time class="post-card-date" datetime="{{ post.date | date_to_xmlschema }}">
33-
{{ post.date | date: "%b %-d, %Y" }}
34-
</time>
35-
</div>
36-
{%- if post.excerpt -%}
37-
<p class="post-card-excerpt">{{ post.excerpt | strip_html | truncatewords: 25 }}</p>
38-
{%- endif -%}
28+
<p class="post-card-meta">
29+
{% if post.author %}<span class="post-card-author">{{ post.author }}</span>{% endif %}
30+
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %-d, %Y" }}</time>
31+
</p>
32+
{% if post.excerpt %}
33+
<p class="post-card-excerpt">{{ post.excerpt | strip_html | truncatewords: 24 }}</p>
34+
{% endif %}
3935
</div>
4036
</a>
4137
</article>
42-
{%- endfor -%}
38+
{% endfor %}
4339
</div>
44-
{%- endif -%}
40+
{% endif %}
4541
</div>

_layouts/post.html

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,16 @@
22
layout: default
33
---
44

5-
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5+
<article class="post">
66
<header class="post-header">
7-
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8-
<div class="post-meta">
9-
{%- if page.author -%}
10-
<span class="post-author" itemprop="author" itemscope itemtype="http://schema.org/Person">
11-
<span itemprop="name">{{ page.author }}</span>
12-
</span>
13-
<span class="post-meta-sep">&middot;</span>
14-
{%- endif -%}
15-
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
16-
{{ page.date | date: "%B %-d, %Y" }}
17-
</time>
18-
</div>
7+
<h1 class="post-title">{{ page.title | escape }}</h1>
8+
<p class="post-meta">
9+
{% if page.author %}<span class="post-author">{{ page.author }}</span> · {% endif %}
10+
<time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %-d, %Y" }}</time>
11+
</p>
1912
</header>
2013

21-
<div class="post-content e-content" itemprop="articleBody">
14+
<div class="post-content">
2215
{{ content }}
2316
</div>
24-
25-
<footer class="post-footer">
26-
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
27-
</footer>
2817
</article>

_sass/minima/custom-styles.scss

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)