Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HCC docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Holland Computing Center
HCC docs
Merge requests
!16
Add section on static content.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add section on static content.
update-readme
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Adam Caprez
requested to merge
update-readme
into
master
6 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3c92497e
1 commit,
6 years ago
1 file
+
14
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
README.md
+
14
−
0
Options
@@ -123,6 +123,20 @@ are used:
```
Note that you can omit the
`.md`
suffix from the filename.
4.
*Static content*
Hugo has special handling for static content (images, linked zip files, etc.). In the root of the repo,
there is a
`static/`
directory; all static content should go there. Subdirectories can be made to keep
things organized; there are existing directories for
`images`
and
`attachments`
. Feel free to create
additional directories if it makes sense. To link to static content, you can use an absolute path from
any page. For example, assuming there is an image in the repo at
`static/images/my_image.png`
,
you can link to it using the
`figure`
shortcode as
`{{< figure src="/images/my_image.png" >}}`
.
-
**Special note for .png files**
: In order to keep the repo size as small as possible, all images
should be png's if possible, and further processed using the
[
pngquant
](
https://pngquant.org
)
compression
tool. This will reduce the size by ~3-4x while keeping good quality. For example, to process and
overwrite all png files in a directory, run
`pngquant --ext .png --force *.png`
.
*
Do the processing
prior to committing the files to the repo, otherwise git will be forced to keep multiple copies as the files
are binary.
*
#### Adding your changes
Once you've got your set of changes, add and commit them to your branch. Push the branch and
Loading