Skip to content

Commit 1d2847e

Browse files
committed
Initial commit
0 parents  commit 1d2847e

392 files changed

Lines changed: 33026 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
source "https://rubygems.org"
2+
3+
gem "github-pages", "~> 231", group: :jekyll_plugins
4+
5+
group :jekyll_plugins do
6+
gem "jekyll-redirect-from"
7+
gem "jekyll-paginate"
8+
gem "jekyll-feed"
9+
gem "jekyll-sitemap"
10+
end
11+

_config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
title: D Language Blog Archive
2+
description: The official blog for the D Programming Language.
3+
4+
url: "https://dlang.github.io"
5+
baseurl: "/blog.dlang.org/"
6+
7+
permalink: /:slug/
8+
9+
markdown: kramdown
10+
kramdown:
11+
syntax_highlighter_opts:
12+
disable: true
13+
14+
plugins:
15+
- jekyll-paginate
16+
- jekyll-feed
17+
- jekyll-sitemap
18+
- jekyll-redirect-from
19+
20+
paginate: 10
21+
paginate_path: "/page/:num/"
22+
23+
feed:
24+
path: "/feed.xml"

_includes/header.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<header class="dlf-header">
2+
<h1>The D Blog</h1>
3+
<p style="color: #666; font-size: 1.1em; margin: 5px 0 0 0; border-bottom: none !important; padding-bottom: 0 !important;">
4+
The official blog for the D Programming Language.
5+
</p>
6+
<nav class="nav-bar">
7+
<ul>
8+
<li><a href="{{ '/' | relative_url }}">D HOME</a></li>
9+
<li><a href="https://forum.dlang.org/">D FORUMS</a></li>
10+
<li><a href="https://dlang.org/donate.html">DONATE</a></li>
11+
<li><a href="https://store.dlang.org/">SHOP</a></li>
12+
</ul>
13+
</nav>
14+
</header>

_includes/post-meta.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% assign item = include.item | default: page %}
2+
<header>
3+
<h2 style="font-size: 2.6em; font-weight: bold; margin-bottom: 15px;">
4+
{% if include.is_list %}
5+
<a href="{{ item.url | relative_url }}" style="color: #000; text-decoration: none;">{{ item.title }}</a>
6+
{% else %}
7+
{{ item.title }}
8+
{% endif %}
9+
</h2>
10+
11+
<p>
12+
{{ item.date | date: "%b %-d, %Y" }}{% if item.author %} • {{ item.author }}{% endif %}
13+
{% if item.categories.size > 0 %}
14+
15+
{% for category in item.categories %}
16+
<a href="{{ '/search' | relative_url }}?q={{ category | url_encode }}" class="tag-link">#{{ category | xml_decode }}</a>{% unless forloop.last %}, {% endunless %}
17+
{% endfor %}
18+
{% endif %}
19+
</p>
20+
</header>

_includes/sidebar.html

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<div class="sidebar-section" style="margin-bottom: 30px;">
2+
<form action="{{ '/search' | relative_url }}" method="get" style="display: flex; align-items: stretch; gap: 0; width: 100%; max-width: 280px; border: 1px solid #ccc; border-radius: 3px; overflow: hidden; margin-bottom: 15px;">
3+
<input type="text" name="q" placeholder="Search..."
4+
style="flex: 1; padding: 8px 10px; border: none; font-size: 0.95em; outline: none; color: #333;">
5+
<button type="submit" style="padding: 0 12px; cursor: pointer; background: #f4f4f4; border: none; border-left: 1px solid #ccc; display: flex; align-items: center; justify-content: center;">
6+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
7+
<circle cx="11" cy="11" r="8"></circle>
8+
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
9+
</svg>
10+
</button>
11+
</form>
12+
13+
<div style="display: flex; flex-direction: column; gap: 12px; padding-left: 2px;">
14+
<a href="{{ '/feed.xml' | relative_url }}" style="text-decoration: none; color: #b03931; font-weight: bold; font-size: 0.9em; display: flex; align-items: center; gap: 8px;">
15+
<span style="background: #b03931; color: white; padding: 2px 6px; border-radius: 3px; font-size: 0.7em;">RSS</span> RSS FEED
16+
</a>
17+
<a href="https://x.com/d_programming" target="_blank" style="text-decoration: none; color: #666; font-size: 0.9em; display: inline-flex; align-items: center; gap: 8px;">
18+
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
19+
Follow @D_Programming
20+
</a>
21+
</div>
22+
</div>
23+
24+
<div class="sidebar-section" style="margin-bottom: 35px;">
25+
<h4 style="font-size: 0.85em; letter-spacing: 1px; color: #888; border-bottom: 1px solid #eee; padding-bottom: 8px; margin-bottom: 15px; text-transform: uppercase;">Recent Articles</h4>
26+
<ul style="list-style: none; padding: 0; margin: 0;">
27+
{% for post in site.posts limit:8 %}
28+
<li style="margin-bottom: 14px;">
29+
<a href="{{ post.url | relative_url }}" style="color: #b03931; text-decoration: none; font-weight: 500; font-size: 0.95em; line-height: 1.3; display: block;">
30+
{{ post.title }}
31+
</a>
32+
</li>
33+
{% endfor %}
34+
</ul>
35+
</div>
36+
37+
<div class="sidebar-section">
38+
<div style="background: white; padding: 5px; border: 1px solid #eee; border-radius: 4px;" class="banner-shadow">
39+
<a href="https://dlang.org/shop.html" style="display: block;">
40+
<img src="{{ '/assets/images/do-it-in-d-banner.png' | relative_url }}" alt="Do it in D" style="width: 100%; display: block; border-radius: 2px;">
41+
</a>
42+
</div>
43+
<p style="font-size: 0.85em; color: #666; margin: 15px 0 25px; line-height: 1.4;">
44+
Support the D Language Foundation at the <a href="https://store.dlang.org/" style="color: #b03931; font-weight: bold; text-decoration: none;">DO IT IN D shop!</a>
45+
</p>
46+
<div style="text-align: center; border-top: 1px dashed #ddd; padding-top: 20px;">
47+
<a href="https://dlang.org/donate.html">
48+
<img src="{{ '/assets/images/donatenew.png' | relative_url }}" alt="Donate" style="max-width: 140px;">
49+
</a>
50+
<p style="font-size: 0.85em; color: #666; margin-top: 10px;">
51+
Or make a <a href="https://dlang.org/donate.html" style="color: #b03931; font-weight: bold; text-decoration: none;">direct donation</a>.
52+
</p>
53+
</div>
54+
</div>

_layouts/default.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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.0, maximum-scale=5.0">
6+
<title>{% if page.title %}{{ page.title }} | The D Blog{% else %}The D Blog{% endif %}</title>
7+
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
8+
9+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css">
10+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
11+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/d.min.js"></script>
12+
13+
<meta name="theme-color" content="#b03931">
14+
{% feed_meta %}
15+
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
16+
17+
<link rel="icon" href="{{ '/assets/images/favicon-192.png' | relative_url }}" sizes="192x192" />
18+
<link rel="apple-touch-icon" href="{{ '/assets/images/apple-touch-icon.png' | relative_url }}" />
19+
<link rel="icon" href="{{ '/assets/images/favicon-32.png' | relative_url }}" sizes="32x32" />
20+
<meta name="msapplication-TileImage" content="{{ '/assets/images/favicon-270.png' | relative_url }}" />
21+
<link rel="manifest" href="{{ '/manifest.json' | relative_url }}">
22+
</head>
23+
<body>
24+
25+
<div class="blog-container">
26+
<header class="dlf-header">
27+
<h1>The D Blog</h1>
28+
<p style="color: #666; font-size: 1.1em; margin: 5px 0 0 0; border: none !important; padding: 0 !important;">The official blog for the D Programming Language.</p>
29+
<nav class="nav-bar">
30+
<ul>
31+
<li><a href="{{ '/' | relative_url }}">D HOME</a></li>
32+
<li><a href="https://forum.dlang.org/">D FORUMS</a></li>
33+
<li><a href="https://dlang.org/donate.html">DONATE</a></li>
34+
<li><a href="https://store.dlang.org/">SHOP</a></li>
35+
</ul>
36+
</nav>
37+
</header>
38+
39+
<div class="main-grid">
40+
<main class="article-col" style="{% if page.hide_sidebar %}flex: 1; width: 100%; max-width: 100%;{% endif %}">
41+
{{ content }}
42+
</main>
43+
44+
{% unless page.hide_sidebar %}
45+
<aside class="sidebar-col">
46+
{% include sidebar.html %}
47+
</aside>
48+
{% endunless %}
49+
</div>
50+
</div>
51+
52+
<script>
53+
hljs.configure({ languages: ['d', 'cpp', 'python', 'bash', 'rust', 'julia', 'chapel', 'haskell'] });
54+
hljs.highlightAll();
55+
</script>
56+
</body>
57+
</html>

_layouts/post.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: default
3+
---
4+
<article class="post">
5+
{% include post-meta.html %}
6+
7+
<div class="post-content" style="line-height: 1.6; font-size: 1.1em; color: #222;">
8+
{{ content }}
9+
</div>
10+
11+
<div class="related-posts" style="margin-top: 60px; padding-top: 30px; border-top: 2px solid #eee;">
12+
<h3 style="font-size: 1.3em; margin-bottom: 20px;">Related Articles</h3>
13+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;">
14+
{% assign maxRelated = 3 %}
15+
{% assign relatedCount = 0 %}
16+
{% for post in site.posts %}
17+
{% if post.url != page.url %}
18+
{% assign match = false %}
19+
{% for cat in post.categories %}{% if page.categories contains cat %}{% assign match = true %}{% endif %}{% endfor %}
20+
{% if match and relatedCount < maxRelated %}
21+
<div style="background: #fdfdfd; padding: 15px; border: 1px solid #eee; border-radius: 4px;">
22+
<h4 style="margin: 0 0 10px 0; font-size: 1rem;">
23+
<a href="{{ post.url | relative_url }}" style="color: #b03931; text-decoration: none;">{{ post.title }}</a>
24+
</h4>
25+
<small style="color: #888;">{{ post.date | date: "%b %d, %Y" }}</small>
26+
</div>
27+
{% assign relatedCount = relatedCount | plus: 1 %}
28+
{% endif %}
29+
{% endif %}
30+
{% endfor %}
31+
</div>
32+
</div>
33+
</article>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
author: DBlogAdmin
3+
comments: false
4+
date: 2016-06-03 19:07:50+00:00
5+
layout: post
6+
link: https://dlang.org/blog/2016/06/03/recent-d-foundation-activities/
7+
slug: recent-d-foundation-activities
8+
title: Recent D Foundation Activities
9+
wordpress_id: 10
10+
categories:
11+
- D Foundation
12+
- News
13+
permalink: /recent-d-foundation-activities/
14+
redirect_from: /2016/06/03/recent-d-foundation-activities/
15+
---
16+
17+
Welcome to the official D Blog!
18+
19+
My name is Michael Parker. With the launching of The D Blog, I've been fortunate enough to land the role of Blog Author, which means I'll be making most of the posts around here. This blog will become your source for DLang news, inside looks at projects in the D community, and updates on happenings behind the scenes of language development and at the D Foundation. Consider it a complement to Adam Ruppe's excellent weekly summary of D goings on, [This Week in D](http://arsdnet.net/this-week-in-d/). For this inaugural post, I've got three news items to pass along about some of the ways the D Foundation is working to promote D.
20+
21+
Lately, Andrei Alexandrescu has been doing a lot of talking in places other than conference stages. For one, he's been having discussions with the [Tech Lounge Foundation](http://tech-lounge.ro/) in Romania, an organization which, among other endeavors, works to help CS and engineering students and aspiring professionals move beyond their education. Specifically, the D Foundation is interviewing recent graduates and current graduate-level students to explore ideas for high-impact academic and industrial D projects. Not only could this result in a killer project or two for D, it could bring new faces into the community.
22+
23+
A second line of communication is active between Andrei and the [University “Politehnica” of Bucharest](http://www.upb.ro/en/), where he has had talks with the university's Vice President Corneliu Burileanu and Director of the Telecommunications Department Eduard-Cristian Popovici. The focus of these discussions has been on finding opportunities for the university and the D Foundation to collaborate. Potential areas of cooperation in this realm include D-centric courses and joint projects developed with D.
24+
25+
Moving out of Romania and up into Scandanavia, Andrei was scheduled to [host a D workshop](http://ndcoslo.com/workshop/the-d-language-or-the-art-of-going-meta/) on June 6 at NDC Oslo. That has now been canceled because of a scheduling conflict. Instead, he will be presenting a day-long consulting session at Cisco Norway. He will also be presenting a talk on D during lunch. All proceeds from the event will go straight to the D Foundation.
26+
27+
If you have any feedback on the blog theme, I would love to see it over [in the forums](http://forum.dlang.org/). Be sure to keep an eye on this space, or [subscribe to the feed](http://dlang.org/blog/index.php/feed/), so you can stay up to date. And if you maintain a D project large or small, be on the lookout for an email from me. I'm getting ready to pick a target for the D Blog's first project highlight.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
author: DBlogAdmin
3+
comments: false
4+
date: 2016-06-07 13:55:31+00:00
5+
layout: post
6+
link: https://dlang.org/blog/2016/06/07/the-d-website-and-you/
7+
slug: the-d-website-and-you
8+
title: The D Website and You
9+
wordpress_id: 15
10+
categories:
11+
- Community
12+
permalink: /the-d-website-and-you/
13+
redirect_from: /2016/06/07/the-d-website-and-you/
14+
---
15+
16+
For those who have been around the D community for a long time, it's all too easy to look at the website we have today and think how much better it is than anything we've had in the past. It's miles ahead. Unfortunately, that perspective doesn't lend itself well to recognizing actual problems that newcomers might face when visiting the site for the first time. Their point of reference is quite often the current website of another language, making their perspective on what does and doesn't work very different.
17+
18+
It goes without saying that D is primarily a community-driven language. It doesn't have a large company with a dedicated team of paid workers pushing its development. The website is one of the areas where this has a major impact. Its quality is almost entirely dependent on community contributions. Quite often, it's recent additions to the community, those who have fresh eyes, who step up and push for improvements to the site. Several have been implemented in the past few weeks, thanks to community members who saw a void and took the initiative to get it filled.
19+
20+
André Stein put together an interactive tour of the language and set it up online. Now, that is part of the official site as [tour.dlang.org](http://tour.dlang.org/), available from the menu bar at the top of most dlang.org pages by clicking on [Learn](http://tour.dlang.org/). This is a tremendous improvement over what existed before, when users had to browse through different link categories to find the resources they needed, none of which were such a quick introduction to the language.
21+
22+
Sebastian Wilzbach has initiated a number of additions and improvements to the website in the short time he has been active in the community. One such addition is [a page listing a number of organizations ](http://dlang.org/orgs-using-d.html)currently using D. Before, this information was only available on the [Wiki](https://wiki.dlang.org/). Now, it's a first-class citizen of dlang.org.
23+
24+
Sebastian also put forth a suggestion for a major change in how the website is deployed. Previously, changes to the site had to be manually deployed, a process which caused a delay between when the changes were made and when they became visible. This led to a situation where news on the front page could become horribly outdated. Sebastian's suggestion was approved and now updates to the site are deployed automatically when they are merged.
25+
26+
Another user, Ozan Nurettin Süel, was looking for the D Foundation website and coming up empty. A post about it in the forum led to [a new page](http://dlang.org/foundation.html) being added to the site. Anyone who wants to learn about the Foundation and, once memberships are open, how to join now has somewhere to go for that information under the dlang.org umbrella.
27+
28+
As Andrei said in [his DConf keynote](http://dconf.org/2016/talks/alexandrescu.html) this year, the first five minutes become the next five years. The website plays a major role in that first five minutes. It's up to us as a community to ensure that it meets the needs of potential new users instead of getting in their way. Small changes can often have a big impact. Whether you are an old timer or a newcomer, if you see something that is missing from the site, or have an idea for how to improve it, [please let us know](https://forum.dlang.org/). If you notice broken links, incorrect text, or other such issues, [please report them](https://issues.dlang.org/). Only then can dlang.org evolve to fully meet the needs of those coming to it for the first time.

0 commit comments

Comments
 (0)