mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

mountainbug95
03.50.2020 efd8519311099f3274ffb65e8022f85921a4f229
Merge branch 'master' of github.com:budparr/gohugo-theme-ananke into 118-fix-long-urls
3 files added
9 files modified
5939 ■■■■■ changed files
README.md 3 ●●●● patch | view | raw | blame | history
exampleSite/config.toml 1 ●●●● patch | view | raw | blame | history
i18n/bg.toml 32 ●●●●● patch | view | raw | blame | history
layouts/_default/baseof.html 2 ●●● patch | view | raw | blame | history
layouts/partials/site-favicon.html 4 ●●●● patch | view | raw | blame | history
layouts/partials/site-navigation.html 2 ●●● patch | view | raw | blame | history
layouts/partials/social-follow.html 6 ●●●●● patch | view | raw | blame | history
layouts/partials/social-share.html 4 ●●●● patch | view | raw | blame | history
layouts/partials/svg/rss.svg 5 ●●●●● patch | view | raw | blame | history
layouts/shortcodes/form-contact.html 2 ●●● patch | view | raw | blame | history
src/css/_social-icons.css 6 ●●●● patch | view | raw | blame | history
static/dist/css/app.e6e75cdafe2e909dacfabeb26857f994.css 5872 ●●●●● patch | view | raw | blame | history
README.md
@@ -160,7 +160,8 @@
Note: The above command will not work on Windows. If you are running a Windows OS, use the below command:
```
hugo --environment production
set HUGO_ENV=production
hugo
```
## Contributing
exampleSite/config.toml
@@ -29,6 +29,7 @@
  mastodon = ""
  slack = ""
  stackoverflow = ""
  rss = ""
  # choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-"
  background_color_class = "bg-black"
  featured_image = "/images/gohugo-default-sample-hero-image.jpg"
i18n/bg.toml
New file
@@ -0,0 +1,32 @@
[more]
other = "Още"
[allTitle]
other = "Всички {{.Title }}"
[recentTitle]
other = "Последни {{.Title }}"
[readMore]
other = "виж още"
[whatsInThis]
other = "Съдържание {{ .Type }}"
[related]
other = "Подобни"
[yourName]
other = "Вашето име"
[emailAddress]
other = "Адрес на елекронна поща"
[message]
other = "Съобщение"
[emailRequiredNote]
other = "Задължително е да предоставите адрес на електронна поща."
[send]
other = "Изпрати"
layouts/_default/baseof.html
@@ -20,7 +20,7 @@
    {{ end }}
    {{ range .Site.Params.custom_css }}
      <link rel="stylesheet" href="{{ relURL ($.Site.BaseURL) }}{{ . }}">
      <link rel="stylesheet" href="{{ relURL (.) }}">
    {{ end }}
    {{ block "favicon" . }}
layouts/partials/site-favicon.html
@@ -1,3 +1,3 @@
{{ if .Site.Params.favicon }}
<link rel="shortcut icon" href="/{{ .Site.Params.favicon }}" type="image/x-icon" />
{{ end }}
<link rel="shortcut icon" href="{{ relURL ($.Site.Params.favicon) }}" type="image/x-icon" />
{{ end }}
layouts/partials/site-navigation.html
@@ -1,6 +1,6 @@
<nav class="pv3 ph3 ph4-ns" role="navigation">
  <div class="flex-l justify-between items-center center">
    <a href="{{ .Site.BaseURL }}" class="f3 fw2 hover-white no-underline white-90 dib">
    <a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib">
      {{ .Site.Title }}
    </a>
    <div class="flex-l items-center">
layouts/partials/social-follow.html
@@ -72,3 +72,9 @@
  {{- partial "new-window-icon.html" . -}}
</a>
{{ end }}
{{ with .Param "rss" }}
<a href="{{ . }}" target="_blank" class="link-transition rss link dib z-999 pt3 pt0-l mr1" title="RSS link" rel="noopener" aria-label="RSS——Opens in a new window">
  {{ partial "svg/rss.svg" (dict "size" $icon_size) }}
  {{- partial "new-window-icon.html" . -}}
</a>
{{ end }}
layouts/partials/social-share.html
@@ -1,5 +1,5 @@
{{ $title := .Title }}
{{ $url := printf "%s" .URL | absLangURL }}
{{ $url := printf "%s" .Permalink | absLangURL }}
{{ $icon_size := "32px" }}
{{ if not .Params.disable_share }}
@@ -23,4 +23,4 @@
      {{ partialCached "svg/linkedin.svg" (dict "size" $icon_size) $icon_size }}
    </a>
  </div>
{{ end }}
{{ end }}
layouts/partials/svg/rss.svg
New file
@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" {{ with .size }}height="{{ . }}" width="{{ . }}"{{ end }} viewBox="0 0 24 24">
    <circle cx="6.18" cy="17.82" r="2.18"/>
    <path id="scale" d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"/>
</svg>
layouts/shortcodes/form-contact.html
@@ -15,6 +15,6 @@
    <label class="{{ $.Scratch.Get "labelClasses" }}" for="message">{{ i18n "message" }}</label>
    <textarea id="message" name="message" class="{{ $.Scratch.Get "inputClasses" }} h4" aria-labelledby="message"></textarea>
    <input class="db w-100 mv2 white pa3 bn hover-shadow hover-bg-blck bg-animate bg-black" type="submit" value="{{ i18n "send" }}" />
    <input class="db w-100 mv2 white pa3 bn hover-shadow hover-bg-black bg-animate bg-black" type="submit" value="{{ i18n "send" }}" />
</form>
src/css/_social-icons.css
@@ -1,4 +1,4 @@
.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .keybase, .linkedin, .medium, .mastodon, .slack, .stackoverflow {
.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .keybase, .linkedin, .medium, .mastodon, .slack, .stackoverflow, .rss {
  fill: #BABABA;
}
@@ -58,3 +58,7 @@
.stackoverflow:hover {
  fill: #f48024;
}
.rss:hover{
  fill: #ff6f1a;
}
static/dist/css/app.e6e75cdafe2e909dacfabeb26857f994.css
New file
Diff too large