Move files from data to static to appease Hugo
This commit is contained in:
parent
d6412ba3fd
commit
3c15bc0677
12 changed files with 15 additions and 14 deletions
|
|
@ -16,6 +16,9 @@ googleAnalytics = "UA-56802475-1"
|
|||
[mediaTypes."text/markdown"]
|
||||
suffix = "md"
|
||||
|
||||
[mediaTypes."text/plain"]
|
||||
suffix = "txt"
|
||||
|
||||
[mediaTypes."text/asciidoc"]
|
||||
suffix = "adoc"
|
||||
|
||||
|
|
@ -23,14 +26,17 @@ suffix = "adoc"
|
|||
[outputFormats.Markdown]
|
||||
mediaType = "text/markdown"
|
||||
isPlainText = true
|
||||
baseName = "CODE_OF_CONDUCT"
|
||||
|
||||
[outputFormats.PlainText]
|
||||
mediaType = "text/plain"
|
||||
isPlainText = true
|
||||
baseName = "CODE_OF_CONDUCT"
|
||||
|
||||
[outputFormats.AsciiDoc]
|
||||
mediaType = "text/asciidoc"
|
||||
isPlainText = true
|
||||
baseName = "CODE_OF_CONDUCT"
|
||||
|
||||
[outputs]
|
||||
home = ["html"]
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ Some resources useful for thinking about enforcement:
|
|||
This code of conduct has already been adopted by over [40,000 open source projects](https://github.com/search?l=&q=%22This+Code+of+Conduct+is+adapted+from+the+%5BContributor+Covenant%5D%22+path%3A%22%2F%22+fork%3Afalse&ref=advsearch&type=Code).
|
||||
Here are just a few major projects using the Contributor Covenant.
|
||||
|
||||
{{< data-list "data/featured-adopters.csv" >}}
|
||||
{{< data-list "static/featured-adopters.csv" >}}
|
||||
|
||||
[See this page for more]({{< ref "adopters.md" >}} "Other adopters of the Contributor Covenant").
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ title = "Adopters"
|
|||
|
||||
A sample of projects that have adopted the Contributor Covenant:
|
||||
|
||||
{{< data-list "data/adopters.csv" >}}
|
||||
{{< data-list "static/adopters.csv" >}}
|
||||
|
||||
To add your project to the list, [submit a pull
|
||||
request](https://github.com/ContributorCovenant/contributor_covenant/blob/master/README.md#adding-a-project-to-the-list-of-adopters "Contributor Covenant source code").
|
||||
|
|
|
|||
|
|
@ -1,12 +1,8 @@
|
|||
<dl class="formats">
|
||||
<dt>Other formats:</dt>
|
||||
<dd>
|
||||
<a class="icon icon-md" href="{{ .Permalink | replaceRE "\\.html$" ".md" | absLangURL }}"><abbr title="Markdown">md</abbr></a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a class="icon icon-txt" href="{{ .Permalink | replaceRE "\\.html$" ".txt" | absLangURL }}"><abbr title="Plain text">txt</abbr></a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a class="icon icon-adoc" href="{{ .Permalink | replaceRE "\\.html$" ".adoc" | absLangURL }}"><abbr title="AsciiDoc">adoc</abbr></a>
|
||||
</dd>
|
||||
{{ range .OutputFormats }}
|
||||
{{ $ext := index ( last 1 ( split .MediaType "+" ) ) 0 }}
|
||||
<dd><a class="icon icon-{{ $ext }}" href="{{ .Permalink | absLangURL }}"><abbr title="{{ .Name }}">{{ $ext }}</abbr></a></dd>
|
||||
{{ end }}
|
||||
</dl>
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{{ .RawContent }}
|
||||
{{ .RawContent | safeHTML }}
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
{{- /* Oh dear, this is hacky. */ -}}
|
||||
{{ .RawContent | markdownify | replaceRE "<li>([^<]+)</li>" "* $1" | replaceRE "</?[^>]+>" "" | safeHTML }}
|
||||
{{ .RawContent }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue