Skip to content

Commit

Permalink
Merge pull request #34 from oliverhihn/master
Browse files Browse the repository at this point in the history
Added option to show/hide RSS button #33 

Former-commit-id: e67efd7
  • Loading branch information
waschinski committed Jul 14, 2022
2 parents aca4cdf + 25ba5ac commit 11347f9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DESCRIPTION=@maxvoltar's minimalistic, self-hosted photo stream.
BASEURL=
# URL must end with / or links will be broken
URL=https://maxvoltar.photo/
SHOW_RSS_FEED=1
SHOW_OFFICIAL_GITHUB=1
ALLOW_ORDER_SORT_CHANGE=1
ALLOW_ORIGINAL_DOWNLOAD=0
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ First thing you want to do is edit a couple of things in `/.env`:
- `DESCRIPTION`: Description of your photo stream
- `BASEURL`: Should be left empty or removed **⚠️ Do not change unless you know what you're doing**
- `URL`: Where will this photo stream live (example: `https://maxvoltar.photo/`), must end with / or links will be broken
- `SHOW_RSS_FEED`: Set to either `1` or `0` to enable or disable showing the RSS feed button
- `SHOW_OFFICIAL_GITHUB`: Set to either `1` or `0` to enable or disable showing the link to the official github repository
- `ALLOW_ORDER_SORT_CHANGE`: Set this to `1` to allow users to reverse the sort order of the photos
- `ALLOW_ORIGINAL_DOWNLOAD`: Set this to `1` to allow users to download the photos in their original size
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ services:
- DESCRIPTION=${DESCRIPTION}
- BASEURL=${BASEURL}
- URL=${URL}
- SHOW_RSS_FEED=${SHOW_RSS_FEED}
- SHOW_OFFICIAL_GITHUB=${SHOW_OFFICIAL_GITHUB}
- TWITTER_USERNAME=${TWITTER_USERNAME}
- INSTAGRAM_USERNAME=${INSTAGRAM_USERNAME}
Expand Down
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
{% if site.env.ALLOW_ORDER_SORT_CHANGE == "1" %}
<li class="sort"><a rel="me" href="#" title="Reverse sort order">Sort</a></li>
{% endif %}
{% if site.env.SHOW_RSS_FEED == "1" %}
<li class="rss"><a rel="alternate" type="application/rss+xml" href="{{ site.env.URL }}feed.xml" title="RSS Feed">RSS Feed</a></li>
{% endif %}
{% if site.env.SHOW_OFFICIAL_GITHUB == "1" %}
<li class="github"><a rel="me" href="https://github.com/waschinski/photo-stream" title="Fork on Github">Github</a></li>
{% endif %}
Expand Down

0 comments on commit 11347f9

Please sign in to comment.