Skip to content

Commit

Permalink
Merge pull request #11 from piazzai/develop
Browse files Browse the repository at this point in the history
Fix default footer
  • Loading branch information
piazzai authored Sep 23, 2024
2 parents 4ed0093 + 39d7bb0 commit 6038900
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 80 deletions.
72 changes: 5 additions & 67 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ To customize hidden files, you can create new files with the same names and path

Core customization occurs in `_config.yml`. Aside from the usual configuration variables, you can set a value for `home`, which will determine the destination of the site title button in the header, as well as the return link from the 404 page. Only use this if you want these buttons to lead somewhere different than the index.

Next, you can set a value for `copyright`, which corresponds to the name of the copyright holder in the notice within the theme's footer. If no value is provided for this variable, the whole copyright notice is suppressed (default).
Next, you can set a value for `copyright`, which corresponds to the name of the copyright holder in the notice within the theme's footer. If no value is provided for this variable (default), the whole copyright notice is suppressed.

Finally, you can set a value for `indexing`, which tells search engine crawlers whether to index your site. The default value is `false`, and in this case the following code is included in the head of every page:

Expand All @@ -82,83 +82,21 @@ Customizing the CSS is possible by creating a file `_sass/_custom.scss`. You can
For convenience, customization of the theme's color scheme is also possible via YAML. In this case, create a file `_data/skin.yml` and assign new colors from the [Open Color](https://yeun.github.io/open-color) library to various HTML elements. Make sure to stick to the library's color-number naming convention. Here is an example:

```yaml
a:
color: blue-7 # links
hover: blue-9 # links when hovering
accordion-button:
bg: gray-2 # button in accordion component
accordion-item:
border: gray-2 # border of button in accordion component
alert-primary:
bg: blue-1 # primary alert
body:
bg: gray-0 # background
color: gray-8 # body text
btn-outline-primary:
border: blue-5 # outline primary button border
color: blue-5 # outline primary button
hover:
bg: blue-5 # outline primary button when hovering
color: gray-0 # outline primary button text when hovering
disabled:
bg: blue-3 # disabled outline primary button
color: blue-3 # disabled outline primary button text
btn-primary:
bg: blue-5 # primary button
color: gray-0 # primary button text
hover: blue-7 # primary button when hovering
disabled: blue-3 # disabled primary button
btn-secondary:
bg: gray-4 # secondary button
color: gray-0 # secondary button text
hover: gray-6 # secondary button when hovering
caption:
cikir: gray-6 # caption text
card:
border: gray-2 # card component border
card-header:
bg: gray-2 # header of card component
dropdown-menu:
bg: gray-2 # dropdown menu
color: gray-7 # dropdown menu text
dropdown-item:
color: gray-7 # dropdown link
hover: gray-9 # dropdown link when hovering
disabled: gray-6 # disabled dropdown link
a:
color: blue-7 # links
hover: blue-9 # links when hovering
digit:
bg: gray-3 # background of digit on 404 page
form-control:
bg: gray-0 # form field
color: gray-9 # form field text
border: gray-3 # form field border
focus:
bg: gray-0 # focused form field
color: gray-9 # focused form field text
border: blue-2 # focused form field border
shadow: blue-1 # focused form field shadow
placeholder: gray-6 # form placeholder text
header:
bg: gray-4 # background of navigation bar
index:
bg: gray-2 # background of index container
invalid-feedback: red-9 # form input warning
navbar-brand:
color: gray-8 # website name in header
hover: gray-9 # website name in header when hovering
nav-link:
color: gray-7 # navigation links in header
hover: gray-9 # navigation links in header when hovering
svg:
fill: # svg icons
table:
td:
border: # table row dividers
text-muted:
color: gray-6 # light text
hover: gray-9 # light text when hovering (if link)
```

The variables are named after the HTML elements they style. The colors to which they are set in this example are actually the theme's defaults. If no value is provided for some variables, or if `_data/skin.yml` does not exist, the theme assumes the color scheme above.
The variables are named after the HTML elements they style. The colors to which they are set in this example are actually the theme's defaults. If no value is provided for some variables, or if `_data/skin.yml` does not exist, the theme assumes the default colors. See `assets/css/styles.scss` for a complete list of defaults.

