Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Express Blog #1519

Merged
merged 47 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
3b316c2
Issue #1483
chrisdel101 Apr 26, 2024
d343054
Issue #1483
chrisdel101 Apr 29, 2024
a823101
Merge branch 'gh-pages' of https://github.com/expressjs/expressjs.com…
chrisdel101 May 4, 2024
bd30f35
Issue #1483
chrisdel101 May 5, 2024
4878e46
Issue #1483
chrisdel101 May 5, 2024
e1196ec
Issue #1483
chrisdel101 May 6, 2024
7eb4ddf
Issue #1483
chrisdel101 May 12, 2024
35d7ff9
Issue #1483
chrisdel101 May 17, 2024
320f196
Issue #1483
chrisdel101 May 17, 2024
53e458f
Issue #1483
chrisdel101 May 17, 2024
b5a62c7
Merge branch 'gh-pages' of https://github.com/expressjs/expressjs.com…
chrisdel101 May 17, 2024
5cbb6fc
Issue #1483
chrisdel101 May 17, 2024
a1c2d6c
Issue #1483
chrisdel101 May 18, 2024
b02b2c7
Issue #1483
chrisdel101 May 18, 2024
8b6f5bb
Merge branch 'gh-pages' of https://github.com/expressjs/expressjs.com…
chrisdel101 May 26, 2024
378457a
PR #1519
chrisdel101 May 26, 2024
665e7c6
PR #1519
chrisdel101 May 26, 2024
ef3d215
PR #1519
chrisdel101 May 27, 2024
a98538a
PR #1519
chrisdel101 May 28, 2024
64d5740
Merge branch 'gh-pages' of https://github.com/expressjs/expressjs.com…
chrisdel101 May 31, 2024
404b9f9
PR #1519
chrisdel101 Jun 3, 2024
b43a74e
PR #1519
chrisdel101 Jun 4, 2024
86e4451
PR #1519
chrisdel101 Jun 4, 2024
18e6cc9
Update css/style.css
chrisdel101 Jun 8, 2024
7f52393
PR #1519
chrisdel101 Jun 8, 2024
28a8461
PR #1519
chrisdel101 Jun 8, 2024
65b09e0
fix typo
chrisdel101 Jun 9, 2024
1c19d57
Update 2024-05-25-welcome-post.md
crandmck Jun 11, 2024
cac8b66
Update 2024-05-25-welcome-post.md
chrisdel101 Jun 11, 2024
4d08811
Merge branch 'blog' of https://github.com/chrisdel101/expressjs.com i…
chrisdel101 Jun 15, 2024
aad4d77
PR #1519
chrisdel101 Jun 15, 2024
f3e142e
Add blog to jekyll config, update blog layout template
crandmck Jun 19, 2024
1ad25dd
PR #1519
chrisdel101 Jun 20, 2024
4a9d70f
PR #1519
chrisdel101 Jun 20, 2024
73d71a3
Merge branch 'gh-pages' of https://github.com/expressjs/expressjs.com…
chrisdel101 Jun 21, 2024
f063e4a
PR #1519
chrisdel101 Jun 23, 2024
08bcb43
Further changes, hopefully close to final
crandmck Jul 3, 2024
473cf8e
Merge branch 'gh-pages' of https://github.com/expressjs/expressjs.com…
chrisdel101 Jul 5, 2024
52a4d65
Merge branch 'blog' of https://github.com/chrisdel101/expressjs.com i…
chrisdel101 Jul 5, 2024
3b3e1ac
Fix issues that Chris raised, etc.
crandmck Jul 5, 2024
1f44f55
Add all posts to blog menu
crandmck Jul 5, 2024
dbe471b
Change link for Blog menu item to latest post
crandmck Jul 6, 2024
b445c21
Merge branch 'blog' of https://github.com/chrisdel101/expressjs.com i…
chrisdel101 Jul 8, 2024
fc061a8
Merge branch 'gh-pages' of https://github.com/expressjs/expressjs.com…
chrisdel101 Jul 15, 2024
24498e9
PR #1519
chrisdel101 Jul 15, 2024
1b52298
PR #1519 Small styles remove dummies
chrisdel101 Jul 17, 2024
bfa2fc7
PR #1519
chrisdel101 Jul 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Site settings

defaults:
-
scope:
path: "_posts"
type: "posts"
values:
layout: "post"
menu: blog
lang: en

# Build settings
markdown: kramdown

