Add screenshot to webpage.
This commit is contained in:
parent
506c80153f
commit
bb248dc817
@ -163,7 +163,7 @@ module.exports = (grunt) ->
|
||||
command: """
|
||||
git commit -am "Build web page."
|
||||
git checkout gh-pages
|
||||
git checkout - README.md template.jst index.html
|
||||
git checkout - README.md template.jst index.html img
|
||||
git commit -am "Update web page."
|
||||
git checkout -
|
||||
""".split('\n').join('&&')
|
||||
|
||||
BIN
img/screenshot.png
Normal file
BIN
img/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 93 KiB |
12
template.jst
12
template.jst
@ -10,11 +10,21 @@ h1 {
|
||||
text-align: center;
|
||||
background-color: #eee;
|
||||
}
|
||||
img {
|
||||
display: block;
|
||||
margin: auto;
|
||||
max-width: 100%
|
||||
}
|
||||
@media (min-width: 1120px) {
|
||||
img {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<link rel="icon" href="src/General/img/icon.gif">
|
||||
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/ohnjgmpcibpbafdlkimncjhflgedgpam">
|
||||
</head><body>
|
||||
<%= content %>
|
||||
<%= content.replace('</h1>', '</h1><img src="img/screenshot.png">') %>
|
||||
<script>
|
||||
var links = document.querySelectorAll('a[href="https://chrome.google.com/webstore/detail/4chan-x/ohnjgmpcibpbafdlkimncjhflgedgpam"]');
|
||||
for (var i = 0; i < links.length; i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user