## Credits

Expand Down
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% assign year = site.time | date: '%Y' %}
{% if site.copyright and site.copyright != '' %}
<footer class="container mb-4">
<small class="text-muted">&copy;{{ year }} {{ site.copyright }}. All rights reserved.</small>
<small class="text-muted">&copy; {{ year }} {{ site.copyright }}. All rights reserved.</small>
</footer>
{% endif %}
2 changes: 1 addition & 1 deletion demo/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source "https://rubygems.org"

gem 'jekyll-nagymaros', '~> 3.2'
gem 'jekyll-nagymaros', '~> 3.3.0'
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h1 class="display-3">Nagymaros</h1>


<footer class="container mb-4">
<small class="text-muted">&copy;2024 Place Holder. All rights reserved.</small>
<small class="text-muted">&copy; 2024 Place Holder. All rights reserved.</small>
</footer>

<script src="/jekyll-nagymaros/assets/js/bootstrap.bundle.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h1 class="display-5">Map</h1>


<footer class="container mb-4">
<small class="text-muted">&copy;2024 Place Holder. All rights reserved.</small>
<small class="text-muted">&copy; 2024 Place Holder. All rights reserved.</small>
</footer>

<script src="/jekyll-nagymaros/assets/js/bootstrap.bundle.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/participants/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ <h5 class="fw-normal">Participants</h5>


<footer class="container mb-4">
<small class="text-muted">&copy;2024 Place Holder. All rights reserved.</small>
<small class="text-muted">&copy; 2024 Place Holder. All rights reserved.</small>
</footer>

<script src="/jekyll-nagymaros/assets/js/bootstrap.bundle.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion docs/program/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ <h5 class="fw-normal">Legend</h5>


<footer class="container mb-4">
<small class="text-muted">&copy;2024 Place Holder. All rights reserved.</small>
<small class="text-muted">&copy; 2024 Place Holder. All rights reserved.</small>
</footer>

<script src="/jekyll-nagymaros/assets/js/bootstrap.bundle.js"></script>
Expand Down
12 changes: 6 additions & 6 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@
</url>
<url>
<loc>https://piazzai.github.io/jekyll-nagymaros/assets/files/paper-1.pdf</loc>
<lastmod>2024-09-07T23:41:45+02:00</lastmod>
<lastmod>2024-09-23T17:08:53+02:00</lastmod>
</url>
<url>
<loc>https://piazzai.github.io/jekyll-nagymaros/assets/files/paper-2.pdf</loc>
<lastmod>2024-09-07T23:41:45+02:00</lastmod>
<lastmod>2024-09-23T17:08:53+02:00</lastmod>
</url>
<url>
<loc>https://piazzai.github.io/jekyll-nagymaros/assets/files/poster-a.pdf</loc>
<lastmod>2024-09-07T23:41:45+02:00</lastmod>
<lastmod>2024-09-23T17:08:53+02:00</lastmod>
</url>
<url>
<loc>https://piazzai.github.io/jekyll-nagymaros/assets/files/poster-b.pdf</loc>
<lastmod>2024-09-07T23:41:45+02:00</lastmod>
<lastmod>2024-09-23T17:08:53+02:00</lastmod>
</url>
<url>
<loc>https://piazzai.github.io/jekyll-nagymaros/assets/files/poster-c.pdf</loc>
<lastmod>2024-09-07T23:41:45+02:00</lastmod>
<lastmod>2024-09-23T17:08:53+02:00</lastmod>
</url>
<url>
<loc>https://piazzai.github.io/jekyll-nagymaros/assets/files/slides.pdf</loc>
<lastmod>2024-09-07T23:41:45+02:00</lastmod>
<lastmod>2024-09-23T17:08:53+02:00</lastmod>
</url>
</urlset>
2 changes: 1 addition & 1 deletion jekyll-nagymaros.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "jekyll-nagymaros"
spec.version = "3.2.0"
spec.version = "3.3.0"
spec.authors = ["piazzai"]
spec.email = ["42124135+piazzai@users.noreply.github.com"]

Expand Down

0 comments on commit 6038900

Please sign in to comment.