Skip to content

Commit c8fddf6

Browse files
committed
Merge branch 'master' into feature/ytx-blog-post
2 parents 41ed0d9 + 3e23e1b commit c8fddf6

File tree

36 files changed

+625
-72
lines changed

36 files changed

+625
-72
lines changed

.github/copilot-instructions.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# GitHub Copilot Instructions
2+
3+
## Project Overview
4+
This is a Jekyll-based static blog for solrevdev.com using the Hyde theme with custom modifications.
5+
6+
## Key Development Guidelines
7+
8+
### Blog Posts
9+
- Located in `_posts/` directory
10+
- Use Jekyll front matter with these fields:
11+
- `layout: post`
12+
- `title: [Post Title]`
13+
- `description: [SEO description]`
14+
- `summary: [Brief summary]`
15+
- `cover_image: [/images/filename.ext]` (optional)
16+
- `tags: [array of tags]`
17+
18+
### Cover Images
19+
- Store in `/images/` directory
20+
- Use `cover_image: /images/filename.ext` in front matter
21+
- Supported formats: SVG (preferred), PNG, JPG - all handled gracefully
22+
- Size handling: CSS automatically scales images responsively
23+
- Recommended dimensions: 800x400px aspect ratio
24+
- Keep file size under 50KB for performance
25+
- Optional field - posts without cover images work perfectly
26+
27+
### Local Development Image Issues
28+
**Important**: During local development, images may not display properly due to URL resolution:
29+
30+
**Solutions**:
31+
1. **Use Jekyll server**: `bundle exec jekyll serve --host 127.0.0.1 --port 4000`
32+
2. **Use localhost domain**: `http://localhost:4000` or `http://127.0.0.1:4000`
33+
3. **Relative paths work**: with file:// protocol for testing
34+
35+
**Don't use**:
36+
- Absolute paths (`/images/...`) with file:// protocol - will fail
37+
- localhost URLs without running Jekyll server
38+
39+
### Styling
40+
- Custom styles in `public/css/custom.scss`
41+
- Uses SCSS with Jekyll compilation
42+
- Responsive breakpoints: 768px (tablet), 480px (mobile)
43+
- Cover images have hover effects and responsive sizing
44+
45+
### File Structure
46+
```
47+
├── _posts/ # Blog posts
48+
├── _layouts/ # Jekyll layouts
49+
├── _includes/ # Jekyll includes
50+
├── public/css/ # SCSS stylesheets
51+
├── images/ # Blog post images
52+
├── claude.md # Claude development notes
53+
└── .github/ # GitHub configuration
54+
```
55+
56+
### Testing
57+
- Test responsive design at 375px (mobile), 768px (tablet), 1200px+ (desktop)
58+
- Cover images scale automatically across all device sizes
59+
- Posts without cover images display normally

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@
6969
"Newtonsoft",
7070
"noindex",
7171
"nokogiri",
72+
"NOLOGO",
7273
"nuget",
7374
"nupkg",
7475
"omnisharp",
76+
"OPTOUT",
7577
"Permalinks",
7678
"picklist",
7779
"postbacks",
@@ -84,6 +86,7 @@
8486
"Rakefile",
8587
"rebranded",
8688
"Remmina",
89+
"rohith",
8790
"Roslynator",
8891
"rubygems",
8992
"s",

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ version: "2.1.0"
4646

4747
github: [metadata]
4848

49-
exclude: ["Rakefile", "vendor"]
49+
exclude: ["Rakefile", "vendor", "claude.md", "CLAUDE.md", "warp.md", "WARP.md", "agent.md", "AGENT.md", "agents.md", "AGENTS.md"]
5050

5151
# Social Sharing
5252
facebook_app_id: "1213637668669023"

_layouts/post.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
---
55

66
<div class="post">
7+
{% if page.cover_image %}
8+
<div class="post-cover-image">
9+
<img src="{{ site.baseurl }}{{ page.cover_image }}" alt="{{ page.title }}" class="cover-image">
10+
</div>
11+
{% endif %}
712
<h1 class="post-title">{{ page.title }}</h1>
813
<span class="post-date">{{ page.date | date_to_string }}</span>
914
{{ content }}

_posts/2018-12-20-using-system-commandline-to-build-a-command-line-application-and-nuget-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Program
5656
```
5757

5858

59-
```powershell
59+
```bash
6060
dotnet run -- --int-option 123
6161
The value for --int-option is: 0
6262
The value for --bool-option is: False

_posts/2019-01-09-ubuntu-18.10-netcore-sdk-2.2-ubuntu-package-not-found.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ I have just upgraded my laptop from Ubuntu 18.04 to 18.10 so that I could check
1717

1818
However despite following the instructions from here: <https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-2.2.102>
1919

20-
```powershell
20+
```bash
2121
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
2222
sudo dpkg -i packages-microsoft-prod.deb
2323

@@ -31,7 +31,7 @@ I would then receive a package not found error on the ```sudo apt-get install do
3131

3232
The fix seems to be to copy these manually.
3333

34-
```powershell
34+
```bash
3535
wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list
3636
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
3737
sudo apt update

_posts/2019-03-11-host-aspnetcore-on-iis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ First I published a last known good version of my application by creating a new
1818

1919
The idea being I can deploy from this branch while I investigated and once fixed I could delete the branch.
2020

21-
```powershell
21+
```bash
2222
git reset e64c51bf1c3bdde753ff2d8fd8b18d4d902b8b5b --hard
2323
```
2424

_posts/2019-05-13-imported-project-microsoft-common-props-not-found.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ There was no such problem on macOS or Windows however as I like to write code on
2626

2727
It's a bug that I [raised over on GitHub](https://github.com/OmniSharp/omnisharp-vscode/issues/3049) and while the full logs and environment details are over there in more detail, for brevity I will show what I believe is the main problem here:
2828

29-
```powershell
29+
```text
3030
[warn]: OmniSharp.MSBuild.ProjectManager
3131
Failed to load project file '/home/solrevdev/Code/scratch/testconsole/testconsole.csproj'.
3232
/home/solrevdev/Code/scratch/testconsole/testconsole.csproj(1,1)
@@ -41,7 +41,7 @@ That was to re-install or update my version of Mono from the official [download
4141

4242
The instructions for doing this I borrowed and adapted are from there and are as follows:
4343

44-
```powershell
44+
```bash
4545
sudo apt install gnupg ca-certificates
4646
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
4747
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

_posts/2019-12-07-unable-to-locate-package-dotnet-sdk-3.1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ However, for Linux each release of [dotnetcore](https://dotnet.microsoft.com/dow
1919

2020
If you follow the [instructions](https://docs.microsoft.com/en-gb/dotnet/core/install/linux-package-manager-ubuntu-1904]) from Microsoft you will get the following error message:
2121

22-
```powershell
22+
```text
2323
Unable to locate package dotnet-sdk-3.1
2424
```
2525

2626
The issue is that page targets Ubuntu version 19.04 and I am running Ubuntu version 19.10 (Eoan Ermine).
2727

2828
So, If you are me from the future wanting to know how to get the latest version installed here is what you need to do:
2929

30-
```powershell
30+
```bash
3131
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
3232
sudo apt-add-repository https://packages.microsoft.com/ubuntu/19.10/prod
3333
sudo apt-get update

_posts/2019-12-10-HTTP-Error-500.30-ANCM-In-Process-Start-Failure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ I host an [aspnetcore](https://dot.net/) website on a Windows Server 2012 R2 run
1616

1717
However, the past two nights the server has restarted unexpectedly leaving the website down with the following error message:
1818

19-
```powershell
19+
```text
2020
HTTP Error 500.30 - ANCM In-Process Start Failure
2121
```
2222

2323
The first night a simple `IISRESET` command was all that was needed to get the site running again, however, last night it did the same thing.
2424

2525
Looking at `Event Viewer` I noticed the following:
2626

27-
```powershell
27+
```text
2828
Application '/LM/W3SVC/2/ROOT' with physical root 'C:\Path\To\Website' failed to load clr and managed application. Managed server didn't initialize after 120000 ms.
2929
```
3030

3131
So, doing some googling I came across an article suggesting that [An x86 app is deployed but the app pool isn't enabled for 32-bit app](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/azure-iis-errors-reference?view=aspnetcore-3.1#an-x86-app-is-deployed-but-the-app-pool-isnt-enabled-for-32-bit-apps).
3232

3333
This suggests that:
3434

35-
```powershell
35+
```text
3636
For an x86 framework-dependent deployment (<PlatformTarget>x86</PlatformTarget>), enable the IIS app pool for 32-bit apps. In IIS Manager, open the app pool's Advanced Settings and set Enable 32-Bit Applications to True.
3737
```
3838

0 commit comments

Comments
 (0)