Skip to content

Commit

Permalink
Refatora diretórios
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Jul 25, 2022
1 parent 1bc1f6a commit 1bad01f
Show file tree
Hide file tree
Showing 263 changed files with 59 additions and 264 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ jobs:
extended: true

- name: Build
run: |
cd src
hugo --minify --theme=. --themesDir=.. --baseURL="https://cidamo.com.br/site/"
run: hugo --minify --baseURL="https://cidamo.com.br/site/"

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src/public
publish_dir: ./public
File renamed without changes.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Build
# Site do CiDAMO (versão nova em progresso)

Dentro da pasta `src` rodar
## Build

hugo server --theme=. --themesDir=..
Rode

Preview netlify: [https://cidamo.netlify.app](https://cidamo.netlify.app)
hugo server

Preview netlify: [https://cidamo.netlify.app](https://cidamo.netlify.app)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/config.toml → config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ googleAnalytics = ""
ignoreFiles = ['airspace-hugo']
paginate = "4"
summaryLength = "30"
theme="airspace-hugo"
title = "CiDAMO"

[languages.ptbr]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
47 changes: 39 additions & 8 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
<div class="row">
<div class="col-md-12">
<div class="footer-menu">
<ul class="social-icons">
{{ range site.Params.social }}
<li><a href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li>
{{ end }}
</ul>
<br>
<ul>
{{ range site.Menus.footer }}
{{ range site.Menus.footer }}
<li><a href="{{ .URL | relLangURL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
Expand All @@ -15,13 +21,6 @@
</div>
</footer>

<!-- Google Maps API -->
{{ if site.Params.gmap.enable }}
{{ if ("contact/" | relLangURL | eq .RelPermalink) }}
<script defer src="https://maps.googleapis.com/maps/api/js?key={{ site.Params.gmap.gmap_api }}&libraries=places"></script>
{{ end }}
{{ end }}

<!-- JS plugins -->
{{ range site.Params.plugins.js }}
<script src="{{ .link | relURL }}" {{ .attributes | safeHTMLAttr }}></script>
Expand All @@ -31,6 +30,38 @@
{{ $script := slice (resources.Get "js/script.js") (resources.Get "js/custom.js") | resources.Concat "js/bundled.js" | minify }}
<script src="{{ $script.RelPermalink }}"></script>

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
displayMath: [['$$','$$']],
processEscapes: true,
processEnvironments: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
TeX: { equationNumbers: { autoNumber: "AMS" },
extensions: ["AMSmath.js", "AMSsymbols.js"] }
}
});
MathJax.Hub.Queue(function() {
// Fix <code> tags after MathJax finishes running. This is a
// hack to overcome a shortcoming of Markdown. Discussion at
// https://github.com/mojombo/jekyll/issues/199
var all = MathJax.Hub.getAllJax(), i;
for(i = 0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});

MathJax.Hub.Config({
// Autonumbering by mathjax
TeX: { equationNumbers: { autoNumber: "AMS" } }
});
</script>

<!-- Cookie -->
{{ if site.Params.cookies.enable }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.1/js.cookie.min.js"></script>
Expand Down
22 changes: 2 additions & 20 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
[build]
publish = "src/public"
command = "cd src && hugo --gc --themesDir ../.."
publish = "public"
command = "hugo --gc"

[build.environment]
HUGO_VERSION = "0.83.1"
HUGO_THEME = "repo"
HUGO_BASEURL = "/"

# French subpages 404
[[redirects]]
from = "/fr/*"
to = "/fr/404.html"
status = 404

# Italian subpages 404
[[redirects]]
from = "/it/*"
to = "/it/404.html"
status = 404

# English subpages 404
[[redirects]]
from = "/en/*"
to = "/en/404.html"
status = 404

# all other pages 404 (incl. those in `defaultContentLanguage`)
# NOTE that in case you've set `defaultContentLanguageInSubdir = true` in `config.toml`, you need to change the destination below to point to the `defaultContentLanguage` subdir, e.g. `to = "/en/404.html"`
[[redirects]]
Expand Down
26 changes: 0 additions & 26 deletions src/.forestry/front_matter/templates/author.yml

This file was deleted.

13 changes: 0 additions & 13 deletions src/.forestry/front_matter/templates/new-page.yml

This file was deleted.

34 changes: 0 additions & 34 deletions src/.forestry/front_matter/templates/post.yml

This file was deleted.

32 changes: 0 additions & 32 deletions src/.forestry/front_matter/templates/project.yml

This file was deleted.

84 changes: 0 additions & 84 deletions src/.forestry/settings.yml

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
1 change: 1 addition & 0 deletions themes/airspace-hugo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Tema airspace-hugo modificado para o CiDAMO
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 1bad01f

Please sign in to comment.