Skip to content

Commit 803fd23

Browse files
committed
Remove trailing whitespace
1 parent 8e98ad2 commit 803fd23

File tree

9 files changed

+21
-28
lines changed

9 files changed

+21
-28
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ hugo server &
6767
Historic images from when the website was on WordPress live in a large separate
6868
repo https://github.com/OBF/wp-content/ which is included as a git submodule.
6969
If you want to view images in the web pages on `localhost:1313`, you will need
70-
to also initialise this repository, which is currently setup using the
70+
to also initialise this repository, which is currently setup using the
7171
`git submodule` workflow.
7272

73-
To load it you can run:
73+
To load it you can run:
7474

7575
```
7676
cd OBF.github.io/
@@ -86,7 +86,7 @@ This may change.
8686

8787
For new images, you can place these into the `static/img/yyyy/` folder of this repository, where `yyyy` means the four digit year as a subfolder.
8888

89-
When compiling the website during the build, Hugo will move everything in `static/` into the website root, i.e. to `open-bio.org/`. This means that when linking images you do not have to include the `static/` as part of the media/image link.
89+
When compiling the website during the build, Hugo will move everything in `static/` into the website root, i.e. to `open-bio.org/`. This means that when linking images you do not have to include the `static/` as part of the media/image link.
9090

9191
As an example: A file that resides in `static/img/2025/test-image.jpg` should be linked in the markdown files like this: `![an image](/img/2025/test-image.jpg)`
9292

@@ -127,7 +127,7 @@ image, use this html:
127127
```
128128
<div class="well">
129129
```
130-
130+
131131
- To make two columns (e.g. to run text next to an image), use
132132
"columns" (look for an example in one of our .mds)
133133
- You can make a button like this:
@@ -140,7 +140,7 @@ image, use this html:
140140
- To get posts to show up on the BOSC news page, include the category "bosc" (the tag doesn't seem to matter).
141141
- Note that new posts may not show up on the main OBF home page until you kill and restart hugo.
142142
- Photos/Images in posts
143-
- Images in the arcticle preview on the frontpage/blog page will only show up if they are part of the first paragraph
143+
- Images in the arcticle preview on the frontpage/blog page will only show up if they are part of the first paragraph
144144

145145
## Steps taken to port content from old WP site
146146

@@ -150,6 +150,3 @@ image, use this html:
150150
not deployed on open-bio.org). (For now, the first line of
151151
hugo.yaml should say "baseURL: https://OBF.github.io" but that will
152152
change later)
153-
154-
155-

hugo.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ menu:
7878
url: 'get-involved'
7979
weight: 5
8080
- name: 'Diversity, Equity & Inclusion'
81-
parent: 'about'
81+
parent: 'about'
8282
url: '/obf-dei/'
8383
weight: 6
8484
- name: 'Donate'
@@ -97,7 +97,7 @@ menu:
9797
url: 'events/bosc-2025/bosc-2025-schedule/'
9898
weight: 2
9999
- name: 'Panel (2025)'
100-
weight: 4
100+
weight: 4
101101
parent: 'bosc'
102102
url: 'events/bosc-2025/panel/'
103103
- name: "CollaborationFest (2025)"

layouts/partials/footer.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<div class="row">
1818
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
19-
{{ if isset .Params "bosc" }}
19+
{{ if isset .Params "bosc" }}
2020
{{- partial "footer_custom.html" . }}
2121
<hr/>
2222
<h1 class="text-center">Follow OBF</h1>
@@ -116,7 +116,7 @@ <h1 class="text-center">Follow OBF</h1>
116116
<script src="{{ "js/photoswipe.min.js" | absURL }}"></script>
117117
<script src="{{ "js/photoswipe-ui-default.min.js" | absURL }}"></script>
118118
{{- else -}}
119-
<!--
119+
<!--
120120
<script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/photoswipe.min.js" integrity="sha384-QELNnmcmU8IR9ZAykt67vGr9/rZJdHbiWi64V88fCPaOohUlHCqUD/unNN0BXSqy" crossorigin="anonymous"></script>
121121
<script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/photoswipe-ui-default.min.js" integrity="sha384-m67o7SkQ1ALzKZIFh4CiTA8tmadaujiTa9Vu+nqPSwDOqHrDmxLezTdFln8077+q" crossorigin="anonymous"></script>-->
122122
{{- end -}}
@@ -168,22 +168,20 @@ <h1 class="text-center">Follow OBF</h1>
168168
$(function(){
169169
$('#show-comments').on('click', function(){
170170
var disqus_shortname = '{{ .Site.Config.Services.Disqus.Shortname }}';
171-
171+
172172
(function() {
173-
var disqus = document.createElement('script');
174-
disqus.type = 'text/javascript';
173+
var disqus = document.createElement('script');
174+
disqus.type = 'text/javascript';
175175
disqus.async = true;
176176
disqus.src = '//' + disqus_shortname + '.disqus.com/embed.js';
177177
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(disqus);
178178
})();
179-
180-
$(this).hide();
179+
180+
$(this).hide();
181181
});
182182
});
183-
183+
184184
</script>
185185
<script id="dsq-count-scr" src="//{{ .Site.Config.Services.Disqus.Shortname }}.disqus.com/count.js" async></script>
186186
<!-- End Delayed Disqus -->
187187
{{ end }}
188-
189-

layouts/partials/head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{{- with .Site.Params.author.name }}
4646
<meta name="author" content="{{ . }}"/>
4747
{{- end }}
48-
{{- partial "seo/main.html" . }}
48+
{{- partial "seo/main.html" . }}
4949
{{- with .Site.Params.favicon }}
5050
<link href='{{ . | absURL }}' rel='icon' type='image/x-icon'/>
5151
{{- end -}}
@@ -81,7 +81,7 @@
8181
<link rel="stylesheet" href="{{ "css/syntax.css" | absURL }}" />
8282
{{- end -}}
8383
<link rel="stylesheet" href="{{ "css/codeblock.css" | absURL }}" />
84-
84+
8585
{{- if .Site.Params.staticman.recaptcha -}}
8686
<script src='https://www.google.com/recaptcha/api.js'></script>
8787
{{- end -}}

layouts/rss.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@
5757
{{- end }}
5858
</channel>
5959
</rss>
60-

layouts/shortcodes/figure.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
{{- if .Get "link" -}}
44
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
55
{{- end -}}
6-
6+
77
{{- $u := urls.Parse (.Get "src") -}}
88
{{- $src := $u.String -}}
99
{{- if not $u.IsAbs -}}
1010
{{- with or (.Page.Resources.Get $u.Path) (resources.Get $u.Path) -}}
1111
{{- $src = .RelPermalink -}}
1212
{{- end -}}
1313
{{- end -}}
14-
14+
1515
<img src="{{ $src }}"
1616
{{- if or (.Get "alt") (.Get "caption") }}
1717
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}"

nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ http {
2020
# if ($query_string = "p=2") {
2121
# return 302 /about/;
2222
# }
23-
23+
2424
if ($query_string = "p=4724") { return 302 /2020/05/03/bcc2020-inc-bosc-2020-abstracts-due-this-week/; }
2525
if ($query_string = "p=5114") { return 302 /2020/11/04/google-summer-of-code-2020-wrap-up/; }
2626
if ($query_string = "p=8175") { return 302 /2024/10/11/event-fellowship-2024-3/; }

static/css/custom.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,3 @@ imagerow::after {
201201
font-weight: 800;
202202
src: url('../fonts/open-sans-v43-cyrillic_cyrillic-ext_greek_greek-ext_hebrew_latin_latin-ext_math_symbols_vietnamese-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
203203
}
204-

static/site.webmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
1+
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

0 commit comments

Comments
 (0)