Expand Down
12 changes: 12 additions & 0 deletions _includes/blog/posts-menu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div id="blog-side-menu-container">
<h3>
<a href="/{{ page.lang }}/blog/posts">Posts</a>
</h3>
<ul id="blog-side-menu">
{% for post in site.posts %}
<li>
<a href="{{post.url}}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
10 changes: 10 additions & 0 deletions _includes/blog/tags-menu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<ul id="tags-side-menu">
chrisdel101 marked this conversation as resolved.
Show resolved Hide resolved
{% for tag in site.tags %}
<li>{{ tag[0] }}</li>
<ul
{% for post in tag[1] %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
</ul>
17 changes: 17 additions & 0 deletions _includes/header/header-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,23 @@
</li>
</ul>
</li>
<li>
chrisdel101 marked this conversation as resolved.
Show resolved Hide resolved
<ul id="blog-menu" class="menu">
<li><a href="{{site.posts.first.url}}"{% if page.menu == 'blog' %} class="active"{% endif %}>Blog</a>
<ul>
<li>
<a href="{{site.posts.first.url}}">Latest post</a>
</li>
<li>
<a href="/{{ page.lang }}/blog/posts.html">All posts</a>
</li>
<li>
<a href="/{{ page.lang }}/blog/write-post.html">Write a Post</a>
</li>
</ul>
</li>
</ul>
</li>
<!--
<li>
<ul id="changelog-menu" class="menu">
Expand Down
39 changes: 39 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<!---
Copyright (c) 2016 StrongLoop, IBM, and Express Contributors
License: MIT
-->
<html lang="{{ page.lang }}">
{% include head.html %}

<body>

<section class="content">

{% include header/header-{{ page.lang }}.html %}

{% include blog/posts-menu.md %}

<div id="overlay"></div>
<div id="blog-doc" markdown="1">
{% if page.title %}
<h1>{{page.title}}</h1>
{% endif %}
{% if page.sub_title %}
<h2>{{page.sub_title}}</h2>
{% endif %}
<div class="blog-details">
{% if page.author %}
<div class="blog-author">By {{page.author}}</div>
{% endif %}
<div class="blog-date">{{page.date| date: "%d %b %Y" }}</div>
</div>
{{ content }}
</div>
</section>

{% include footer/footer-{{ page.lang }}.html %}

</body>

</html>
18 changes: 18 additions & 0 deletions _posts/2024-07-16-welcome-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Welcome to The Express Blog!
tags: site-admin
author: Rand McKinney and Chris Del
---

Welcome to the new Express blog! The blog is meant to be a primary means of communication for the Express technical committee (TC). While we currently have other channels such as X, LinkedIn, and of course GitHub, there's no authoritative "soapbox" for announcements and general communication.

Initially, the Express blog will be a venue:
- For periodic announcements of new releases, pre-releases, plans, and ongoing work on the project.
- For the Express TC to discuss issues of particular importance to the Express community.
- To highlight security issues or other urgent information.

Eventually, we hope the blog will evolve into a more general communication hub for the entire Express community; for example to share examples, tips, and experiences with the Express ecosystem and other information that's not simply technical documentation or GitHub discussion.

Initially, posts will be written by TC members (potentially collaborating others), mainly because we don't have bandwidth to review general posts from the broader community. Eventually, we would love to open up the blog for broader contributions, but for now the focus is on trying to release Express 5.0, and the reality of an open-source project is that everyone has finite time to contribute.

If you think you have a great idea for a post for future consideration, feel free to pitch the idea! The best approach is to open a new issue, and then after appropriate discussion, open a PR. We've also written up simple [instructions to create a blog post](/en/blog/write-post.html).
66 changes: 44 additions & 22 deletions css/dark-theme.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
:root {
--main_dark_bg: #010409;
--second_dark_bg: #0d1117;
--darker_hover: #171b20;;
--dark_hover: #383838;
--second_dark_hover: #484848;
--dark_text: #e6edf3;
--dark_inner_text: #888888;
--dark_header_text: silver;
--dark_inner_text: grey;
--dark_main_text: #e6edf3;
--dark_bright_text: wheat;
--dark_border: #ddd;
--link: #259dff;
}
#theme-icon-container {
Expand Down Expand Up @@ -40,24 +43,24 @@ html.dark-mode #theme-icon-container .hidden-dark {
display: none;
}
html.dark-mode #theme-icon-container {
color: var(--dark_text);
color: var(--dark_main_text);
background-color: var(--second_dark_bg);
}
html.dark-mode > body {
background: var(--main_dark_bg);
color: var(--dark_text);
color: var(--dark_main_text);
}
html.dark-mode header {
background-color: var(--second_dark_bg);
color: var(--dark_text);
color: var(--dark_main_text);
}
html.dark-mode #logo > a {
color: var(--dark_text);
color: var(--dark_main_text);
}
/* navbar links/drop down menu links */
html.dark-mode #navbar ul#navmenu li a,
html.dark-mode #navbar ul#navmenu li.dropit-trigger a {
color: var(--dark_text);
color: var(--dark_main_text);
}
/* first drop down link - some js is adding current class */
html.dark-mode #navbar ul#navmenu li a.current {
Expand All @@ -82,12 +85,12 @@ html.dark-mode #navbar > span.algolia-autocomplete > input {
}
html.dark-mode #navbar > span.algolia-autocomplete > input,
html.dark-mode #navbar > span.algolia-autocomplete > input::placeholder {
color: var(--dark_text);
color: var(--dark_main_text);
}
/* search bar french */
:lang(fr) html.dark-mode #navbar ul#navmenu > span.algolia-autocomplete > input {
background-color: var(--second_dark_bg);
color: var(--dark_text);
color: var(--dark_main_text);
}
/* search bar fixes uz, ru, de, fr */
:lang(uz) span.algolia-autocomplete {
Expand All @@ -108,7 +111,7 @@ html.dark-mode #navbar > span.algolia-autocomplete > input::placeholder {
max-width: 100%;
}
html.dark-mode #navbar ul#navmenu > span.algolia-autocomplete > input::placeholder {
color: var(--dark_text);
color: var(--dark_main_text);
}
html.dark-mode div#overlay {
opacity: 0.5;
Expand All @@ -124,13 +127,13 @@ html.dark-mode div#overlay {
/* mobile menu inner links hover */
html.dark-mode div#navbar .menu ul.dropit-submenu a:hover {
background: var(--second_dark_hover);
color: var(--dark_text) !important;
color: var(--dark_main_text) !important;
}
}
html.dark-mode .doc-box.doc-info,
html.dark-mode .doc-box.doc-notice,
html.dark-mode .doc-box.doc-warn {
color: var(--dark_text);
color: var(--dark_main_text);
background: var(--main_dark_bg);
}
html.dark-mode .doc-box.doc-info pre.language-javascript {
Expand All @@ -142,14 +145,14 @@ html.dark-mode h3,
html.dark-mode code,
html.dark-mode em,
html.dark-mode strong {
color: var(--dark_text);
color: var(--dark_main_text);
}
html.dark-mode pre {
background: var(--second_dark_bg);
}
/* index.html */
html.dark-mode #description .express > a {
color: var(--dark_text);
color: var(--dark_main_text);
}
html.dark-mode #install-command {
background: var(--main_dark_bg);
Expand All @@ -158,7 +161,7 @@ html.dark-mode #announcements {
background: var(--main_dark_bg);
}
html.dark-mode #boxes div > h3 {
color: var(--dark_text);
color: var(--dark_main_text);
}
/* basic-routing.htlm */
html.dark-mode [class*='language-'] {
Expand All @@ -171,11 +174,11 @@ html.dark-mode .token.operator {
/* debugging.htlm */
html.dark-mode table tr:first-child th {
background-color: var(--second_dark_bg);
color: var(--dark_text);
color: var(--dark_main_text);
}
/* api pages */
html.dark-mode #menu li > * {
color: var(--dark_text);
color: var(--dark_main_text);
}
html.dark-mode #menu li ul li > em {
color: var(--dark_header_text);
Expand All @@ -197,14 +200,14 @@ html.dark-mode .ds-dropdown-menu .ds-dataset-1 {
}
html.dark-mode .ds-dropdown-menu .ds-dataset-1 .ds-suggestion a {
background-color: var(--second_dark_bg);
color: var(--dark_text);
color: var(--dark_main_text);
}
html.dark-mode
.ds-dropdown-menu
.ds-dataset-1
.ds-suggestions
.algolia-docsearch-suggestion--category-header {
color: var(--dark_text);
color: var(--dark_main_text);
}
html.dark-mode
.ds-dropdown-menu
Expand All @@ -220,15 +223,15 @@ html.dark-mode
.ds-suggestions
.algolia-docsearch-suggestion--wrapper
.algolia-docsearch-suggestion--title {
color: var(--dark_text);
color: var(--dark_main_text);
}
html.dark-mode
.ds-dropdown-menu
.ds-dataset-1
.ds-suggestions
.algolia-docsearch-suggestion--wrapper
.algolia-docsearch-suggestion--text {
color: var(--dark_text);
color: var(--dark_main_text);
}
html.dark-mode
.ds-dropdown-menu
Expand All @@ -242,4 +245,23 @@ html.dark-mode .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--title,
html.dark-mode .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content{
background-color: var(--dark_hover);
}

html.dark-mode .blog-post{
background-color: initial;
border: 1px solid var(--dark_border);
transition: 0.3s;
}
html.dark-mode .blog-post:hover{
background-color: var(--darker_hover);
}
html.dark-mode .blog-title > a{
color: var(--dark_main_text);
}
html.dark-mode .blog-excerpt{
color: var(--dark_bright_text);
}
html.dark-mode #blog-side-menu-container h3 a{
color: var(--dark_header_text);
}
html.dark-mode #blog-side-menu > li > a{
color: var(--dark_inner_text);
}
Loading
Loading