Skip to content

Commit

Permalink
fix copy button and example bib
Browse files Browse the repository at this point in the history
  • Loading branch information
syncall committed Jan 25, 2024
1 parent f3f3ccd commit 60c70cb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion _sass/_syntax.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@



pre.highlight {
.highlight {
position: relative;
margin-bottom: 1em;

.copy {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/codehighlight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const codeBlocks = document.querySelectorAll('pre.highlight');
const codeBlocks = document.querySelectorAll('div.highlight');
codeBlocks.forEach(function (codeBlock) {
const copyButton = document.createElement('button');
copyButton.className = 'copy';
Expand Down
13 changes: 12 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,22 @@ order: 1

Example page for the TUM i8 layout

also supporting code highlighting
supporting code highlighting:

```python
def code_fragment() -> bool:
return False
```

also for your bibliography

```bib
{% raw %}@inproceedings{tumi8theme,
author = {Sosnowski, Markus and Wiedner, Florian and Gallenmüller, Sebastian and ...},
title = {{TUM I8 Jekyll Theme}},
booktitle = {Proc. Network Architectures and Services (I8)},
year = {2024},
}{% endraw %}
```

[return to the github repo](https://github.com/tumi8/tumi8-theme)

0 comments on commit 60c70cb

Please sign in to comment.