Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Theme-Hugo - FAQ.adullact.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adullact
Theme-Hugo - FAQ.adullact.org
Commits
bb0cfc46
Commit
bb0cfc46
authored
4 years ago
by
Robert Kaussow
Browse files
Options
Downloads
Patches
Plain Diff
beautify html before uploading the documentation
parent
e842ae03
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.drone.yml
+10
-1
10 additions, 1 deletion
.drone.yml
.jsbeautifyrc
+8
-0
8 additions, 0 deletions
.jsbeautifyrc
layouts/partials/head.html
+4
-7
4 additions, 7 deletions
layouts/partials/head.html
with
22 additions
and
8 deletions
.drone.yml
+
10
−
1
View file @
bb0cfc46
...
...
@@ -138,6 +138,15 @@ steps:
commands
:
-
hugo-official -s exampleSite/
-
name
:
beautify
image
:
node:lts-alpine
commands
:
-
npm install -g js-beautify
-
html-beautify -r -f 'exampleSite/public/**/*.html'
environment
:
FORCE_COLOR
:
true
NPM_CONFIG_LOGLEVEL
:
error
-
name
:
publish
image
:
plugins/s3-sync
settings
:
...
...
@@ -206,6 +215,6 @@ depends_on:
---
kind
:
signature
hmac
:
c9158b4a7c4fb787644c711560925ffae038a982953f958d5f535158f640032f
hmac
:
0e4002121787435d22c628f091c8b11ceec1c8a02057436dc9a868c190f91317
...
This diff is collapsed.
Click to expand it.
.jsbeautifyrc
0 → 100644
+
8
−
0
View file @
bb0cfc46
{
"indent_size": 4,
"indent_char": " ",
"preserve_newlines": false,
"unformatted" : ["svg"],
"content_unformatted": ["pre"],
"extra_liners": ["head", "body", "html", "main", "header", "footer", "section"]
}
This diff is collapsed.
Click to expand it.
layouts/partials/head.html
+
4
−
7
View file @
bb0cfc46
...
...
@@ -3,18 +3,15 @@
<meta
name=
"description"
content=
"{{ partial "
title
"
.
}}"
>
<title>
{{ partial "title" . }} | {{ .Site.Title -}}
</title>
<link
rel=
"icon"
href=
"{{ "
favicon
/
favicon-32x32.png
"
|
relURL
}}"
type=
"image/x-icon"
>
<link
rel=
"icon"
href=
"{{ "
favicon
/
favicon-32x32.png
"
|
relURL
}}"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"{{ "
main.min.css
"
|
relURL
}}"
media=
"screen"
>
<!-- Theme stylesheet, you can customize css by creating static/custom.css` in your website -->
<link
rel=
"stylesheet"
href=
"{{ "
custom.css
"
|
relURL
}}"
media=
"screen"
>
<!-- RSS -->
{{ with .OutputFormats.Get "rss" -}}
{{ printf `
<link
rel=
"%s"
type=
"%s"
href=
"%s"
title=
"%s"
/>
` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ "
<!--" | safeHTML }}
Made with Geekdoc theme
https://github.com/xoxys/hugo-geekdoc
{{ "-->
" | safeHTML }}
{{ "
<!--" | safeHTML -}}
Made with Geekdoc theme https://github.com/xoxys/hugo-geekdoc
{{- "-->
" | safeHTML }}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment