Skip to content

Commit

Permalink
Merge pull request #3 from f-yanez/merge_hugo_toha
Browse files Browse the repository at this point in the history
Merge hugo toha Sep 2024
  • Loading branch information
f-yanez authored Sep 27, 2024
2 parents 07786f9 + c873e1b commit a07a31c
Show file tree
Hide file tree
Showing 66 changed files with 2,972 additions and 2,206 deletions.
9 changes: 0 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@

version: 2
updates:
# Update the git submodules
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
labels:
- "dependencies"
- "automerge"

# Update the Github Action versions
- package-ecosystem: "github-actions"
directory: "/"
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/html-proof.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/lighthouse-check.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/md-link-check.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Github Pages
name: Merge to main workflows

# run when a commit is pushed to "source" branch
on:
Expand All @@ -7,14 +7,14 @@ on:
- main

jobs:
deploy:
deploy-to-gh-pages:
runs-on: ubuntu-latest
steps:
# checkout to the commit that has been pushed
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.6.0
uses: peaceiris/actions-hugo@v3.0.0
with:
hugo-version: 'latest'
extended: true
Expand All @@ -23,7 +23,7 @@ jobs:
run: hugo mod tidy

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand All @@ -37,7 +37,7 @@ jobs:

# push the generated content into the `gh-pages` branch.
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.9.0
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
Expand Down
91 changes: 91 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: PR Workflows

# Run action on pull request event
on: [pull_request]


jobs:
# Build exampleSite
build:
runs-on: ubuntu-latest
steps:
# checkout to the commit that has been pushed
- uses: actions/checkout@v4.1.1

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install node modules
run: npm install

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3.0.0
with:
hugo-version: 'latest'
extended: true

- name: Build
run: |
hugo --minify
lighthouse-check:
runs-on: ubuntu-latest
steps:
#- name: Waiting for Netlify Preview
# uses: kamranayub/wait-for-netlify-action@v2.1.1
# id: preview
# with:
# site_name: "toha"
# max_timeout: 300
# env:
# NETLIFY_TOKEN: ${{secrets.NETLIFY_TOKEN}}

#- name: Run Lighthouse
# uses: foo-software/lighthouse-check-action@v12.0.1
# id: lighthouseCheck
# with:
# accessToken: ${{ secrets.LIGHTHOUSE_TOKEN }}
# gitHubAccessToken: ${{secrets.GITHUB_TOKEN}}
# emulatedFormFactor: 'all'
# prCommentEnabled: true
# prCommentSaveOld: true
# timeout: 5
# urls: "${{ steps.preview.outputs.url }},${{ steps.preview.outputs.url }}/posts/,${{ steps.preview.outputs.url }}/posts/markdown-sample/,${{ steps.preview.outputs.url }}/posts/shortcodes/"

# Check for any broken links
markdown-link-check:
runs-on: ubuntu-latest
steps:
# checkout to latest commit
- uses: actions/checkout@master

#- name: Waiting for Netlify Preview
# uses: kamranayub/wait-for-netlify-action@v2.1.1
# id: preview
# with:
# site_name: "toha"
# max_timeout: 300
# env:
# NETLIFY_TOKEN: ${{secrets.NETLIFY_TOKEN}}

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.10.0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: "--verbose --exclude-mail ${{steps.preview.outputs.url}} --exclude=['https://www.udemy.com/']"
output: lychee/out.md

- name: Comment Broken Links
if: ${{ steps.lychee.outputs.exit_code != 0 }}
uses: marocchino/sticky-pull-request-comment@v2
with:
path: lychee/out.md

- name: Fail workflow if broken links found
if: ${{ steps.lychee.outputs.exit_code != 0 }}
run: exit 1
52 changes: 52 additions & 0 deletions .github/workflows/theme-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "Theme Update"

on:
schedule:
- cron: "0 0 * * *"

jobs:
update-theme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
with:
ref: main

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3.0.0
with:
hugo-version: "latest"
extended: true

- name: Update hugo modules
run: |
# update to latest version of all modules
hugo mod get -u
# update the npm dependencies
hugo mod npm pack
# cleanup go.sum file
hugo mod tidy
- name: Install node modules
run: npm install

- name: Build
run: |
# build the site
hugo --minify
# remove file generated by the build
rm -rf public/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
base: main
title: Update theme
labels: automerge
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
resources/*
node_modules/*
public/*
24 changes: 24 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
image: registry.gitlab.com/pages/hugo/hugo_extended:latest

default:
before_script:
- apk add --update --no-cache git go nodejs npm
- hugo mod tidy
- hugo mod npm pack
- npm install

test:
script:
- hugo
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH

pages:
script:
- hugo
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sections/education/tech_college.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sections/education/university.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sections/experiences/company1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sections/experiences/company2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sections/experiences/company3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions content/posts/category/sub-category/rich-content/index.bn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: "সমৃদ্ধ কন্টেন্ট"
date: 2020-06-08T08:06:25+06:00
description: Sample post with multiple images, embedded video etc.
menu:
sidebar:
name: সমৃদ্ধ কন্টেন্ট
identifier: rich-content
parent: sub-category
weight: 10
tags: ["মার্কডাউন","কন্টেন্ট সাজানো","বহুভাষিক"]
categories: ["বেসিক"]
---

এই নমুনা পোস্টটি এই বিষয়গুলো পরীক্ষা করার জন্যে করা হয়েছেঃ

- বিভাগ, উপ-বিভাগে সাইডবারে একটির ভেতর আরেকটি কিভাবে আছে সেটা দেখা।
- হেরো ছবিটি পোস্ট যে পথে আছে সে পথে `images` ফোল্ডার এ থাকবে।
- বিভিন্ন মিডিয়া যেমন ছবি, টুইট, ইউটিউব ভিডিও, ভীমেও ভিডিও ইত্যাদি রেন্ডারিং।

### ছবির নমুনা

{{< img src="/posts/category/sub-category/rich-content/images/forest.jpg" align="center" title="Forest" >}}

{{< vs >}}

### টুইটের নুমুনা

{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}}

{{< vs >}}

### ইউটিওবের ভিডিও নমুনা

{{< youtube ZJthWmvUzzc >}}

{{< vs >}}

### ভীমেও ভিডিও নমুনা

{{< vimeo 48912912 >}}
Loading

0 comments on commit a07a31c

Please sign in to comment.