New draft post and add menu
This commit is contained in:
12
layouts/_shortcodes/gitea.md
Normal file
12
layouts/_shortcodes/gitea.md
Normal file
@ -0,0 +1,12 @@
|
||||
{{- $url := "" -}}
|
||||
{{- with .Get "url" -}}
|
||||
{{- $url = . -}}
|
||||
{{- else -}}
|
||||
{{- $url = urls.JoinPath "http://gitea.balki.me" (.Get "repo") "raw/branch/main" (.Get "path") -}}
|
||||
{{- end -}}
|
||||
```{{ .Get "lang" }}
|
||||
{{ with resources.GetRemote $url }}
|
||||
{{- .Content -}}
|
||||
{{ end }}
|
||||
```
|
||||
[source]({{ $url }})
|
Reference in New Issue
Block a user