Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Aug 27, 2023
0 parents commit 6086cf3
Show file tree
Hide file tree
Showing 25 changed files with 5,185 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ko_fi: razonyang
custom:
- https://paypal.me/razonyang
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: lint

on:
push:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run eslint
18 changes: 18 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
command: manifest
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
public/
resources/
.hugo_build.lock
node_modules/
14 changes: 14 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pull_request_rules:
- name: Automatic merge for Renovate pull requests
conditions:
- author=renovate[bot]
actions:
merge:
method: rebase

- name: Automatic merge on approval
conditions:
- "#approved-reviews-by>=1"
actions:
merge:
method: rebase
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"overrides": [
{
"files": [
"*.html"
],
"options": {
"parser": "go-template"
}
}
]
}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.0.1"
}
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.tmpl.scss
9 changes: 9 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "stylelint-config-standard-scss",
"rules": {
"at-rule-no-unknown": null,
"color-function-notation": null,
"scss/at-rule-no-unknown": true,
"scss/at-extend-no-missing-placeholder": null
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Hugo Modules Authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Hugo AOS Module

[![Used By](https://img.shields.io/badge/dynamic/json?color=success&label=used+by&query=repositories_humanize&logo=hugo&style=flat-square&url=https://api.razonyang.com/v1/github/dependents/hugomods/aos)](https://github.com/hugomods/aos/network/dependents)
![Hugo Requirements](https://img.shields.io/badge/dynamic/json?color=important&label=requirements&query=requirements&logo=hugo&style=flat-square&url=https://api.razonyang.com/v1/hugo/modules/github.com/hugomods/aos)
[![License](https://img.shields.io/github/license/hugomods/aos?style=flat-square)](https://github.com/hugomods/aos/blob/main/LICENSE)
[![Version](https://img.shields.io/github/v/tag/hugomods/aos?label=version&style=flat-square)](https://github.com/hugomods/aos/tags)
3 changes: 3 additions & 0 deletions assets/mods/aos/js/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import options from './options'

AOS.init(options)
3 changes: 3 additions & 0 deletions assets/mods/aos/js/options.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// See https://github.com/michalsnik/aos#1-initialize-aos.
export default {
}
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/hugomods/aos

go 1.18
Empty file added go.sum
Empty file.
10 changes: 10 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[module.hugoVersion]
min = "0.111.3"

[params.hugopress.modules.aos.hooks.head-end]

[params.hugopress.modules.aos.hooks.body-end]

[params.aos]
css_url = "https://unpkg.com/aos@next/dist/aos.css"
js_url = "https://unpkg.com/aos@next/dist/aos.js"
1 change: 1 addition & 0 deletions layouts/partials/aos/assets/css.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link rel="stylesheet" href="{{ site.Params.aos.css_url }}" />
10 changes: 10 additions & 0 deletions layouts/partials/aos/assets/js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script src="{{ site.Params.aos.js_url }}"></script>
{{- $opts := dict
"targetPath" "js/aos-init.js"
"minify" hugo.IsProduction
}}
{{- $js := resources.Get "mods/aos/js/index.ts" | js.Build $opts }}
{{- if hugo.IsProduction }}
{{- $js = $js | fingerprint }}
{{- end }}
<script src="{{ $js.RelPermalink }}"></script>
1 change: 1 addition & 0 deletions layouts/partials/hugopress/modules/aos/hooks/body-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ partialCached "aos/assets/js" .Page }}
1 change: 1 addition & 0 deletions layouts/partials/hugopress/modules/aos/hooks/head-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ partialCached "aos/assets/css" .Page }}
Loading

0 comments on commit 6086cf3

Please sign in to comment.