Compare commits
2 Commits
561b46f68f
...
e0d8a36ab2
Author | SHA1 | Date | |
---|---|---|---|
e0d8a36ab2 | |||
1c98cfcdc7 |
@ -8,7 +8,7 @@ variables:
|
|||||||
default:
|
default:
|
||||||
before_script:
|
before_script:
|
||||||
- export PATH="/root/.cargo/bin:$PATH"
|
- export PATH="/root/.cargo/bin:$PATH"
|
||||||
- apk add --update --no-cache git go make yq cargo pkgconfig openssl openssl-dev bash
|
- apk add --update --no-cache git go make yq cargo pkgconfig openssl openssl-dev bash ack
|
||||||
- cargo install stork-search --locked --all-features
|
- cargo install stork-search --locked --all-features
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
baseURL = 'https://drm-pt.info/'
|
baseURL = 'https://drmpt.pxto.pt/'
|
||||||
languageCode = 'pt-pt'
|
languageCode = 'pt-pt'
|
||||||
defaultContentLanguage = "pt"
|
defaultContentLanguage = "pt"
|
||||||
title = "DRM Portugal"
|
title = "DRM Portugal"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{{ $year := .Date.Format "2006-01-02" }}
|
{{ $year := .Date.Format "2006-01-02" }}
|
||||||
<ul class='articles detailed'>
|
<ul class='articles detailed'>
|
||||||
{{ range (where (where site.Pages "Section" "artigos") "Kind" "page") }}
|
{{ range (where site.Pages "Section" "artigos") }}
|
||||||
{{ if (eq (.Date.Format "2006-01-02") $year) }}
|
{{ if (eq (.Date.Format "2006-01-02") $year) }}
|
||||||
<li>
|
<li>
|
||||||
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{{ $year := .Date.Format "2006-01" }}
|
{{ $year := .Date.Format "2006-01" }}
|
||||||
<ul class='articles detailed'>
|
<ul class='articles detailed'>
|
||||||
{{ range (where (where site.Pages "Section" "artigos") "Kind" "page") }}
|
{{ range (where site.Pages "Section" "artigos") }}
|
||||||
{{ if (eq (.Date.Format "2006-01") $year) }}
|
{{ if (eq (.Date.Format "2006-01") $year) }}
|
||||||
<li>
|
<li>
|
||||||
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{{ $year := .Date.Format "2006" }}
|
{{ $year := .Date.Format "2006" }}
|
||||||
<ul class='articles detailed'>
|
<ul class='articles detailed'>
|
||||||
{{ range (where (where site.Pages "Section" "artigos") "Kind" "page") }}
|
{{ range (where site.Pages "Section" "artigos") }}
|
||||||
{{ if (eq (.Date.Format "2006") $year) }}
|
{{ if (eq (.Date.Format "2006") $year) }}
|
||||||
<li>
|
<li>
|
||||||
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
||||||
|
@ -4,9 +4,10 @@ mkdir -p content/archd
|
|||||||
mkdir -p content/archm
|
mkdir -p content/archm
|
||||||
mkdir -p content/archy
|
mkdir -p content/archy
|
||||||
|
|
||||||
grep -Rhm 1 ^date: content/artigos | sed -e 's/^date: \(....\)-..-.. ..:..:../\1/' | sort -u |
|
ack -hm 1 "^date:" content/artigos | sed -e 's/^date: \(....\)-..-.. ..:..:../\1/' | sort -u |
|
||||||
while read archy; do echo -e "---\ndate: $archy-01-01 00:00:00\n---" > content/archy/$archy.md; done
|
while read archy; do echo -e "---\ndate: $archy-01-01 00:00:00\n---" > content/archy/$archy.md; done
|
||||||
grep -Rhm 1 ^date: content/artigos | sed -e 's/^date: \(....-..\)-.. ..:..:../\1/' | sort -u |
|
ack -hm 1 "^date:" content/artigos | sed -e 's/^date: \(....-..\)-.. ..:..:../\1/' | sort -u |
|
||||||
while read archm; do echo -e "---\ndate: $archm-01 00:00:00\n---" > content/archm/$archm.md; done
|
while read archm; do echo -e "---\ndate: $archm-01 00:00:00\n---" > content/archm/$archm.md; done
|
||||||
grep -Rhm 1 ^date: content/artigos | sed -e 's/^date: \(....-..-..\) ..:..:../\1/' | sort -u |
|
ack -hm 1 "^date:" content/artigos | sed -e 's/^date: \(....-..-..\) ..:..:../\1/' | sort -u |
|
||||||
while read archd; do echo -e "---\ndate: $archd 00:00:00\n---" > content/archd/$archd.md; done
|
while read archd; do echo -e "---\ndate: $archd 00:00:00\n---" > content/archd/$archd.md; done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user