diff options
| author | Volpeon <git@volpeon.ink> | 2021-01-02 16:47:15 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2021-01-02 16:47:15 +0100 |
| commit | 14375c5289e84690cacd0ec9b511cefef088f0a5 (patch) | |
| tree | 6465075e5255be2851a7678d1a629ed23cd810b3 /scripts | |
| parent | Small design revisions (diff) | |
| download | volpeon.ink-14375c5289e84690cacd0ec9b511cefef088f0a5.tar.gz volpeon.ink-14375c5289e84690cacd0ec9b511cefef088f0a5.tar.bz2 volpeon.ink-14375c5289e84690cacd0ec9b511cefef088f0a5.zip | |
Use Pygments for syntax highlighting, design adjustments, preload fonts
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/build_content.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build_content.sh b/scripts/build_content.sh index fcabf9f..c640b12 100755 --- a/scripts/build_content.sh +++ b/scripts/build_content.sh | |||
| @@ -54,13 +54,15 @@ get_metadata() { | |||
| 54 | pandoc "$1" \ | 54 | pandoc "$1" \ |
| 55 | -f markdown \ | 55 | -f markdown \ |
| 56 | -t plain \ | 56 | -t plain \ |
| 57 | --no-highlight \ | ||
| 57 | --template scripts/metadata_tpl.json | 58 | --template scripts/metadata_tpl.json |
| 58 | } | 59 | } |
| 59 | 60 | ||
| 60 | get_content() { | 61 | get_content() { |
| 61 | pandoc "$1" \ | 62 | pandoc "$1" \ |
| 62 | -f markdown \ | 63 | -f markdown \ |
| 63 | -t plain | 64 | -t plain \ |
| 65 | --no-highlight | ||
| 64 | } | 66 | } |
| 65 | 67 | ||
| 66 | get_section() { | 68 | get_section() { |
| @@ -251,6 +253,7 @@ handle () { | |||
| 251 | pandoc "$1" \ | 253 | pandoc "$1" \ |
| 252 | -f markdown \ | 254 | -f markdown \ |
| 253 | -t html5 \ | 255 | -t html5 \ |
| 256 | --no-highlight \ | ||
| 254 | --template "${TEMPLATES_DIR}feed.xml" \ | 257 | --template "${TEMPLATES_DIR}feed.xml" \ |
| 255 | -o "${target_file%.html}.xml" \ | 258 | -o "${target_file%.html}.xml" \ |
| 256 | --metadata-file metadata/metadata.yaml \ | 259 | --metadata-file metadata/metadata.yaml \ |
| @@ -263,6 +266,7 @@ handle () { | |||
| 263 | pandoc "$1" \ | 266 | pandoc "$1" \ |
| 264 | -f markdown \ | 267 | -f markdown \ |
| 265 | -t html5 \ | 268 | -t html5 \ |
| 269 | --no-highlight \ | ||
| 266 | --template "${TEMPLATES_DIR}base.html" \ | 270 | --template "${TEMPLATES_DIR}base.html" \ |
| 267 | -o "$target_file" \ | 271 | -o "$target_file" \ |
| 268 | --metadata-file metadata/metadata.yaml \ | 272 | --metadata-file metadata/metadata.yaml \ |
