Added names in social, updated Makefile to checkout standard-library automatically.
This commit is contained in:
parent
e43ff72ce2
commit
9affc42409
2 changed files with 37 additions and 22 deletions
19
Makefile
19
Makefile
|
@ -23,9 +23,22 @@ init: setup-check-fix-whitespace setup-check-htmlproofer
|
|||
.PHONY: build
|
||||
build: $(SITE_DIR)
|
||||
|
||||
$(SITE_DIR): authors contributors css courses hs posts public src templates
|
||||
# TODO: replace these with dependencies on actual files
|
||||
|
||||
$(SITE_DIR): \
|
||||
authors/ \
|
||||
contributors/ \
|
||||
css/ \
|
||||
courses/ \
|
||||
posts/ \
|
||||
public/ \
|
||||
src/ \
|
||||
templates/ \
|
||||
standard-library/ChangeLog.md
|
||||
stack build && stack exec site build
|
||||
|
||||
standard-library/ChangeLog.md:
|
||||
git submodule update --recursive
|
||||
|
||||
#################################################################################
|
||||
# Test generated site with HTMLProofer
|
||||
|
@ -77,8 +90,10 @@ update-contributors:
|
|||
# Clean up and remove the cache
|
||||
#################################################################################
|
||||
|
||||
# TODO: change hs/Main.hs to get rid of this dependency
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
clean: standard-library/ChangeLog.md
|
||||
stack build && stack exec site clean
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<ul class="social-media-list">
|
||||
$if(github)$
|
||||
<li><a rel="me" href="https://github.com/$github$" title="$github$"><svg class="svg-icon grey"><use xlink:href="/public/minima-social-icons.svg#github"></use></svg></a></li>
|
||||
<li><a rel="me" href="https://github.com/$github$" title="$github$"><svg class="svg-icon grey"><use xlink:href="/public/minima-social-icons.svg#github"></use></svg> $github$</a></li>
|
||||
$endif$
|
||||
$if(twitter)$
|
||||
<li><a rel="me" href="https://twitter.com/$twitter$" title="$twitter$"><svg class="svg-icon grey"><use xlink:href="/public/minima-social-icons.svg#twitter"></use></svg></a></li>
|
||||
<li><a rel="me" href="https://twitter.com/$twitter$" title="$twitter$"><svg class="svg-icon grey"><use xlink:href="/public/minima-social-icons.svg#twitter"></use></svg> $twitter$</a></li>
|
||||
$endif$
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue