File tree Expand file tree Collapse file tree 5 files changed +63
-9
lines changed
Expand file tree Collapse file tree 5 files changed +63
-9
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ name: Build and Deploy Jekyll Site
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [ main, master ]
66 pull_request :
7- branches : [ main ]
7+ branches : [ main, master ]
88 workflow_dispatch :
99
1010jobs :
@@ -22,15 +22,20 @@ jobs:
2222 bundler-cache : true
2323
2424 - name : Install dependencies
25- run : bundle install
25+ run : |
26+ bundle config set path 'vendor/bundle'
27+ bundle install
2628
2729 - name : Build site
28- run : bundle exec jekyll build
30+ run : JEKYLL_ENV=production bundle exec jekyll build
2931
3032 - name : Deploy to GitHub Pages
31- if : github.event_name == 'push '
33+ if : success() && github.event_name != 'pull_request '
3234 uses : peaceiris/actions-gh-pages@v3
3335 with :
3436 github_token : ${{ secrets.GITHUB_TOKEN }}
3537 publish_dir : ./_site
36- publish_branch : gh-pages
38+ enable_jekyll : false
39+ user_name : ' github-actions[bot]'
40+ user_email : ' github-actions[bot]@users.noreply.github.com'
41+ commit_message : ' Deploy Jekyll site'
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ group :jekyll_plugins do
77 gem "jekyll-feed"
88 gem "jekyll-seo-tag"
99 gem "jekyll-sitemap"
10+ gem "jekyll-remote-theme"
1011end
1112
1213# Windows and JRuby does not include zoneinfo files
Original file line number Diff line number Diff line change @@ -8,13 +8,14 @@ author: Awar
88
99# Build settings
1010markdown : kramdown
11- theme : minima
12- future : false # Don't publish posts with a future date
11+ remote_theme : jekyll/ minima
12+ theme : minima # Keep for local development
1313
1414plugins :
1515- jekyll-feed
1616- jekyll-seo-tag
1717- jekyll-sitemap
18+ - jekyll-remote-theme
1819
1920# Exclude files from processing
2021exclude :
@@ -24,7 +25,10 @@ exclude:
2425- Gemfile
2526- Gemfile.lock
2627- node_modules/
27- - vendor/
28+ - vendor/bundle/
29+ - vendor/cache/
30+ - vendor/gems/
31+ - vendor/ruby/
2832- .github/
2933- README.md
3034
Original file line number Diff line number Diff line change 1+ ---
2+ layout : linkedin_extended
3+ title : " Sample Extended Post"
4+ date : 2023-01-01
5+ categories : ["sample", "test"]
6+ image : " /assets/images/posts/sample-extended-post.jpg"
7+ linkedin_url : " https://www.linkedin.com/posts/notawar_sample-post-activity"
8+ linkedin_published_date : " 01/01/2023"
9+ reading_time : 3
10+ author : Awar
11+ ---
12+
13+ # Sample Extended Post
14+
15+ This is a sample extended post to test the site functionality. In a real post, this would expand on content shared on LinkedIn.
16+
17+ ## Introduction
18+
19+ This is the introduction section where you would provide context about why this topic matters.
20+
21+ ## Key Points Expanded
22+
23+ Here you would elaborate on key points from your LinkedIn post with more details.
24+
25+ ## Technical Details
26+
27+ ``` python
28+ # Example code snippet
29+ def hello_world ():
30+ return " Hello, LinkedIn connections!"
31+ ```
32+
33+ ## Real-World Applications
34+
35+ This section would contain real-world applications and examples.
36+
37+ ## Additional Resources
38+
39+ - [ Resource 1] ( https://example.com )
40+ - [ Resource 2] ( https://example.com )
41+
42+ ## Conclusion
43+
44+ This concludes the sample post. In a real post, you would summarize key takeaways.
You can’t perform that action at this time.
0 commit comments