mirror of
https://github.com/dillonzq/LoveIt.git
synced 2025-01-22 08:25:10 +01:00
Merge pull request #93 from dillonzq/fix/description_as_summary
fix(summary): use description as summary when summary is empty
This commit is contained in:
commit
fbfcbaebca
2 changed files with 9 additions and 14 deletions
|
@ -1,11 +1,6 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
jobs:
|
jobs:
|
||||||
build-check:
|
build-check:
|
||||||
parameters:
|
|
||||||
example-site-path:
|
|
||||||
type: string
|
|
||||||
theme-path:
|
|
||||||
type: string
|
|
||||||
docker:
|
docker:
|
||||||
- image: cibuilds/hugo:0.62
|
- image: cibuilds/hugo:0.62
|
||||||
working_directory: ~/LoveIt
|
working_directory: ~/LoveIt
|
||||||
|
@ -13,14 +8,10 @@ jobs:
|
||||||
- checkout
|
- checkout
|
||||||
- run: git submodule sync
|
- run: git submodule sync
|
||||||
- run: git submodule update --init
|
- run: git submodule update --init
|
||||||
- run:
|
- run: HUGO_ENV=production hugo --source=exampleSite -v --gc
|
||||||
command: |
|
- run: htmlproofer exampleSite/public --check-html --allow-hash-href --empty-alt-ignore --disable-external
|
||||||
cd << parameters.example-site-path >> && pwd
|
|
||||||
HUGO_ENV=production hugo --themesDir << parameters.theme-path >> -v --gc
|
|
||||||
htmlproofer public --check-html --allow-hash-href --empty-alt-ignore --disable-external
|
|
||||||
workflows:
|
workflows:
|
||||||
build-check-exampleSite:
|
build-check-exampleSite:
|
||||||
jobs:
|
jobs:
|
||||||
- build-check:
|
- build-check
|
||||||
example-site-path: exampleSite
|
|
||||||
theme-path: ../..
|
|
||||||
|
|
|
@ -44,7 +44,11 @@
|
||||||
|
|
||||||
{{- /* Summary content */ -}}
|
{{- /* Summary content */ -}}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{- partial "single/content.html" .Summary -}}
|
{{- with .Summary -}}
|
||||||
|
{{- partial "single/content.html" . -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Description | safeHTML -}}
|
||||||
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{- /* Footer */ -}}
|
{{- /* Footer */ -}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue