Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bcfd2d1eb9 | |||
| ffb686aa52 | |||
| 160745491a | |||
| 5553929974 | |||
| 44b878c6e7 |
42
.gitea/workflows/deploy.yaml
Normal file
42
.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,42 @@
|
||||
name: Deploy
|
||||
run-name: ${{ gitea.actor }} is deploying ${{ gitea.repository }}
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker.gitea.com/runner-images:ubuntu-latest
|
||||
volumes:
|
||||
- /opt/hugo/makyo.ink:/opt/hugo/makyo.ink
|
||||
env:
|
||||
DART_SASS_VERSION: 1.98.0
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: 'true'
|
||||
|
||||
- name: Install Hugo
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: '0.157.0'
|
||||
extended: true
|
||||
|
||||
- name: Install Dart Sass
|
||||
run: |
|
||||
curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz \
|
||||
&& tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz \
|
||||
&& cp -r dart-sass/* /usr/local/bin \
|
||||
&& rm -rf dart-sass* \
|
||||
&& sass --embedded --version
|
||||
|
||||
- name: Build site
|
||||
run: |
|
||||
hugo build --gc --minify --baseURL https://makyo.ink --destination /opt/hugo/makyo.ink
|
||||
|
||||
- name: Set permissions
|
||||
run: chown -R www-data:www-data /opt/hugo/makyo.ink
|
||||
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,8 +1,3 @@
|
||||
_site
|
||||
.sass-cache
|
||||
.jekyll-metadata
|
||||
.bundle
|
||||
node_modules
|
||||
resources
|
||||
.hugo_build.lock
|
||||
public
|
||||
resources/_gen
|
||||
|
||||
@ -9,7 +9,7 @@ title = "The Writing of Madison Rye Progress"
|
||||
series = "series"
|
||||
|
||||
[permalinks]
|
||||
post = "/:filename/"
|
||||
post = "/:contentbasename/"
|
||||
|
||||
[markup.goldmark.renderer]
|
||||
unsafe= true
|
||||
|
||||
15
layouts/_partials/analytics.html
Normal file
15
layouts/_partials/analytics.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!-- Matomo -->
|
||||
<script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//analytics.makyo.io/";
|
||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||
_paq.push(['setSiteId', '17']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Matomo Code -->
|
||||
@ -37,4 +37,5 @@
|
||||
{{ with .Params.extracss }}
|
||||
<link rel="stylesheet" href="{{.}}">
|
||||
{{ end }}
|
||||
{{ partial "analytics.html" . }}
|
||||
</head>
|
||||
@ -32,18 +32,18 @@
|
||||
<div id="entry"><div id="entryText"></div><div id="send"><img src="send-icon.s.png"></div></div>
|
||||
</div>
|
||||
<script type="text/javascript" src="vis.js"></script>
|
||||
<!-- Matomo -->
|
||||
<script type="text/javascript">
|
||||
var _paq = window._paq || [];
|
||||
<!-- Matomo -->
|
||||
<script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//matomo.makyo.io/";
|
||||
var u="//analytics.makyo.io/";
|
||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||
_paq.push(['setSiteId', '1']);
|
||||
_paq.push(['setSiteId', '17']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Matomo Code -->
|
||||
|
||||
Reference in New Issue
Block a user