Compare commits
10 Commits
e13eb19368
...
5ef24244d2
Author | SHA1 | Date |
---|---|---|
Xiao Meng | 5ef24244d2 | |
ranshers | 2536b3aabb | |
Reorx | b787253f7b | |
Xiao Meng | 051a61d997 | |
Ransher Singh | 603f3249ea | |
Reorx | 0f9604bf0e | |
Reorx | 7b039bbd3a | |
Reorx | c6ca70a354 | |
Reorx | 91855a0ba8 | |
Reorx | 5e73b0ea72 |
|
@ -1,4 +1,5 @@
|
||||||
name: GitHub Pages
|
# https://github.com/actions/starter-workflows/blob/main/pages/hugo.yml
|
||||||
|
name: Deploy Hugo site to Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -7,26 +8,61 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
# Allow one concurrent deployment
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
path: PaperModX
|
|
||||||
|
- name: Configure Pages
|
||||||
|
id: pages
|
||||||
|
uses: actions/configure-pages@v3
|
||||||
|
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
with:
|
with:
|
||||||
hugo-version: '0.91.2'
|
hugo-version: 'latest'
|
||||||
extended: true
|
extended: true
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd PaperModX/exampleSite && hugo -D --gc --verbose --minify
|
run: |
|
||||||
|
hugo \
|
||||||
- name: Deploy
|
--minify --verbose -D \
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
--buildFuture \
|
||||||
|
--environment production \
|
||||||
|
--themesDir ../.. --theme hugo-PaperModX \
|
||||||
|
--baseURL "${{ steps.pages.outputs.base_url }}/"
|
||||||
|
working-directory: exampleSite
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
path: ./exampleSite/public
|
||||||
publish_dir: ./PaperModX/exampleSite/public
|
|
||||||
|
# Deployment job
|
||||||
|
deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v1
|
||||||
|
|
|
@ -10,6 +10,10 @@ Features and changes:
|
||||||
- Social icons from [Simple Icons](https://simpleicons.org/)
|
- Social icons from [Simple Icons](https://simpleicons.org/)
|
||||||
- Opinionated UI enhancements
|
- Opinionated UI enhancements
|
||||||
|
|
||||||
|
## Getting started
|
||||||
|
|
||||||
|
You can use [reorx/papermodx-example](https://github.com/reorx/papermodx-example) as a boilerplate to create a new Hugo site with PaperModX theme. For detailed instructions please see the README of papermodx-example repo.
|
||||||
|
|
||||||
## Table of Contents (ToC) floating on the side
|
## Table of Contents (ToC) floating on the side
|
||||||
|
|
||||||
By adding config:
|
By adding config:
|
||||||
|
|
|
@ -405,7 +405,10 @@ h6:hover .anchor {
|
||||||
.post-footer {
|
.post-footer {
|
||||||
margin-top: calc(var(--content-gap) * 1.5);
|
margin-top: calc(var(--content-gap) * 1.5);
|
||||||
padding-bottom: calc(var(--content-gap) * 2);
|
padding-bottom: calc(var(--content-gap) * 2);
|
||||||
border-bottom: 3px solid var(--tertiary);
|
}
|
||||||
|
.comments-separator {
|
||||||
|
height: 3px;
|
||||||
|
background-color: var(--tertiary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.share-buttons {
|
.share-buttons {
|
||||||
|
|
|
@ -56,6 +56,10 @@
|
||||||
--link-underline-shadow: 0 1px 0 var(--link-color);
|
--link-underline-shadow: 0 1px 0 var(--link-color);
|
||||||
--link-hover-underline-color: var(--link-hover-color);
|
--link-hover-underline-color: var(--link-hover-color);
|
||||||
--link-hover-underline-shadow: 0 2px 0 var(--link-hover-underline-color);
|
--link-hover-underline-shadow: 0 2px 0 var(--link-hover-underline-color);
|
||||||
|
|
||||||
|
/* for type pages theming */
|
||||||
|
--signature: var(--primary);
|
||||||
|
--signature-bg: var(--secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-page {
|
.list-page {
|
||||||
|
|
|
@ -665,3 +665,24 @@ default = '''
|
||||||
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
|
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
|
||||||
</svg>
|
</svg>
|
||||||
'''
|
'''
|
||||||
|
mdi-rss = '''
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19 7.38 20 6.18 20C5 20 4 19 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27V4.44m0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93V10.1Z"/></svg>
|
||||||
|
'''
|
||||||
|
mdi-email = '''
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="m20 8l-8 5l-8-5V6l8 5l8-5m0-2H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Z"/></svg>
|
||||||
|
'''
|
||||||
|
mdi-twitter = '''
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23Z"/></svg>
|
||||||
|
'''
|
||||||
|
mdi-resume = '''
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m8 18v-1c0-1.33-2.67-2-4-2s-4 .67-4 2v1h8m-4-8a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2Z"/></svg>
|
||||||
|
'''
|
||||||
|
mdi-github = '''
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"/></svg>
|
||||||
|
'''
|
||||||
|
icon-park-telegram = '''
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><path d="M41.4193 7.30899C41.4193 7.30899 45.3046 5.79399 44.9808 9.47328C44.8729 10.9883 43.9016 16.2908 43.1461 22.0262L40.5559 39.0159C40.5559 39.0159 40.3401 41.5048 38.3974 41.9377C36.4547 42.3705 33.5408 40.4227 33.0011 39.9898C32.5694 39.6652 24.9068 34.7955 22.2086 32.4148C21.4531 31.7655 20.5897 30.4669 22.3165 28.9519L33.6487 18.1305C34.9438 16.8319 36.2389 13.8019 30.8426 17.4812L15.7331 27.7616C15.7331 27.7616 14.0063 28.8437 10.7686 27.8698L3.75342 25.7055C3.75342 25.7055 1.16321 24.0823 5.58815 22.459C16.3807 17.3729 29.6555 12.1786 41.4193 7.30899Z"/></svg>
|
||||||
|
'''
|
||||||
|
mdi-calendar-month = '''
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M9 10v2H7v-2h2m4 0v2h-2v-2h2m4 0v2h-2v-2h2m2-7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h1V1h2v2h8V1h2v2h1m0 16V8H5v11h14M9 14v2H7v-2h2m4 0v2h-2v-2h2m4 0v2h-2v-2h2Z"/></svg>
|
||||||
|
'''
|
||||||
|
|
|
@ -34,7 +34,7 @@ internal image:
|
||||||
|
|
||||||
## Twitter Simple Shortcode
|
## Twitter Simple Shortcode
|
||||||
|
|
||||||
{{< twitter_simple 1085870671291310081 >}}
|
{{< twitter user="SanDiegoZoo" id="1453110110599868418" >}}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{{- if not (.Param "noComments") }}
|
{{- if not (.Param "noComments") }}
|
||||||
|
<div class="comments-separator"></div>
|
||||||
{{- partial "comments.html" . }}
|
{{- partial "comments.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
|
|
||||||
{{- /* Misc */}}
|
{{- /* Misc */}}
|
||||||
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
||||||
{{- if site.GoogleAnalytics }}
|
{{- if .Site.Config.Services.GoogleAnalytics.ID }}
|
||||||
{{- template "_internal/google_analytics.html" . }}
|
{{- template "_internal/google_analytics.html" . }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if site.Params.useCustomAnalytics }}
|
{{- if site.Params.useCustomAnalytics }}
|
||||||
|
|
Loading…
Reference in New Issue